Forum Discussion
powershell makes no sense
- 2 years ago
Anonymous Check your PSModulePath environment variable, should be something like this:
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\
It still doesnt work... what is going on here?
- Anonymous2 years agoNot applicable
Greg_Deckler Thanks for your contribution on this thread.
Hi Anonymous ,
Have you been able to resolve the problem you were facing? If not, I would recommend verifying whether the relevant modules are present in the directory: C:\Program Files\WindowsPowerShell\Modules. If you’re unable to locate them, consider obtaining the modules from a colleague who has successfully installed them. You can then copy these modules into your module folder directory. Following this, please check if you’re able to update the module successfully.
Best Regards
- Anonymous2 years agoNot applicable
I would love to copy paste the folders but I dont have anyone to ask for it! I tried downloading it manually but I get a .nupkg file
- Greg_Deckler2 years agoCommunity Champion
Anonymous Check your PSModulePath environment variable, should be something like this:
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\
- Anonymous2 years agoNot applicable
Why is this so so so so so convoluted; it makes no sense!
The crazy part is that I see no error, why is Powershell pretending to install it and silently failing??
Thanks for your answer Greg_Deckler
I ran $env:PSModulePathAnd I get as result:
C:\Users\mari\OneDrive\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\;C:\Program Files (x86)\Microsoft Azure Information Protection\Powershell
These are 5 paths. crazy! why?!?!C:\Users\mari\OneDrive\Documents\WindowsPowerShell\Modules
this path doesnt exist. Should I create it?C:\Program Files\WindowsPowerShell\Modules
I see 5 modules installed hre
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
This seems to be the right one, I see 75 modules, which are the ones I see on my right side in Windows Powershell ISEC:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\
I see 1 module hereC:\Program Files (x86)\Microsoft Azure Information Protection\Powershell
I see 1 module here