VMware

VI Toolkit (for Windows) (Very) Unofficial Extensions

VERSION 5 Published

Created on: Jun 23, 2008 1:13 PM by c_shanklin - Last Modified:  Sep 22, 2008 12:08 AM by c_shanklin

This project can now be found on http://www.codeplex.com/vitoolkitextensions

Average User Rating
(1 rating)




Jun 23, 2008 3:35 PM halr9000  says:

(Note: this requires PowerShell V2 CTP 2.)

I haven't tried these yet but these look very interesting: SVMotion-VM, Get-DatastoreFiles, Register-VM. Good stuff.

Can .psm1 files be used this way? I thought you had to use the Export-ModuleMember cmdlet in order to have these things appear in the correct scope. I could be wrong, have not messed much with modules as of yet.

I do like that you are pushing the bleeding edge though. :)

Hal Rottenberg
Co-Host, PowerScripting Podcast (http://powerscripting.net)

Jun 23, 2008 4:00 PM c_shanklin  VMware  says: in response to: halr9000

Regarding export-modulemember, cmdlets appear to be global no matter what. I believe this is probably an oversight. Functions certainly have to be exported.

Jul 19, 2008 11:11 AM c_shanklin  VMware  says:

Turns out the instructions were sitting in the "Author Discussion" tab, which was only visible to me. Sorry about that, here are the instructions:

(new-object net.webclient).DownloadString("http://communities.vmware.com/servlet/JiveServlet/downloadBody/6051-102-1-3481/Extensions.psm1") > $env:temp/Extensions.psm1 add-module $env:temp/Extensions.psm1

Aug 8, 2008 2:47 PM c_shanklin  VMware  says: in response to: c_shanklin

Updated instructions

(new-object net.webclient).DownloadString("http://communities.vmware.com/servlet/JiveServlet/downloadBody/6051-102-4-4112/Extensions.psm1") > $env:temp/Extensions.psm1
add-module $env:temp/Extensions.psm1

Unfortunately this changes with every rev :(

We'll have a better process in place before long.

Actions

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities