Has anyone successfully been able to apply static IPs via Cust Specs? I found a KB article saying it doesn't work on Vista and up. If that were the case it seems odd that it hasn't been resolved or is still an option in Windows Cust Specs. If I absolutely have to, I can use Invoke-VMScript, but i'd prefer to know it out in a single go. I do this via PowerCLI and don't have access to VRO/VRA.
That KB is about a custom sysprep file provided in an OSCustomizationSpec, it is not about using the regular static IP settings in an OSCustomizationSpec.
For more info on custom sysprep, see Create a Customization Specification for Windows Using a Custom Sysprep Answer File
To see an example script, see p 251 from our PowerCLI Reference Ed 2
Thank you for the response. I'm actually using that example you referred to. The temporary cust spec is created and applied to the VM without any issues and the screen shot I attached is a snapshot of that temp cust spec, showing that the IP info is infact in there. However, after the VMs applies it, the NIC is still set to DHCP. All other customizations are applied.
I'm running vCenter 6.7U3. It may not matter, but there is a bug in this update when it comes to applying cust specs via content library VM deploys. This is a different scenario, since the VM was fully deployed and then had the cust spec applied after and the VM powered on.