SharePoint, Office 365, Azure, and Front end JS geek. – Chicago IL
SharePoint, Office 365, Azure, and Front end JS geek. – Chicago IL

Amazon

“Open-EC2” PowerShell cmdlet (RDP + PS)

To save time I wrote a quick PowerShell function to open RDP and a remote PowerShell console for Amazon EC2 machine instances. Example screenshots are below.    Enjoy! 

Hot

 

 

image
image
image

AutoSPInstaller + PowerShell Remoting

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? 

Smile

    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. 

Hot

 

 

image
image
image
image
image
image
image
image
image

 

image
image

 

image

 

image

 

image

 

image

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲