Collections:
Other Resources:
Enable WinRM for Remote Computer with Windows PowerShell
How to enable WinRM on the remote computer? I want to access it from my local computer with Windows PowerShell sessions.
✍: FYIcenter.com
To support Windows PowerShell sessions, you need to perform the following tasks on
the remote computer:
You can finish these tasks on the remote computer with the "Enable-PSRemoting" PowerShell cmdlet as described below:
1. Login to the remote computer and start a PowerShell window as Administrator by right-clicking the PowerShell shortcut and selecting "Run as Administrator"
2. Run the "Enable-PSRemoting" cmdlet and enter "Y" at each prompt:
PS C:\Windows\system32> Enable-PSRemoting WinRM Quick Configuration Running command "Set-WSManQuickConfig" to enable this machine for remote management through WinRM service. This includes: 1. Starting or restarting (if already started) the WinRM service 2. Setting the WinRM service type to auto start 3. Creating a listener to accept requests on any IP address 4. Enabling firewall exception for WS-Management traffic (for http only). Do you want to continue? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): WinRM has been updated to receive requests. WinRM service type changed successfully. WinRM has been updated for remote management. Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine. WinRM firewall exception enabled. Confirm Are you sure you want to perform this action? Performing operation "Registering session configuration" on Target "Session configuration "Microsoft.PowerShell3 not found. Running command "Register-PSSessionConfiguration Microsoft.PowerShell32 -processorarchitecture x86 -f to create "Microsoft.PowerShell32" session configuration. This will restart WinRM service.". [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
3. Test the WinRM configuration with more PowerShell cmdlets:
PS C:\Windows\system32> test-wsman localhost wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd ProductVendor : Microsoft Corporation ProductVersion : OS: 0.0.0 SP: 0.0 Stack: 2.0 PS C:\Windows\system32> invoke-command localhost {query user} USERNAME SESSIONNAME ID STATE IDLE TIME fyicenter rdp-tcp#0 2 Active .
The remote computer is ready for you local computer to access now.
⇒ "Enter-PSSession" Cmdlet in Windows PowerShell
⇐ "New-PSSession" Cmdlet Error in Windows PowerShell
2016-10-15, ∼4563🔥, 0💬
Popular Posts:
What is "Lenovo Hotkey Client Loader" in my Windows 7 service list? And how is "Lenovo Hotkey Client...
How to configure PHP execution environments? If you followed our Downloading PHP Engine tutorial , y...
How to download Windows 7 Service Pack 1 (SP1)? Windows 7 Service Pack 1 (SP1) is an update for all ...
A collection of 8 tutorials on Internet connections with DSL modems covering: What are required to u...
Can I remove startup application "DLG.exe - Modem Digital Line Detection" to speedup my computer and...