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

AutoSPInstaller

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

Why you should delete Autorun.ico/inf

Recently I’ve worked with http://autospinstaller.codeplex.com/ more from the Command Prompt and PowerShell consoles.   I’ve been annoyed by something minor and it’s not @brianlala ‘s fault either.   The ISO comes with “autorun” files which are useless after I flatten the CD to a folder.   To add insult to injury they confuse autocomplete so typing “auto” and pressing tab requires me to jump past two local files before I get the awesomeness of the AutoSPInstaller subfolder.  Bah.

 

So I recommend you delete Autorun.ico and Autorun.inf.   You don’t need them anymore.  This isn’t a real CD … and they just get in the way. 

Hot

 

image
image
image

© Copyright 2016
@ SPJeff

Return to Top ▲Return to Top ▲