I came across nice software (called Onyx) in VMware labs which has the ability to convert your UI operations into powershell code. You might wonder why this is useful. Let me explain. Sometimes we don’t know the parameter/method of a VMware specific powershell object responsible for a particular VM setting. For example, how to change the VM to use a manually assigned MAC address. We know how to do this via vSphere console but might not know until you do some google search. With Google search also it is not guaranteed that you will get correct results because someone had to figureout that in past and post it somewhere. If you want to do it yourself, then this tool is for you.
What it does is, it acts as proxy between your vSphere client and vCenter server and monitors the network communication. That means it can record all the changes you are making through UI and it can convert them into powershell code.
You don’t believe me? Check out this you tube video : http://www.youtube.com/watch?v=bANfdjuH4wk&feature=player_embedded
Download link: http://labs.vmware.com/flings/onyx
I found this tool really helpful.