Ce script de réaliser un rapport avec la liste des snpashots
-
PathToReport : Chemin du fichier de rapport
-
CredentialFile : Chemin ou nom du fichier crédential
-
To : Destinataire mail du rapport
-
From : Expéditeur du rapport mail
-
SMTPServer : Serveur mail
PowerShell
New-VICredentialStoreItem -Host ESXorvCenterHostname -User root -Password "Super$ecretPassword" -File credential-vsphere.xml
.\vmware-report-snapshot.ps1 -CredentialFile C:\credential-vsphere.xml -SMTPServer mail.domain.com -From [email protected] -To [email protected]
-
[string]$CredentialFile="credential-vsphere.xml",
-
[string]$To = "[email protected]",
-
[string]$From = "[email protected]",
-
[string]$SMTPServer = "mail.domain.com"
.\vmware-report-snapshot.ps1