Powering On and Off multiple Virtual Machines Using PowerCLI
Powering On multiple Virtual Machines Using PowerCLI
1.Enter the all vm list to servers.txt file and save to c:\scripts folder
2. $servers= Get-Content c:\scripts\servers.txt,
3.Run "$servers" cmd to check servers list
4. connect vcenter following cmd
Connect-VIServer -Server $VIServer -User $Username -Password $Password
5. To run the following cmd to start the VM's
Start-VM -VM $servers -RunAsync
Disconnect-VIServer $VIServer -Confirm:$false
Powering Off multiple Virtual Machines Using PowerCLI
1.Enter the all vm list to servers.txt file and save to c:\scripts folder
2. $servers= Get-Content c:\scripts\servers.txt,
3.Run "$servers" cmd to check servers list
4. connect vcenter following cmd
Connect-VIServer -Server $VIServer -User $Username -Password $Password
5. To run the following cmd to start the VM's
Get-vm $servers | Shutdown-VMGuest
Disconnect-VIServer $VIServer -Confirm:$false
1.Enter the all vm list to servers.txt file and save to c:\scripts folder
2. $servers= Get-Content c:\scripts\servers.txt,
3.Run "$servers" cmd to check servers list
4. connect vcenter following cmd
Connect-VIServer -Server $VIServer -User $Username -Password $Password
5. To run the following cmd to start the VM's
Start-VM -VM $servers -RunAsync
Disconnect-VIServer $VIServer -Confirm:$false
Powering Off multiple Virtual Machines Using PowerCLI
1.Enter the all vm list to servers.txt file and save to c:\scripts folder
2. $servers= Get-Content c:\scripts\servers.txt,
3.Run "$servers" cmd to check servers list
4. connect vcenter following cmd
Connect-VIServer -Server $VIServer -User $Username -Password $Password
5. To run the following cmd to start the VM's
Get-vm $servers | Shutdown-VMGuest
Disconnect-VIServer $VIServer -Confirm:$false
Comments
Post a Comment