Hello Team,
Can anyone advise me that why I am seeing discrepancy while fetching snapshot report from RV tools and getting report from a shell script. Weird to me that when I compare both the lists there are many servers with snapshot which are not listed by either script or RV tools. Only few servers can be found common on both lists.
Below script used
Import-Module vmware.vimautomation.core
$cred = get-credential
Connect-VIServer -server (gc .\vc.txt) -credential $cred -WarningAction Ignore
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
get-vm | get-snapshot | select vm,name,description,created,powerstate,filename | export-csv F:\Test\snaplist.csv
I've reported your thread so moderators know it should be moved to the area for PowerCLI.
You will need to provide a bit more info to allow anyone to analyse the issue.
Is the snapshot list produced by the script not complete?
Which snapshots are not listed?
What is missing from the RVTools report?
Is this against 1 vCenter, or multiple?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference