Get-VM doesnt work

Posted on 2009-04-06
Last Modified: 2012-06-27
So I downloade the VMware Infrastructure Toolkit (for Windows) from I installed it on a Vista client and wanted to access my VMWare Server 2.0 based on a Debian host(I have no domain set up at home by the way). I connected to the vmware server like this:
[VI Toolkit] C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> Connect
-VIServer -Server -Protocol https -Port 8333 -User Admin -Password
WARNING: There were one or more problems with the server certificate:

* A certification chain processed correctly, but terminated in a root
certificate which isn't trusted by the trust provider.

* The certificate's CN name does not match the passed value.

Name                       Port                       User
----                       ----                       ----              8333                       Admin

I then try to list all VM's:
[VI Toolkit] C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> Get-VM
Get-VM : Angitt argument var utenfor området for gyldige verdier.
Parameternavn: i
At line:1 char:6
+ Get-VM <<<<

This is Norwegian and translates to something like: The specified argument is outside valid values. Parametername: i

So what did I do wrong?
Question by:itnifl
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 22

Expert Comment

ID: 24080768
Was the following command line issued before using PS-VI:
set-executionpolicy remotesigned
LVL 18

Expert Comment

ID: 24080790
execution policy is not considered when executing cmdlets... only scripts.

Get-VM is a cmdlet and should work.  

What happens when you do this




I imagine you are running the wrong version

Author Comment

ID: 24086254
Get-VMHost gives same reply as Get-VM did, described above.

[VI Toolkit] C:\Program Files\VMware\Infrastructure\VIToolkitForWindows> Get-VIToolkitVersion

VI Toolkit Version
VMware VI Toolkit for Windows 1.5 build 142961

The Vmware server 2.0 is using the newest VIX API downloaded from VMWare's site. The whole thing is installed on Debian Linux as the host.
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

LVL 18

Expert Comment

ID: 24087180
Perhaps there is a discovery issue with the provider.

Have you tried being specific?

Get-VM <Name of VM>

If you have further problems... it is most likely a bug... post it here

Author Comment

ID: 24094737
I get the same errors all the time, even when I am specific.
Should I re-install the tools or something?

Author Comment

ID: 24095205
Didnt help to re-install it. I guess I should post it as a bug.

Accepted Solution

itnifl earned 0 total points
ID: 24118492
Seems like only VI Toolkit version 1.0 works against vmware server. 1.5 is intended for Virtual Center Server or standalone ESX hosts

Featured Post

Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

687 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question