vSphere Scripts for BatchPatch
This commit is contained in:
10
vSphere/BatchPatch/vm-start-virtualmachine.ps1
Normal file
10
vSphere/BatchPatch/vm-start-virtualmachine.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
# Start vSphere Machine
|
||||
# Script is called from BatchPatch
|
||||
|
||||
param (
|
||||
[Parameter(Mandatory=$true)][string]$Computer
|
||||
)
|
||||
|
||||
connect-viserver -server SERVERNAME -user USERNAME -password PASSWORD | out-null
|
||||
Start-VM -Server SERVERNAME -VM $Computer* -Confirm:$false
|
||||
Disconnect-VIServer -Server * -Force -Confirm:$false | out-null
|
||||
Reference in New Issue
Block a user