Return to Snippet

Revision: 40308
at January 29, 2011 13:43 by benash


Initial Code
@(1..25) + @(99..100) | ForEach-Object { 
  Write-Host $hostname
  $hostname = "w1-vdi" + $_.ToString().PadLeft(3, "0") + ".eng.blah.com"
  Connect-VIServer -Server $hostname -User root -Password blah
}

Initial URL


Initial Description


Initial Title
Connect to many ESX hosts

Initial Tags


Initial Language
Windows PowerShell