Using the View PowerCLI cmdlets from another machine

As of version 4.6 VMware View came with some PowerCLI Cmdlets, I wrote a post about these recently after they were released explaining why this was both a good and a bad thing.

I have seen a couple of posts since then using View PowerCLI :

Myself, I never really had a reason to use them that much, I have been busy since they came out and have always been meaning to have a more thorough look at what could be done.

My next post will go into some more detail on the use case but for now I wanted to talk about using these cmdlets from another machine.  Normally with PowerCLI we can connect to the vCenter server using any machine with PowerCLI installed on it whether that be our workstation, an admin server or the vCenter server itself, unfortunately we are unable to do that with the View cmdlets as they stand but PowerShell can help us with this.

One of the features built into Windows PowerShell V2 is called remoting, to find out more information about this feature use the get-help cmdlet in PowerShell as follows: Get-Help About_Remoting.

As explained from the PowerShell help:

You can run remote commands on a single computer or on multiple computers by using a temporary or persistent connection. You can also start an interactive session with a single remote computer.

Also available and very helpful with setting up the correct PowerShell remoting configuration is the following two free guides:

This means that with the correct configuration we can connect to the View server from any machine with PowerShell V2 installed and import the View cmdlets and run them as if we are on the machine, lets see how…

Connecting to the View Server

Use the following video to connect to the View server once remoting is enabled on it:

7 thoughts on “Using the View PowerCLI cmdlets from another machine”

  1. Lyan, can you please share code snippet of how to call powershell through outside domain machine. Please………………………………..

  2. Alan thanks for comment. but in remoting they are generally given the information about computer in the domain only, but i want to call it from any machine in the world or machine outside tht domain. is it possible ?

  3. Can we call powershell of any machine from any machine in the world; means if the caller machine is not in that domain, is it possible to call the powershell of another machine? Please help.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.