I run script, VMs created but parameters not set.
I have following errors:
New-OSCustomizationSpec : 8/6/2013 5:32:58 AM New-OSCustomizationSpec
There is already a customization spec with the same name.
At C:\scripts\8.ps1:8 char:78
+ $oscust = Get-OSCustomizationSpec -Name $oscustName | New-OSCustomizationSpec
<<<< -Type NonPersistent
+ CategoryInfo : InvalidArgument: (:) [New-OSCustomizationSpec],
InvalidArgument
+ FullyQualifiedErrorId : Client20_VmHostServiceImpl_NewCustomizationSpec_
DuplicateCustomizationSpecClient,VMware.VimAutomation.ViCore.Cmdlets.Comma
nds.NewCustomizationSpec
New-OSCustomizationSpec : 8/6/2013 5:32:58 AM New-OSCustomizationSpec
There is already a customization spec with the same name.
At C:\scripts\8.ps1:8 char:78
+ $oscust = Get-OSCustomizationSpec -Name $oscustName | New-OSCustomizationSpec
<<<< -Type NonPersistent
+ CategoryInfo : InvalidArgument: (:) [New-OSCustomizationSpec],
InvalidArgument
+ FullyQualifiedErrorId : Client20_VmHostServiceImpl_NewCustomizationSpec_
DuplicateCustomizationSpecClient,VMware.VimAutomation.ViCore.Cmdlets.Comma
nds.NewCustomizationSpec
Get-OSCustomizationNicMapping : 8/6/2013 5:32:59 AM Get-OSCustomizationNicMa
pping Value cannot be found for the mandatory parameter OSCustomizationS
pec
At C:\scripts\8.ps1:33 char:32
+ Get-OSCustomizationNicMapping <<<< -OSCustomizationSpec $oscust |
+ CategoryInfo : NotSpecified: (:) [Get-OSCustomizationNicMapping
], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio
n.ViCore.Cmdlets.Commands.GetOSCustomizationNicMapping
Get-OSCustomizationNicMapping : 8/6/2013 5:32:59 AM Get-OSCustomizationNicMa
pping Value cannot be found for the mandatory parameter OSCustomizationS
pec
At C:\scripts\8.ps1:42 char:32
+ Get-OSCustomizationNicMapping <<<< -OSCustomizationSpec $oscust |
+ CategoryInfo : NotSpecified: (:) [Get-OSCustomizationNicMapping
], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomatio
n.ViCore.Cmdlets.Commands.GetOSCustomizationNicMapping