I am trying to figure out how to configure a VM's IP settings through PowerCLI. I am able to create Network Cards for the VM's. I believe there is someway to do this through the OS Customization Specifications but I am not sure of the sytnax on how to do that or where and when to apply the function in my script. Any help would be greatly appreciated. Thanks.
Take a look at the following link. If you scroll down about halfway through you'll find a PowerShell script that can be used to change the IP address of a virtual machine.
http://communities.vmware.com/docs/DOC-4210
I ran the script on the page. However when I input it in the PowerCLI it runs without error. When I look on the Server end, and error appears.
A specified paramater is not correct. "spec.identity".
There are some threads about developers having the same problem, but there seems to be no solution for this.
Any thoughts?