Configure the local computer for remote management.

      Set-WSManQuickConfig [-UseSSL] [CommonParameters]

      Use the Secure Sockets Layer (SSL) protocol to establish a
      connnection to the remote computer. By default, SSL is not used. 
      WS-Management encrypts all Windows PowerShell content transmitted
      over the network. Adding the protection of HTTPS requires that
      SSL is available on the port used for the connection.

Set-WSManQuickConfig will perform the following:
1. Start the WinRM service if it is not already running.
2. Set the WinRM service startup type to automatic.
3. Create a listener to accept requests on any IP address. By default, the transport is HTTP.
4. Enable a firewall exception for WinRM traffic .

To run Set-WSManQuickConfig in Vista/Windows 7/Windows Server 2008, and later versions of Windows, you must start PowerShell with the "Run as administrator" option.


Set the required configuration to enable remote management of the local computer.:

PS C:\> Set-WSManQuickConfig

“It is easy to be brave from a safe distance” ~ Aesop

Related PowerShell Cmdlets

Get-WSManInstance - Display management information (XML or value).
Set-WSManInstance - Modify the management information related to a resource.

Copyright © 1999-2024
Some rights reserved