Set-PowerCLIConfiguration -InvalidCertificateAction ignore -Confirm:$False
#Connect to the VCenter server
Connect-Viserver "mspcsc12vctrsrv" #-user "afii\skumar176-a" -password "Skyblue@1987"
dir -Recurse -Path vmstores:\ | select Name,DatastoreFullPath,LastWriteTime | Export-Csv -NoTypeInformation -UseCulture -Path D:\MyVMDKInfo.csv
dir -Recurse -Path vmstores:\ -Include *vmdk* | Select DatastoreFullPath,Name,select Name,LastWriteTime,Size | Export-Csv -NoTypeInformation -UseCulture -Path C:\Sunil\MyVMDKInfo.csv
No comments:
Post a Comment