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 .
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
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.
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
tx let me check this.
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.
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
Ohh
Did you install PowerCLI 11.3.0 now?
And can you use it?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc ,
checking it got busy in some training.
Hi Luc,
good morning ,
i am using following
C:\Program Files\WindowsPowerShell\Modules for scope all users .
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
I am on it as some other issues on this machine .will let YU know shortly.
thanks.