Today while working on the Amazon EC2 cloud I wondered if maybe it was possible to run @brianlala’s AutoSPInstaller script entirely from a remote PowerShell session. Why? RDP is fading out. PowerShell and command line automation will be required skills in the future for IT Pros to manage on a large scale. I’d like to know how to do everything with PowerShell. I admit RDP-ing over first is generally available and easy. But what if you need to run 10 installs? 20? At some point RDP stops scaling up.
New to PowerShell Remoting? It’s just opening the console to a remote machine. This allows you to manage it without any RDP graphical interface and also manage multiple servers at once by sending commands and receiving output in parallel. Read Microsoft’s description and how to get started here.
So here goes nothing …
- Launch EC2 server (W08R2)
- Download ISOs (SQL08R2 + SP2010)
- DCPROMO (new domain)
- Create users
- Install SQL
- Install SharePoint
- Extract ISO to folder
- Extract updates
- Download AutoSPInstaller
- Populate XML config
Sounds easy enough, right?
Below are the screenshots. Leave a comment or hit me on twitter (@spjeff) with any questions.
UPDATE: I could not see console output at first. I tried reboot and run PS1 directly instead of BAT. That helped with visible console output.
UPDATE: I hit a snag on WIF prerequisite failing. Not clear why since transcript wasn’t available.
So I bailed and just installed the normal way with an interactive RDP session. There are limitation with PowerShell remoting (i.e. transcript) that we really need here. Also, troubleshooting is made too cumbersome. For now the safest way is the simplest: interactive RDP to install, then use PowerShell remoting long term for management tasks.