One of the things that I’ve learned while playing with the vRanger Pro PowerPack is that our developers have built in a way to remotely connect to the vRanger Service while using PowerShell.  This actually allows us to use PowerShell and Virtualization EcoShell to create a client utility that can interact with the vRanger Server.  With the flexibility that Virtualization EcoShell provides, it is easy to start thinking of many invaluable use-cases for using Virtualization EcoShell alongside vRanger Pro.

To get started, you must make a few quick configuration changes on the vRanger server.  First go into the X:\Program Files\Vizioncore\vRanger Pro\PowerShell directory and modify the vRanger.API.exe.config file using a text editor.

Find the following line:

<endpoint address=”http://localhost:2480/VAPIHost.svc” binding=”wsDualHttpBinding”

Replace the localhost in the file with the IP Address of the vRanger Server.

Next, you need to modify the client file, which resides in the same directory.  Open the vRanger.API.PwerShell.dll.config file.

Find the following line:

<endpoint address=”http://localhost:2480/VAPIHost.svc” binding=”wsDualHttpBinding”

Again, replace localhost with the IP Address of the vRanger Server.

You must now restart the vRanger services on the server.  I’ve personally had the best luck rebooting the vRanger server, but realize this may not be possible in all instances.  vRanger is made up of 3 services that should be restarted for this change to take effect.

You may now copy the entire X:\Program Files\Vizioncore\vRanger Pro\PowerShell directory and move it to any system that has Windows PowerShell installed.  Either Version 1 or Version 2 of PowerShell will suffice.  Once you have the directory copied over, simply open up a standard Windows PowerShell prompt and navigate to the vRanger PowerShell directory.  Type the following command to launch the vRanger Pro console for the first time:

./vRangerConsole.ps1

This command will register the proper components and allow you to add the Vizioncore vRanger Pro PowerShell library into Virtualization EcoShell.  This will also allow PowerShell to interact remotely with your vRanger server to create a client-server architecture using the vRanger Pro Cmdlets!