i have following scenerio where i see powercli 6.5 in control pannel which seems to be installed by msi
at the same time i have 11.2 also and i dont see any modules in default directory
iam willing to upgrade but for some reasons online wont work .do i need to uninstall 6.5 for offline upgrade .
not sure how 11.2 modules come from??
i dont think it should be the case as thhis is equivalent to uninstaling the way we do throuh control panel .
and it .msi packge not the modules that started with 6.5.1 while im uninstalling 6.5.0.
i exited powershell
and stopped all powershell processes
however now i have copied offline modules .but autoloading is not working
i m checking
You seem to have some very 'funny' systems there :smileygrin:
Without actually looking at the environment, it is hard to determine what might go wrong.
Some general tips:
- use the Verbose switch
- check $env:PSModulePath
- try to load the module with the full path to the module's .psd1 file
- try the Import-Module from different PS versions (if you have them installed side-by-side)
- check the PS eventlogs (when on Windows) or the logs documented in about_Logging_Non-Windows
it is a straightforward process also i tested on one of the machines before going futher .
one of the blogs from kyle rudy says sometimes saving module on online sytem with powershell 5 causes issues ans someone raises this issue earlier .
so they recommend to save on online sytem with powershell 4 .now its hard to find powershell 4 .as its hard to find things we desire ...
i might be court martialed for this ..
The most common scenario we’ve come across is where the ‘Save-Module’ cmdlet was used with an online system that has PowerShell version 5.x. When this happens, there are an additional level of folders created between the top-level module folder and the module files themselves.
this is from vmware blog only