Skip to content

Instantly share code, notes, and snippets.

@alainassaf
Last active July 27, 2018 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alainassaf/cfdf6bb7a87d0bde3f96b436a126615f to your computer and use it in GitHub Desktop.
Save alainassaf/cfdf6bb7a87d0bde3f96b436a126615f to your computer and use it in GitHub Desktop.
Looping through XS Poolmasters
# Loop through list of hosts (poolmaster)
$xenserver_poolmaster | ForEach-Object {
# Connect to XenServer pool
Connect-XenServer -Server $_ -Creds $xenserver_credential -SetDefaultSession -NoWarnNewCertificates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment