Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Enable-PSRemoting

Enable-PSRemoting - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Enable-PSRemoting

Short description
Configures the computer to receive remote commands.

Syntax
Enable-PSRemoting [-Force] [-Confirm] [-WhatIf] [<CommonParameters>]

Description
The Enable-PSRemoting cmdlet configures the computer to receive Windows PowerShell remote commands that are sent by
     using the WS-Management technology.   
    
    You need to run this command only once on each computer that will receive commands. You do not need to run it on co
    mputers that only send commands. Because the configuration activates listeners, it is prudent to run it only where 
    it is needed.
    
    The Enable-PSRemoting cmdlet performs the following operations:
    
    -- Runs the Set-WSManQuickConfig cmdlet, which performs the following tasks:
    ----- Starts the WinRM service.
    ----- Sets the startup type on the WinRM service to Automatic.
    ----- Creates a listener to accept requests on any IP address.
    ----- Enables a firewall exception for WS-Management communications.
    
    -- Enables all registered Windows PowerShell session configurations to receive instructions from a remote computer.
    ----- Registers the "Microsoft.PowerShell" session configuration, if it is not already registered.
    ----- Registers the "Microsoft.PowerShell32" session configuration on 64-bit computers, if it is not already regist
    ered.
    ----- Removes the "Deny Everyone" setting from the security descriptor for all the registered session configuration
    s. 
    ----- Restarts the WinRM service to make the preceding changes effective.
    
    To run this cmdlet on Windows Vista, Windows Server 2008, and later versions of Windows, you must start Windows Pow
    erShell with the "Run as administrator" option.