How to enable Windows Remote Shell

Article translations Article translations
Article ID: 555966 - View products that this article applies to.
Author: Yuval Sinay
Expand all | Collapse all

SUMMARY

The following article will helps you to enable Windows Remote Shell

Tips

Instructions

To enable Windows Remote Shell you need to deploy a server side and client side settings:

 
 
Server Side:
 
Note: The server definition in the article describe a Windows host that get into remote management shell.
              
1. Logon into the Windows console.
 
2. Optional (For Windows Vista serve as remote server):
 
         Start the service "Windows Remote Management " and set it for auto start after reboot.
 
3. Write the command prompt : "WinRM quickconfig" and press on the "Enter" button.
 
4. The following output should appear:

"WinRM is not set up to allow remote access to this machine for management.
The following changes must be made:

 
Set the WinRM service type to delayed auto start.
Start the WinRM service.
Create a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this
machine.

 
Make these changes [y/n]? y"
 
5. After pressing the "y" button, the following output should appear:
 
"WinRM has been updated for remote management.
 
WinRM service type changed successfully.
WinRM service started.
Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.
"
 
 
Note 1: Its recommended to change the default settings via "winrm.cmd"  command (Like enable HTTPS support etc.).
 
Note 2: Windows Remote Shell using SOAP. Some firewalls may block SOAP traffic. Consult
                the vendor documentation for further information.
 
 
Client Side:
 
 
  1. On Windows Vista/Windows 2008 host use the command:
 
       "winrs -r:%servername%  remote command" and press on "Enter" button.
 
 
      Example: To review remote file system, write the following command:
 
              "winrs -r:DC1 dir"
 
Note: In Windows Workgroup environment, there is a need to add a trust for the server
 
           that the client initiate a connection to it.
 
             winrm set winrm/config/client @{TrustedHosts="%servername1%,"%servername2%"}
 
          Verity the new settings by using the command:
 
             "winrm enumerate winrm/config/listener"
 
 
 

Properties

Article ID: 555966 - Last Review: August 19, 2007 - Revision: 1.0
APPLIES TO
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
COMMUNITY SOLUTIONS CONTENT DISCLAIMER
MICROSOFT CORPORATION AND/OR ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY, RELIABILITY, OR ACCURACY OF THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN. ALL SUCH INFORMATION AND RELATED GRAPHICS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT AND/OR ITS RESPECTIVE SUPPLIERS HEREBY DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THIS INFORMATION AND RELATED GRAPHICS, INCLUDING ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, WORKMANLIKE EFFORT, TITLE AND NON-INFRINGEMENT. YOU SPECIFICALLY AGREE THAT IN NO EVENT SHALL MICROSOFT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OF OR INABILITY TO USE THE INFORMATION AND RELATED GRAPHICS CONTAINED HEREIN, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF MICROSOFT OR ANY OF ITS SUPPLIERS HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com