Windows 7 / Networking

Windows Remote Shell for Remote Management

You can use WinRS to execute command-line utilities or scripts on a remote computer. To use WinRS, open a command prompt and prefix the command that you want to run on the remote computer with the WinRS -r:RemoteComputerName command. For example, to execute the Ipconfig command on a computer named Nelson, issue the command:

WinRS -r:Nelson ipconfig

If the computer is on the local network, you can use its NetBIOS name. If the computer is on a remote network, you may need to specify its fully qualified domain name (FQDN). It is also possible to specify credentials to be used on the remote computer. For example, to run the command net accounts, which displays information about a computer's password policy on a computer named Nelson.contoso.internal using the Mik_Jane user account, issue the command

WinRS -r:http://nelson.contoso.internal -u:Mik_Jane net accounts

If you do not specify a password using the -p:password option, you are prompted to enter a password after you execute the command. You can configure WinRS options through Group Policy in the Computer Configuration\Administrative Templates\Windows Components\Windows Remote Shell node. The policies are shown and can be used to configure settings such as idle timeouts, maximum concurrent remote shells, and whether remote shell access is allowed.

[Previous] [Contents] [Next]