Before creating and running .NET applications for PowerCLI, you must set up your developmental environment.


In Visual Studio 2005 .NET or later, create a new project or open an existing project.


Add a reference to the vSphere API .NET Library (VMware.Vim.dll) from the PowerCLI installation folder.

Now you can use VimClient and other VMware.Vim namespace classes to manage your vSphere inventory.