VMware Cloud Community
jvm2016
Hot Shot
Hot Shot

Powercli 11 installation

Hi Luc,

I was trying to install powercli on an offline system.this system does not have any version installed.i downloaded powercli 11 modules and move to $pshome\modules dir.

I was expecting to get all powercli commands on powershell but it did not HAPPEN  

I then tried to import modules but then ended with error .unable to module file .

0 Kudos
12 Replies
LucD
Leadership
Leadership

You should copy the folders to one of the folders listed in $env:PSModulePath

Note that these already point to the Modules folders, no need to add Modules.
And preferably not in the C:\Windows\System32 folder, that was used in older PowerShell folders, and is only there for backward compatibility.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot

but I tested on windows 10 before doing this on server.

And if I am not wrong $pshome\modules is one of the listed folders in $env:PSModulepath.

0 Kudos
LucD
Leadership
Leadership

By default it is, but you or someone else can change an environment variable.
That is why I consider it safer to start from $env:PSModulePath.
And don't use the C:\Windows one, that is a relic from the past.
Use the one under C:\Program Files for Scope AllUsers, or the one under C:\Users for the Scope CurrentUser


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot

tx let me check this.

0 Kudos
jvm2016
Hot Shot
Hot Shot

Just to let yu know that this system has powershell 4.0 and I think it won't cause any issue as powercli11 is compatible with powershell 4.0.

Also I think powercli 11 for the first time included srm module which we were missing in earlier versions.

0 Kudos
LucD
Leadership
Leadership

The SRM module was introduced in PowerCLI 6.5.1, but there was a new version in PowerCLI 11.1.0


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot

Ohh

0 Kudos
LucD
Leadership
Leadership

Did you install PowerCLI 11.3.0 now?
And can you use it?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot

Hi Luc ,

checking it got busy in some training.

0 Kudos
jvm2016
Hot Shot
Hot Shot

Hi Luc,

good morning ,

i am using following

C:\Program Files\WindowsPowerShell\Modules    for scope all users .

0 Kudos
LucD
Leadership
Leadership

That is the correct folder for scope AllUsers.

Is PowerCLI 11.3 now working for you?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
jvm2016
Hot Shot
Hot Shot

I am on it as some other issues on this machine .will let YU know shortly.

thanks.

0 Kudos