Remote Management of Windows Server 2008 : [WinRM/WinRS]

Windows Remote Management and Windows Remote Shell allow us to remotely administration of Windows Vista and Windows 2008 machines. For Windows XP SP2 and Windows Server 2003 there is also an update that align them with WinRM features used in Windows Vista and Windows 2008.
WinRM is installed and configured to start automatically in Windows Vista and Windows 2008, but it is not at all configured.
So, before to start to use it it is mandatory to proceed with its configuration. The command to do it is:
winrm quickconfig” or “winrm qc” in abbreviated mode.
The command will launch the question “Make these changes [y/n]?“, just type y
Once the service is configured you can query its state using the command:
winrm enumerate winrm/config/listener

Now it´s time to execute WinRS in the client that will manage the romote machine. These are some examples about some ways to execute commands into the remote machine:

winrs -r:https://myserver.com ipconfig
winrs -r:myserver “dir c:\”
winrs -r:http://169.51.2.101:80 cmd

And finally, if you don´t need anymore WinRM you can remove it running this command:
winrm delete winrm/config/Listener?Address=*+Transport=HTTP

share save 171 16 Remote Management of Windows Server 2008 : [WinRM/WinRS]

Leave a Reply