HI Friends,
I am wondering if it is possible to check the specific entry in VMX file through powercli script. Actually i wanted to search set of VMs which has "scsi0:1.writeThrough = "true" in VMX file. Can you guys please help me.
It downloaded/create a dpacsdicmp01.vmx file, but it's blank.
And is there something in the VMX file on the source datastore?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yep. Full of all of the normal info, including the string I'm searching for.
Any chance I could be missing a PS module that is required, or something like that?
What does this how?
Get-Module -Name VMware* -ListAvailable
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Binary 6.5.1.5... VMware.DeployAutomation {Add-DeployRule, Add-ProxyServer, Add-ScriptBundle, Copy-DeployRule...}
Binary 6.5.1.5... VMware.ImageBuilder {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-EsxImageProfile, Export-EsxImageP...
Manifest 6.5.3.6... VMware.PowerCLI
Binary 6.5.3.6... VMware.VimAutomation.Cis.Core {Connect-CisServer, Disconnect-CisServer, Get-CisService}
Binary 6.5.1.5... VMware.VimAutomation.Cloud {Add-CIDatastore, Connect-CIServer, Disconnect-CIServer, Get-Catalog...}
Manifest 6.5.1.5... VMware.VimAutomation.Common
Binary 6.5.2.6... VMware.VimAutomation.Core {Add-PassthroughDevice, Add-VirtualSwitchPhysicalNetworkAdapter, Add-VMHost, Add-VMHostN...
Binary 6.0.0.5... VMware.VimAutomation.HA Get-DrmInfo
Binary 7.1.0.5... VMware.VimAutomation.HorizonView {Connect-HVServer, Disconnect-HVServer}
Binary 6.5.1.5... VMware.VimAutomation.License Get-LicenseDataManager
Binary 2.0.0.6... VMware.VimAutomation.Nsxt {Connect-NsxtServer, Disconnect-NsxtServer, Get-NsxtService}
Binary 6.5.1.5... VMware.VimAutomation.PCloud {Connect-PIServer, Disconnect-PIServer, Get-PIComputeInstance, Get-PIDatacenter}
Manifest 1.0.0.5... VMware.VimAutomation.Sdk {Get-PSVersion, Get-InstallPath}
Binary 6.5.1.5... VMware.VimAutomation.Srm {Connect-SrmServer, Disconnect-SrmServer}
Binary 6.5.1.5... VMware.VimAutomation.Storage {Copy-VDisk, Export-SpbmStoragePolicy, Get-NfsUser, Get-SpbmCapability...}
Script 1.0 VMware.VimAutomation.StorageUtility Update-VmfsDatastore
Binary 6.5.1.5... VMware.VimAutomation.Vds {Add-VDSwitchPhysicalNetworkAdapter, Add-VDSwitchVMHost, Export-VDPortGroup, Export-VDSw...
Binary 6.5.1.5... VMware.VimAutomation.vROps {Connect-OMServer, Disconnect-OMServer, Get-OMAlert, Get-OMAlertDefinition...}
Binary 6.5.1.5... VMware.VumAutomation {Add-EntityBaseline, Copy-Patch, Get-Baseline, Get-Compliance...}
Welp, I owe you a case of beer.
Turns out, the VDI which I was running these commands from has/had an outdated version or was missing something. Went to a mgmt server with VScode, script ran fine.
THANK YOU for all of your help. So sorry for wasting your time.
No problem, glad you found the solution
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
@LucD Hi Lucd ,
Can you please help if I want to make change in .VMX file using Powercli in same script ?
I want to set one property of VM as: uuid.action = "keep"
That kind of question was already answered a couple of times in this community.
See Solved: modifiy the vmx file by copying it to local - VMware Technology Network VMTN
and how can modify/change key in VMX file - VMware Technology Network VMTN
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference