VMware Cloud Community
alfwro
Contributor
Contributor

New-VM -OSCustomizationSpec

Hi, I'm trying to use an OSCustomizationSpec switch to modify a VM using the new-vm cmdlet.

Get-OSCustomizationNicMapping "Win7template"

Position IPMode           IPAddress       DefaultGateway

-------- ------           ---------       --------------

       1 PromptUser                       10.0.0.254

How do I pass the IP address to the script? I cannot seem to be able to find anything in the documentation.

Any help would be appreciated

Thanks

0 Kudos
1 Reply
LucD
Leadership
Leadership

Have a look at Example 1 on the Set-OSCustomizationNicMapping cmdlet.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos