vSphere Scripts for BatchPatch

This commit is contained in:
2020-05-18 09:37:57 +02:00
parent 395e5dd534
commit 4ed591d5a2
5 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# List Snapshots of vSphere Machine
# Script is called from BatchPatch
param (
[Parameter(Mandatory=$true)][string]$Computer
)
connect-viserver -server SERVERNAME -user USERNAME -password PASSWORD | out-null
Get-Snapshot -Server SERVERNAME -VM $Computer* | ft Name -HideTableHeaders
Disconnect-VIServer -Server * -Force -Confirm:$false | out-null