Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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_Deckler's avatar
    Greg_Deckler
    Community 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.

  • Anonymous's avatar
    Anonymous
    Not applicable

    It still doesnt work... what is going on here?

     

    • Anonymous's avatar
      Anonymous
      Not 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

      • Anonymous's avatar
        Anonymous
        Not 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_Deckler's avatar
      Greg_Deckler
      Community 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\

      • Anonymous's avatar
        Anonymous
        Not 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:PSModulePath

        And 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 ISE

         

        C:\Program Files (x86)\Microsoft SQL Server\150\Tools\PowerShell\Modules\
        I see 1 module here

         

        C:\Program Files (x86)\Microsoft Azure Information Protection\Powershell
        I see 1 module here