Skip to content

Instantly share code, notes, and snippets.

@nshores
Created May 11, 2018 17:28
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 nshores/0401065f762332149b3789ffba24ab09 to your computer and use it in GitHub Desktop.
Save nshores/0401065f762332149b3789ffba24ab09 to your computer and use it in GitHub Desktop.
reboot_vm.ps1
#Reboot VM's
$vmlist = "RMIP6S",
"rmipcs",
"rmipts",
"rmivcm",
"RCIACCT03",
"RMIXA02",
"RMIXA03",
"RMIXA05",
"RMIXA06",
"RMIXA04",
"RMIXADS",
"RMIXA01",
"RCIACCT04",
"RMIXA07",
"RMIXA08",
"RMIXAPL01",
"RMIXAPL02",
"RMIXAPL03",
"RMIXA09",
"RMIXA10",
"RMIXAPL04",
"RMIXA11",
"RMIVAPP8"
foreach ($vm in $vmlist){get-vm $vm | restart-vmguest}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment