/ Published in: Windows PowerShell
Expand |
Embed | Plain Text
@(1..25) + @(99..100) | ForEach-Object { Write-Host $hostname $hostname = "w1-vdi" + $_\3.ToString().PadLeft(3, "0") + ".eng.blah.com" Connect-VIServer -Server $hostname -User root -Password blah }
You need to login to post a comment.
