Windows 10: So i am having trouble with powershell when trying to install or update any module

Discus and support So i am having trouble with powershell when trying to install or update any module in Windows 10 Software and Apps to solve the problem; I had an issue with changing the execution policy so I downloaded the PowerShell 7 zip and replaced all from it with the default install of PowerShell... Discussion in 'Windows 10 Software and Apps' started by MaskedCoder, Jan 16, 2024.

  1. So i am having trouble with powershell when trying to install or update any module


    I had an issue with changing the execution policy so I downloaded the PowerShell 7 zip and replaced all from it with the default install of PowerShell 5.1 now I can not install or update any module and the previous issue is not resolved until I import the older version of the execution module from system32\WindowsPowerShell\v1.0\ModulesI am pretty sure that most other commands are broken too and I haven't stumbled on them yetCan you help me fix this issue by giving me the default modules in Win 11, PowerShell 5.1 comes with Or is there a way to download them again I tried using the Nuget gall

    :)
     
    MaskedCoder, Jan 16, 2024
    #1
  2. Kursah Win User

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Jan 16, 2024
    #2
  3. [Windows 10] hide/prohibit install of specific Windows Update

    Edit: Try "Show or hide updates" troubleshooter package first and let us know if it works for you.


    Adapted from Preventing a certain Windows Update from installing on Windows 10 by Igal Tabachnik.
    • Uninstall the problematical driver/update.
    • Restart the computer, if necessary, and/or switch to an administrator account.
    • Download Windows Update PowerShell Module and extract it to: %WINDIR%\System32\WindowsPowerShell\v1.0\Modules After doing so, you will have a %WINDIR%\System32\WindowsPowerShell\v1.0\Modules\PSWindowsUpdate folder with a bunch of files.
    • Start -> All Apps -> expand Windows PowerShell -> right-click on Windows PowerShell and select Run as Administrator. This is very important or you'll get errors in Windows PowerShell.
    • Now you should see the PowerShell window and you'll have to enter a series of commands. First order of business is loading up PSWindowsUpdate. Note: You have to do this every time you restart PowerShell and want to use PSWindowsUpdate commands!
      CommandDescriptionSet-ExecutionPolicy Unrestricted -ForceAllows the use of unsigned PowerShell scripts.Import-Module PSWindowsUpdateLoads PSWindowsUpdateSet-ExecutionPolicy Restricted -ForceClose the potential security hole.
    • Enter Get-WUList. This command will take a little while to execute. It retrieves the list of all available updates on Windows Update. If you do not see the problematical update here, it is either no longer being offered or it is installed.
    • Now you need to decide how to filter what update you want to hide. Here's some examples:
      CommandDescriptionHide-WUUpdate -Title "*Realtek High Definition Audio"This looks for a title that ends with (note the asterisk) "Realtek High Definition Audio"Hide-WUUpdate -Title "Realtek*"This looks for a title that starts with (note the asterisk) "Realtek"
      When you enter the above command, it will loop through all results it finds and ask whether or not you want to hide it. Make sure you only say "yes" to the one you want hidden and "no" to the rest.
    • It will automatically show the updated results. Verify there is an "H" under the status of the ones you want hidden and not behind the rest. If it is correct, close out of PowerShell and return to your normal user account if necessary. Run Windows Update and the update should not show/install.
    If you want to unhide an update, add -HideStatus:$false to the Hide-WUUpdate command.
     
    FordGT90Concept, Jan 16, 2024
    #3
  4. So i am having trouble with powershell when trying to install or update any module

    Cannot Update Powershell Help with the "Update-Help" Command

    Hi,I am Vanshita, an Independent Windows Advisor. I am here to work with you on this problem.

    I suggest you to go through the below steps and check if it helps.

    https://docs.microsoft.com/en-us/powershell/mod...

    Hope it works
     
    vanshitavanshita, Jan 16, 2024
    #4
Thema:

So i am having trouble with powershell when trying to install or update any module

Loading...
  1. So i am having trouble with powershell when trying to install or update any module - Similar Threads - having trouble powershell

  2. Powershell error when using install-module

    in Windows 10 Gaming
    Powershell error when using install-module: Hello !when I use Install-Module -Name ExchangeOnlineManagementI get the following error : Install-Package: The module 'ExchangeOnlineManagement' cannot be installed or updated because the authenticode signature of the file 'ExchangeOnlineManagement.psd1' is not valid.I use...
  3. Powershell error when using install-module

    in Windows 10 Software and Apps
    Powershell error when using install-module: Hello !when I use Install-Module -Name ExchangeOnlineManagementI get the following error : Install-Package: The module 'ExchangeOnlineManagement' cannot be installed or updated because the authenticode signature of the file 'ExchangeOnlineManagement.psd1' is not valid.I use...
  4. So i am having trouble with powershell when trying to install or update any module

    in Windows 10 Gaming
    So i am having trouble with powershell when trying to install or update any module: I had an issue with changing the execution policy so I downloaded the PowerShell 7 zip and replaced all from it with the default install of PowerShell 5.1 now I can not install or update any module and the previous issue is not resolved until I import the older version of the...
  5. I am having trouble updating windows. It wont install the update i have tried trouble...

    in Windows 10 Gaming
    I am having trouble updating windows. It wont install the update i have tried trouble...: It is update 2023-09 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems KB5030219everytime I try and install the update it fails. I don't know what else to do....
  6. I am having trouble updating windows. It wont install the update i have tried trouble...

    in Windows 10 Software and Apps
    I am having trouble updating windows. It wont install the update i have tried trouble...: It is update 2023-09 Cumulative Update for Windows 11 Version 22H2 for x64-based Systems KB5030219everytime I try and install the update it fails. I don't know what else to do....
  7. I am having trouble with PowerShell as I try to correct file names.

    in Windows 10 Network and Sharing
    I am having trouble with PowerShell as I try to correct file names.: In 2017 I noticced that my photo file names had a timestamp in them, which meant that Lightroom could not find them. I asked on this forum and got help from Naresh K. He gave me a powershell string to use and it worked well. I found more files to change, but now I get an...
  8. I am having trouble with PowerShell as I try to correct file names.

    in Windows 10 Gaming
    I am having trouble with PowerShell as I try to correct file names.: In 2017 I noticced that my photo file names had a timestamp in them, which meant that Lightroom could not find them. I asked on this forum and got help from Naresh K. He gave me a powershell string to use and it worked well. I found more files to change, but now I get an...
  9. I am having trouble with PowerShell as I try to correct file names.

    in Windows 10 Software and Apps
    I am having trouble with PowerShell as I try to correct file names.: In 2017 I noticced that my photo file names had a timestamp in them, which meant that Lightroom could not find them. I asked on this forum and got help from Naresh K. He gave me a powershell string to use and it worked well. I found more files to change, but now I get an...
  10. I am having so many troubles trying to update my laptops performance

    in Windows 10 Performance & Maintenance
    I am having so many troubles trying to update my laptops performance: After a long time of having this computer, about 2 years, I wanted to update its drivers and when I tried, I figured at that "These drivers are Intel generic drivers. They do not include customizations that your manufacturer might have added to optimize your computing...