Files
System-Scripts/vSphere/BatchPatch/vm-start-virtualmachine.ps1

11 lines
339 B
PowerShell
Raw Permalink Normal View History

2020-05-18 09:37:57 +02:00
# 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