Windows 10: Updating Windows 10 through Powershell

Discus and support Updating Windows 10 through Powershell in Windows 10 Installation and Upgrade to solve the problem; I was just wondering if Windows 10 can be directy updated through Powershell without navigating through Settings> Update and Security. Is there a... Discussion in 'Windows 10 Installation and Upgrade' started by qudistp, Feb 13, 2021.

  1. qudistp Win User

    Updating Windows 10 through Powershell


    I was just wondering if Windows 10 can be directy updated through Powershell without navigating through Settings> Update and Security. Is there a particular command that I can directly type and enter in powershell to update windows?

    :)
     
    qudistp, Feb 13, 2021
    #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, Feb 13, 2021
    #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, Feb 13, 2021
    #3
  4. Kursah Win User

    Updating Windows 10 through Powershell

    PowerShell instead of Commandline in Creators Update

    PowerShell can process many CLI commands but does have its own syntax as you are finding.

    I use it a lot at a management level for carious workstation and sever tasks. Pretty much anything Windows does in the GUI is a powershell command.

    I recommend you look up some info on Google and also look into the book, Learn PowerShell in 30-days Worth of Lunches. That'll give you a great start to properly using and understanding PowerShell. Its extremely powerful and useful...the caveat is learning it and understanding what it wants.

    You should be able to set it back to CLI in personalization settings if you don't want to learn it. CLI is still food enough for most folks...not sure why they felt the need to do that...ironically I have my menus set to display PowerShell instead of CLI.

    http://m.windowsitpro.com/windows-10/pro-tip-replace-command-prompt-powershell-windows-x-menu
     
    Kursah, Feb 13, 2021
    #4
Thema:

Updating Windows 10 through Powershell

Loading...
  1. Updating Windows 10 through Powershell - Similar Threads - Updating through Powershell

  2. Error through Windows 10 update

    in Windows 10 Gaming
    Error through Windows 10 update: Hello. Maybe here I can get help. Yesterday I got new update of Windows 10 and got error of 0x80070057. Don't know what to do with this. Tried PC Repair but it tell me to buy an subscription for it.. I asked a friend and he told me to leave it but I still have some issues...
  3. Error through Windows 10 update

    in Windows 10 Software and Apps
    Error through Windows 10 update: Hello. Maybe here I can get help. Yesterday I got new update of Windows 10 and got error of 0x80070057. Don't know what to do with this. Tried PC Repair but it tell me to buy an subscription for it.. I asked a friend and he told me to leave it but I still have some issues...
  4. 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...
  5. Driver Updates Through Windows 10

    in Windows 10 Updates and Activation
    Driver Updates Through Windows 10: I'm trying to decide how I want to setup my Windows update settings in regards to the driver settings. I know that I can disable driver updates in GPO settings, but I'm wondering if I should just let Windows install my drivers. I don't know which drivers it will attempt to...
  6. Is there a way to control Windows Settings in Windows 10 through PowerShell or Command Prompt?

    in Windows 10 Ask Insider
    Is there a way to control Windows Settings in Windows 10 through PowerShell or Command Prompt?: Specifically, I want to turn on 'Colour Filter' with 'Greyscale' selected. submitted by /u/Secure_Height6304 [link] [comments] https://www.reddit.com/r/Windows10/comments/lzkh81/is_there_a_way_to_control_windows_settings_in/
  7. Using the YourPhone app through powershell

    in Windows 10 Software and Apps
    Using the YourPhone app through powershell: Hi there, I was wondering if there is any way to use the YourPhone app integrated in windows 10 through powershell commands. My intention would be to send an automated message from my phone by running a script. Is that possible and if so how do I achieve that? Thanks in...
  8. Windows Security through PowerShell

    in AntiVirus, Firewalls and System Security
    Windows Security through PowerShell: Is there a way to take action towards threats in Windows Security automatically through a PowerShell applet or cmd command? For example, I see that there was a threat detected, I could run a script on my desktop that quickly tells Windows Security to remove or allow the...
  9. Batch Numbering Files through Powershell

    in Windows 10 Network and Sharing
    Batch Numbering Files through Powershell: Hello, I'm trying to come up with a solution through Powershell that batch numbers files at the beginning of a file name without interrupting the rest of the file name. For example: Current File Names: John Smith.pdf Abel Anderson.pdf Mary Trinity.pdf ..... Rocky...
  10. Windows Store deleted through PowerShell (Admin)

    in Microsoft Windows 10 Store
    Windows Store deleted through PowerShell (Admin): Hi, I was having an issue with being unable to sign into the Xbox app, so I followed a YouTube tutorial. It told me to go into PowerShell and enter the following: Get-AppxPackage *windowsstore* | Remove-AppxPackage Get-AppxPackage *xboxapp* | Remove-AppxPackage and then...