All,
I am still getting this error when trying to run this:
New-OSCustomizationSpec -OSCustomizationSpec $custspec -Name $vmname -type NonPersistent | Out-Null
Set-OSCustomizationSpec -OSCustomizationSpec $vmname -AdminPassword $adminpass -DomainUsername $username -DomainPassword $pass -Confirm:$false | Out-Null
Get-OSCustomizationSpec $vmname | Get-OSCustomizationNicMapping | Set-OSCustomizationNicMapping -IpMode UseStaticIp -IpAddress $ipaddr -SubnetMask $subnet -DefaultGateway $gateway -Dns $pdns,$sdns | Out-Null
$OsCustomization = Get-OSCustomizationSpec $vmname
Did anyone in the forums ever determine what the issue is with version 5.5???
I assume you tried this one already The vCenter Server is unable to decrypt passwords stored in the customization specification.The vCenter Server is unable to decrypt passwords stored in the customization specification.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Luc, after I posted this I remember I replaced my existing code with using a new os spec. So, I'm good!