Windows 10: Windows Updates using powershell.exe to install updates

Discus and support Windows Updates using powershell.exe to install updates in Windows 10 Installation and Upgrade to solve the problem; I'm trying to get confirmation that Windows Updates is using powershell.exe to install some Windows updates, but I can't find any information to... Discussion in 'Windows 10 Installation and Upgrade' started by falba, Sep 23, 2022.

  1. falba Win User

    Windows Updates using powershell.exe to install updates


    I'm trying to get confirmation that Windows Updates is using powershell.exe to install some Windows updates, but I can't find any information to confirm this. The reason I'm trying to get this information is because we currently use Kaseya VSA, and we have an application block setup in Kaseya for powershell.exe, and when this block is enabled, some updates fail to install. We locally block Powershell from running in the workstations, but that doesn't prevent Windows updates from installing when the Kaseya app block is disabled. I found that powershell.exe file is in multiple locations inside C

    :)
     
    falba, Sep 23, 2022
    #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, Sep 23, 2022
    #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, Sep 23, 2022
    #3
  4. jds21 Win User

    Windows Updates using powershell.exe to install updates

    Windows Updates failed to instal

    I just did step one and they have just all installed.... thank you so much.... it was quite frustrating having that update window pop up every 5 minutes and failing to instal every time

    Thanks mate
     
    jds21, Sep 23, 2022
    #4
Thema:

Windows Updates using powershell.exe to install updates

Loading...
  1. Windows Updates using powershell.exe to install updates - Similar Threads - Updates using powershell

  2. Can't install updates with Powershell Windows update script after kb5040442

    in Windows 10 Gaming
    Can't install updates with Powershell Windows update script after kb5040442: I am using the following script to update Windows images during Hashicorp Packer builds: https://www.powershellgallery.com/packages/AppVeyorBYOC/1.0.82/Content/hyper-v%5CWindows%5Cscripts%5Cwin-updates.ps1The script stops working on Windows 11 22h2 and 23h2 OS versions after...
  3. Can't install updates with Powershell Windows update script after kb5040442

    in Windows 10 Software and Apps
    Can't install updates with Powershell Windows update script after kb5040442: I am using the following script to update Windows images during Hashicorp Packer builds: https://www.powershellgallery.com/packages/AppVeyorBYOC/1.0.82/Content/hyper-v%5CWindows%5Cscripts%5Cwin-updates.ps1The script stops working on Windows 11 22h2 and 23h2 OS versions after...
  4. How to find Windows Update Size using PowerShell

    in Windows 10 News
    How to find Windows Update Size using PowerShell: [ATTACH]If you want to find Windows Update size using PowerShell, here is how you can do that. Although Windows Settings could do it easily, you can use PowerShell to do the same within moments. For that, you need to install a script as there is no in-built PowerShell command...
  5. Installed windows updates through Powershell was not showing in updates history

    in Windows 10 Installation and Upgrade
    Installed windows updates through Powershell was not showing in updates history: I installed Powershell windows update module then download and install pending windows updates using Powershell.All went well with no errors. Verified windows updates was installed in Powershell using this command "Get-WUHistory".However, these newly installed updates was not...
  6. How to Hide Windows Updates using PowerShell in Windows 10

    in Windows 10 News
    How to Hide Windows Updates using PowerShell in Windows 10: Windows Updates are a way to increase your computer’s performance, add features, and optimize it for better (or for worse). However, sometimes you may want to hide these updates to stop them from being installed on your computer. Microsoft did offer a Hide Windows Updates...
  7. Trying to Hide a Windows 10 Update using Powershell

    in Windows 10 Installation and Upgrade
    Trying to Hide a Windows 10 Update using Powershell: [ATTACH] [ATTACH]Powershell command is not being accepted. Please help https://answers.microsoft.com/en-us/windows/forum/all/trying-to-hide-a-windows-10-update-using/88a2bbaf-1e58-4182-a854-8d488f52e120
  8. PowerShell Update

    in Windows 10 Support
    PowerShell Update: Hello everyone, I was trying to work through the instructional "Powershell Scripting - The Basics" and ran into a problem. When I try to even run Start-VM I get this error. [img] And then, when I try to update my Powershell on the web I get this. [img] I am hoping...
  9. Powershell command for installing exe and msi

    in Windows 10 Support
    Powershell command for installing exe and msi: Can someone help me with powershell commands for installing some exe and msi files from a pendrive? I have apps like Cisco Jabber (MSI), Cisco AnyConnect (exe), Dell Command Update (MSI), and Webex Teams(MSI) I need to add to my powershell script to automatically install the...
  10. Update and Upgrade Windows 10 using PowerShell

    in Windows 10 Tutorials
    Update and Upgrade Windows 10 using PowerShell: How to: Update and Upgrade Windows 10 using PowerShell [img] Information Since its birth in November 2006 PowerShell has evolved to be the chosen tool of network administrators and advanced users alike. Originally a native Windows tool it has since August 2016 been an...