;)
Windows Server 2012 has PowerShell remoting enabled by default, but if you are running 2008r2 then you will need to Google how to enable it manually.
Let me google that for you...
http://lmgtfy.com/?q=https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fhh849694.aspx
Nice write up. I might suggest for future episodes to tag your PS code in a different color for ease of reading.
Have you tried using PSExec to remotely run your post deploy scripts? I haven't, just curious.
I like to wrap certain bits of code in scripts that I can run repeatedly vs copy paste each time I need it.
The "switch" ($option) function is great for this:
-------------------------------------------------------------------------------------------------------------------------------------------
# Write path options to console
Write-Host "Enter Number to Select Option"
write-host
Write-Host "1. Option 1"
Write-Host "2. Option 2"
Write-Host "3. Option N+"
Write-Host "X. Other"
write-host
# Option Selection
$Option = Read-Host -Prompt "Select Path From List Above"
switch ($Path)
{
1 {$Option="Image 1"}
2 {$Option="Image 2"}
3 {$Option="Image N+"}
8 {$Option= Read-Host -Prompt "Your Text Here"}
default {$Option="Whatever"} # Use this as a default deploy or catch it as an error and exit.
}
$ImageOptoin = $Option
--------------------------------------------------------------------------------------------------------------------------------------
You can add/remove as many options as you like. Then when you are ready to deploy your VMs, just fire up this script and pick the one you want. You should be able to add in any other parameters that you desire further down in the script once you have selected your machine type. Just use if else statements to capture the option name and run with it.