Enabling PowerShell Remoting
With Windows 7 comes PowerShell 2.0, which supports executing commands on a remote computer. I’d rather have Windows support SSH and single-window RDP, but as this comes built-in I thought I’d give it a whirl.
Getting it set up based on information from the interwebs is hellishly hard. The whole thing works through HTTP and has a somewhat weird security model*, providing a lot of WTFs per minute.
Anywaysy, in the end it turned out to be simple. Open up an admin PowerShell prompt, and type:
PS> Enable-PSRemoting -force
PS> cmd
C:> winrm set winrm/config/client @{TrustedHosts="*"}
Do this on both the client and the server, and you’re good. Then open the PowerShell ISE from the Start menu and chose File –> New Remote PowerShell Tab. Boom.
* Yes, I know everything should be locked by default, but it still should be a Pit of Success when you decide to do it. A simple way to create one would have been enabling it by default on the client and enabling it with a single command on the server to support authentication through SRP.
