Get-VM doesnt work

So I downloade the VMware Infrastructure Toolkit (for Windows) from http://www.vmware.com/sdk/vitk_win/index.html. 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 192.168.1.102 -Protocol https -Port 8333 -User Admin -Password
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
----                       ----                       ----
192.168.1.102              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?
LVL 2
itniflAsked:
Who is Participating?
 
itniflAuthor Commented:
Seems like only VI Toolkit version 1.0 works against vmware server. 1.5 is intended for Virtual Center Server or standalone ESX hosts
0
 
65tdRetiredCommented:
Was the following command line issued before using PS-VI:
set-executionpolicy remotesigned
0
 
BSonPoshCommented:
execution policy is not considered when executing cmdlets... only scripts.

Get-VM is a cmdlet and should work.  

What happens when you do this

Get-VMHost

or

Get-VIToolkitVersion

I imagine you are running the wrong version
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
itniflAuthor Commented:
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.
0
 
BSonPoshCommented:
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
http://communities.vmware.com/community/developer/windows_toolkit
0
 
itniflAuthor Commented:
I get the same errors all the time, even when I am specific.
Should I re-install the tools or something?
0
 
itniflAuthor Commented:
Didnt help to re-install it. I guess I should post it as a bug.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.