In the previous post I introduced you guys to basic PowerCli
Well Today I’ve got a practical example script.
Over the last few weeks we had a lot of open sessions on our vCenter server.
This from people leaving there client open and never closing them (retards, sorry for the language).
This generated some idle sessions from a few hours to a few days :-S
This got so on my nerves that I wanted a solution for this, unfortunately vmWare did not implement the feature to disconnect idle session after a specific time in the Client or vCenter settings.
So time to build a script Continue reading
Ever needed to do some bulk operation in you’re vmware virtual environment ?
Or just needed information of a bunch of virtual machines ?
Then you probably had a lot of manual labor to do in the vShere client.
Well vmware came with a solution:
The program is called VMware vSphere PowerCLI and more information can be found here.
A short discription in the words of vmWare:
VMware vSphere PowerCLI provides a Windows PowerShell interface to the vSphere API. vSphere PowerCLI includes PowerShell Cmdlets (pronounced, “command-lets”) for administering vSphere components. In addition, the vSphere PowerCLI package includes the vSphere SDK for .NET for developers who want to create their own applications.
Let’s get started implementing and using the PowerCli