Forum Discussion
powershell makes no sense
Why it doesnt find it? Right after installing it... What am I doing wrong?????
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\
6 Replies
- Greg_DecklerCommunity Champion
Anonymous I may be mistaken, but I don't believe you can use that module for 32-bit, you need to run 64-bit.
- AnonymousNot applicable
It still doesnt work... what is going on here?
- AnonymousNot 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
- AnonymousNot 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_DecklerCommunity 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\
- AnonymousNot 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