Created
May 11, 2018 17:28
-
-
Save nshores/0401065f762332149b3789ffba24ab09 to your computer and use it in GitHub Desktop.
reboot_vm.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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