$VIserver = "nomduvcenter" Import-Module VMware.VimAutomation.Core $vc = Connect-VIServer -Server $VIserver -Force Get-Vm | Get-Snapshot