If i remove the fields in the csv for username, password, and adminpassword and rely on the input lines to trap the $pass $username and $adminpass it doesn't work at all
Set-OSCustomizationSpec : Cannot validate argument on parameter 'AdminPassword'
. The argument is null or empty. Supply an argument that is not null or empty a
nd then try the command again.
At C:\scripts\clonecustom.ps1:71 char:56
+ Set-OSCustomizationSpec -spec $vmname -AdminPassword <<<< $adminpass -Dom
ainUsername $username -DomainPassword $pass -Confirm:$false
+ CategoryInfo : InvalidData: (:) [Set-OSCustomizationSpec], Para
meterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutom
ation.ViCore.Cmdlets.Commands.SetCustomizationSpec