VMware Cloud Community
jwodka
Contributor
Contributor

Setting Virtual Machine IP Address through PowerCLI / VI Toolkit

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.

0 Kudos
2 Replies
VMmatty
Virtuoso
Virtuoso

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

Matt | http://www.thelowercasew.com | @mattliebowitz
0 Kudos
jwodka
Contributor
Contributor

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?

0 Kudos