About Me

My photo
HANUMANGARH, RAJASTHAN, India

Tuesday 14 July 2020

Get Vcentre Install State

Get the vmdk size via script..


Add-PSSnapin VMware.VimAutomation.Core

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

Export contact from Justdial

  Extract Data From JustDial using Selenium Let us see how to extract data from Justdial using Selenium and Python. Justdial is a company th...