Home » Exchange Server 2010 » Client Connectivity » WinRM Windows Remote Management

WinRM Windows Remote Management

 Windows Remote Management (WinRM)?

WinRM is based on the Web Services for Management (WS-Management) standards. What that means is that WinRM uses the HTTP protocol (port 80). The good thing about that is that HTTP request are easy to send and receive through a firewall. The other benefit to WinRM using HTTP is that no additional ports would have to be opened up on server & client firewalls if HTTP inbound was already permitted.

WinRM has a command line interface with a lot of options. This help information for WinRM will show up even if WinRM isn’t “enabled” or “listening” on your system.

Configuring WinRM :

To set the default configuration type:

winrm quickconfig (or the abbreviated version, winrm qc)

‘winrm qc’ performs the following operations:

  1. Starts the WinRM service and sets the service startup type to auto-start.
  2. Configures a listener for the ports that send and receive WS-Management protocol messages using either HTTP or HTTPS on any IP address.

If ‘winrm qc’ throws an error:

If the firewall is disabled the quick config command will fail. The firewall can either be started in Services long enough to run ‘winrm qc’ or the commands below can be run:

sc config “WinRM” start= auto

net start WinRM

winrm create winrm/config/listener?Address=*+Transport=HTTP

netsh firewall add portopening TCP 80 “Windows Remote Management”

Group Policy configuration:

WinRM can be configured by group policies.

  1. Type gpedit at a command prompt. The Group Policy Object Editor window opens.

Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows component -> Window Remote Management (WinRM).

How do I use WinRM?

Open Command Prompt -> Run as Administrator

Type Winrm help -> enter

C:\Windows\system32>winrm help

Windows Remote Management Command Line Tool

Windows Remote Management (WinRM) is the Microsoft implementation of

the WS-Management protocol which provides a secure way to communicate

with local and remote computers using web services.




For help on a specific operation:

winrm g[et] -?       Retrieving management information.

winrm s[et] -?       Modifying management information.

winrm c[reate] -?     Creating new instances of management resources.

winrm d[elete] -?     Remove an instance of a management resource.

winrm e[numerate] -? List all instances of a management resource.

winrm i[nvoke] -?     Executes a method on a management resource.

winrm id[entify] -?   Determines if a WS-Management implementation is

                       running on the remote machine.

winrm quickconfig -? Configures this machine to accept WS-Management

                       requests from other machines.

winrm configSDDL -?   Modify an existing security descriptor for a URI.

winrm helpmsg -?     Displays error message for the error code.

For help on related topics:

winrm help uris       How to construct resource URIs.

winrm help aliases   Abbreviations for URIs.

winrm help config     Configuring WinRM client and service settings.

winrm help certmapping Configuring client certificate access.

winrm help remoting   How to access remote machines.

winrm help auth       Providing credentials for remote access.

winrm help input     Providing input to create, set, and invoke.

winrm help switches   Other switches such as formatting, options, etc.

winrm help proxy     Providing proxy information.

Note : The following procedure or tips are requested to perform at your own risk, and it is recommended to perform on the Lab machines rather than directly performing on Production Servers. Use at your own Risk.

For More info :

WinRM (Windows Remote Management) Troubleshooting

Installation and Configuration for Windows Remote Management

Windows Remote Management Command-Line Tool (Winrm.cmd)

How can Windows Server 2008 WinRM & WinRS help you

Praveen Kumar

MCTS | Exchange Server

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: