Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

"Power On and Force Recustomization" PowerCLI

$
0
0

 

 


Hi Guys!

 

 

 

I cannot find any solution for recustomization VM in vCloud 5.5.

 

 

 

The sample of script:

 

       $VM_GL = Get-CIVM -Name VMachine -Org $OrgName -OrgVdc $OrgVdcName -VApp $New_Clone        $GuestCustomization = $VM_GL.ExtensionData.GetGuestCustomizationSection()        $GuestCustomization.Enabled = $true        $GuestCustomization.ResetPasswordRequired = $false        $GuestCustomization.AdminAutoLogonEnabled = $false        $GuestCustomization.AdminAutoLogonCount = 0        $GuestCustomization.CustomizationScript = $CustomizationScript_GL        $GuestCustomization.UpdateServerData()        $VM_GL.ExtensionData.NeedsCustomization = $true        $VM_GL.ExtensionData.UpdateServerData()        Start-CIVM -VM $VM_GL -Confirm:$false

 


In this way only network settings and hostname has changed, but customization script is not running. If i do not start machine in PowerShell and run it in Web-interface trough "Power On and Force Recustomization" the script is running and make changes.


Viewing all articles
Browse latest Browse all 13334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>