Monday, November 21, 2011

PowerShell 101 - Remote

So local powershell commands is not enough.

To launch a powershell command on a remote computer is quite easy.

icm hostname {powershell-command}

However the remote system needs to be configured to allow this to occur. 
First check to see if the winrm is running

get-service winrm

If not you might need to config

Enable-PSRemoting –force



References
http://technet.microsoft.com/en-us/magazine/ff700227.aspx