Can I use Cluster instead of ESXi here $esxName="MyEsx"?
Can i specify datastore where to place VMs?
I run script, VMs created but parameters not set.
I have following errors:
The term 'Static' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\scripts\ed.ps1:26 char:20
+ IPMode = Static <<<<
+ CategoryInfo : ObjectNotFound: (Static:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Get-OSCustomizationNicMapping : 8/6/2013 2:55:39 AM Get-OSCustomizationNicMapping Value cannot be found for the mandatory parameter OSCustomizationSpec
At C:\scripts\ed.ps1:32 char:32
+ Get-OSCustomizationNicMapping <<<< -OSCustomizationSpec $oscust |
+ CategoryInfo : NotSpecified: (:) [Get-OSCustomizationNicMapping
], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetOSCustomizationNicMapping
The term 'Fixed' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\scripts\ed.ps1:38 char:25
+ NamingScheme = Fixed <<<<
+ CategoryInfo : ObjectNotFound: (Fixed:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Set-OSCustomizationSpec : Cannot validate argument on parameter 'OSCustomizationSpec'. The argument is null or empty. Supply an argument that is not null or empty and then try the command again.
At C:\scripts\ed.ps1:42 char:26
+ Set-OSCustomizationSpec <<<< @osParams
+ CategoryInfo : InvalidData: (:) [Set-OSCustomizationSpec], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.ViCore.Cmdlets.Commands.SetCustomizationSpec