bottkars / vmxtoolkit

vmxtoolkit is the Powershell extension to VMware Workstation
Apache License 2.0
116 stars 32 forks source link

Error in line 1721 Character 19 #5

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi, The script are reporting the following error:

The expression following the '&' in a pipeline element produced an invalid object. The result should be a command name, a script block or CommandInfo object. En C:\Users\admin\Documents\vmxtoolkit-master\vmxtoolkit.psm1: 1721 Character: 19

Thanks so much for your hard work to bring us this awesome tool.

Rincevent76 commented 8 years ago

Same error here, only it's on line 1763 : 19

bottkars commented 8 years ago

How di you load the modules ? wich was the command you were using when it showed up ? image if modulkes are not loaded / initialized, it wil fail anyway.

Rincevent76 commented 8 years ago

You are right I mis-imported the module (tried to import the psm1 file instead of the psd1 file) now it works, thanks a lot for yout help !

bottkars commented 8 years ago

you can for eas of use, just import the upper level directory without tariling \, eg ipmo c:\vmxtoolkit

Rincevent76 commented 8 years ago

thxs for the tip, will use it for sure (I'm just starting with powershell)