Windows Updates through PowerShell

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Did you know you can install updates with using PowerShell? This is the Guide for doing that!
    Website guide: christitus.com... .
    ►► Digital Downloads ➜ www.cttstore.com
    ►► Reddit ➜ / christitustech
    ►► Titus Tech Talk ➜ / titustechtalk
    ►► Twitch ➜ / christitustech

Комментарии • 195

  • @surfingsub5854
    @surfingsub5854 Год назад +57

    Thanks for the video Chris. A couple minor items
    1. Noobs will need to know to enable setting execution policy. This should be sufficient to get it going. Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
    2. Your OUT-FILE code will not write the computer name and date as is, this should work better
    Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot | Out-File "C:\${env:COMPUTERNAME}_$(get-date -f yyyyMMdd)_MSUpdates.log"
    3. Nit picking. One should not write log files to the root of the drive. Should probably make a folder in Documents or the Desktop and log it there. I like to put the date first that way it sorts by date.

  • @fivemonkeees
    @fivemonkeees Год назад +5

    I've been using the pswindowsudpate module for years. It saved a bunch of issues when trying to get a build up to the most recent patch level. It's not as good as apt or yum. But it's an improvement on the way windows normally works. You may find that it won't run unless the executionpolicy is set to remotesigned. (I usually use chocolatey to install it and I need to make sure that powershell is running a minimum of version 5.1 and the executionpolicy will allow the running of that module)

  • @Atticman1369
    @Atticman1369 Год назад +14

    Thanks for all your videos! Thank God a sane person on RUclips showing cool stuff that actually is useful with a special comical touch. I'm both Windows and Linux power user. Used to write WDM drivers for Windows XP and Vista, then the good old VxD drivers for Windows 95/98 which still worked on XP! Now I'm hardcore Linux driver/user space coder C/ C++. Love this stuff!
    I'm learning a lot from your videos regarding different installers and how to configure Linux Ubuntu is my primary, Kali my home distro. Looking at some other distros a bit later. Even have the freebie Oracle cloud account.

    • @GooogleGoglee
      @GooogleGoglee Год назад +1

      Great stuff! Keep it going with Linux!

  • @nicthegarden
    @nicthegarden Год назад +2

    God I like the modern touch of your right click that meets the old way of displaying it.
    I want it now !

    • @grantsgamesandtech312
      @grantsgamesandtech312 Год назад

      I wasn't able to get it to work perfectly with my system but I think it's called NileSoft Shell. Chris Titus has it in his Windows Utility listed as "Shell (Expanded Context Menu)" under the "Utilities" category. Hope that helps!

  • @KAKUN_DESU
    @KAKUN_DESU Год назад +3

    yoo this is amazing! It actually finds and installs optional updates (like drivers) as well! something that was missing since I installed your debloat script - I couldn't get optional updates anymore. No I finally can with this trick! Thanks!

    • @GooogleGoglee
      @GooogleGoglee Год назад

      Trick? It is something that has been broken from the beginning ... Still useless because a patch to the patch...

    • @KAKUN_DESU
      @KAKUN_DESU Год назад

      @@GooogleGoglee I don't really understand what you mean. When I use vanilla windows update it will give me optional drivers. Like for my monitor and stuff. Which is useful since when I uninstall my GPU driver through DDU it will also remove my monitor driver. So all I have to do is windows update to get it back. However, with Chris Titus's debloat script that's not possible anymore. It doesn't offer me optional update anymore, ever. Which is bad. But with this powershell trick It offers me optional updates again!

  • @CoMmAnDrX
    @CoMmAnDrX Год назад +3

    I get this error and both my Windows 10 and 11 systems.
    the 'get-windowsupdate' command was found in the module 'pswindowsupdate', but the module could not be loaded.

  • @eddiemartinez9432
    @eddiemartinez9432 Год назад +1

    Thanks Chris this is awesome!! I did have to add one additional prerequisite to allow scripts to run using this command: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted

    • @katrinabryce
      @katrinabryce Год назад +3

      I prefer RemoteSigned to Unrestricted.

  • @ScorpionCar
    @ScorpionCar Год назад +2

    0:37 - Dec 16th 2022. Chris has somehow achieved time travel

  • @orangeheartguy
    @orangeheartguy Год назад +17

    Wait... why is that cumulative update 128GB in size??!

    • @KimDahl77
      @KimDahl77 Год назад +11

      It is to reinstall all the crap he cut from the windows install ;)

    • @CarterPersall
      @CarterPersall Год назад +9

      The thing PSWindowsUpdate uses to update Windows has had a bug for a long time where cumulative updates will show as being much larger than they actually are.

    • @GooogleGoglee
      @GooogleGoglee Год назад +1

      And more over: why so geberic and no details? What does it do and what it contains??
      Horrifying !! Just a GUI badly translated to CLI to hide better more things....

  • @DarkPsychoMind
    @DarkPsychoMind Год назад +1

    Hi Chris
    Everything works thanks, you are my hero and mentor 😊
    Greetings from Belgium
    Tom

  • @bandoneon_ar
    @bandoneon_ar Год назад +3

    A 128GB Update? huh... Great content as always, tyvm!

  • @Vaiyn
    @Vaiyn Год назад +10

    It seems that the publication date on the site is only set for December 16 - in two days.

  • @spxxdey
    @spxxdey Год назад +5

    Very informative video Chris! I also like experimenting with Windows, but unfortunately I did too much and completely broke my Windows Update service. I never knew you could manually install Updates from Powershell. Life changer! 😁

    • @GooogleGoglee
      @GooogleGoglee Год назад

      I would say switch to another OS better "time wasted"

  • @4ngeldus739
    @4ngeldus739 Год назад

    I'm not even a windows user but I love seeing the stuff you are able to do with it

  • @tim_biller
    @tim_biller Год назад +8

    Excellent stuff... BTW your website guide link above is 404'ing ...

  • @vPeteWalker
    @vPeteWalker Год назад +3

    Hi Chris. Article gives a 404. Thanks for the vid!

  • @crian117
    @crian117 Год назад +1

    More powershell stuff plz!

  • @ThePowerRanger
    @ThePowerRanger Год назад +1

    Never heard of this. Pretty cool.

  • @aldozampatti
    @aldozampatti Год назад +1

    FYI, On one of my systems it forced my to change the ExecutionPolicy. So you might want to add that to your guide or a pinned comment that if you face errors while executing the 2nd command (Add-WUServiceManager) you might need to change your ExectionPolicy :)
    Thanks for the tip!

  • @prowler1567
    @prowler1567 Год назад

    Thanks for the information. I will file this into things to know about Powershell.

  • @phoenixyt124
    @phoenixyt124 Год назад

    Your Debloat Windows tool broke my windwos updates. Thanks. Now i have to painstakingly reinstall windows.

  • @HCBoss1992
    @HCBoss1992 Год назад +2

    Can you upload for us windows10 lite for low end pc, users please chris and don't forget to remove microsoft defender either

  • @timburton4488
    @timburton4488 Год назад

    thank you so much for your work and help.

  • @nishantshokeen4279
    @nishantshokeen4279 Год назад

    Why does this powershell look cool?
    Was there a chris' video on theme that I missed!?

  • @TretrebuchPlay
    @TretrebuchPlay Год назад

    3:42 - Probably nobody cares, but this is not a Windows Terminal feature, it is part of Powershell. The PSReadLine Module to be more specific. Or at least it does not work anymore, after typing "Remove-Module PSReadLine", which is unloading the module from the current session.

  • @AlanKeno
    @AlanKeno Год назад

    Hey Chris, I love learning powershell to update multiple computers! You mentioned a gaming pc that you run headless and also referred to another of your videos to do this?
    Please elaborate.

  • @tonigon5767
    @tonigon5767 Год назад

    The link works now, thank you.

  • @SaarKoren
    @SaarKoren Год назад +1

    Would this work in a closed network where Windows updates are pulled from a local server instead of directly from Microsoft?

  • @HCBoss1992
    @HCBoss1992 Год назад

    We love CTT

  • @neohydros
    @neohydros Год назад +4

    Why doesn't the link to your website work?

  • @ayushtomar039
    @ayushtomar039 Год назад +1

    Hello sir, please make a room tour video, what's changed, what's optimized, what do you use, its been a while

    • @ChrisTitusTech
      @ChrisTitusTech  Год назад +2

      You read my mind, I actually just ripped out my entire desk and redoing things once again.

  • @romeo-sierra
    @romeo-sierra Год назад +1

    I used your settings to delay feature updates, but I let windows auto install security patches. If there are issues with Windows Update, then the powershell method has some value.

  • @irelia_master4487
    @irelia_master4487 Год назад

    Basically you save me live CUZ I could not update simple met ode Thank you man

  • @DaveSomething
    @DaveSomething Год назад +2

    that's a very nice 404 page you have there

  • @sligoquadcopter
    @sligoquadcopter Год назад

    I followed the "Setting Up the Ultimate Windows 11" guide, built a custom installer via NTLite and applied the debloat GUI. Superb, thank you, low process count and a worthwhile speed increase over stock. If I update Windows through Powershell, or any other method for that matter, will I break the custom install in terms of bloat being added back or any of the strippage being put back?

  • @jesuspiceno620
    @jesuspiceno620 Год назад

    Hey Chris! Any chance can you make a video on Installing Windows Update on Remote Computers with PowerShell!!!!!

  • @user-bc5vv1ug2g
    @user-bc5vv1ug2g Год назад

    this is very nice to know/learn about.

  • @tonymarms8908
    @tonymarms8908 Месяц назад

    thank you for this, very informative and straight forward 👍👍 ... I have in my mind though if its feasible
    there's an option in windows update settings that when I click the ""Pause updates for 7 days" option, right away the windows update is pause for 7 days. then you can adjust it up to 1 month i think in advanced options.. what I wanted is to automate the pausing every month, is there a powershell syntax or script that has equivalent results the way pausing in GUI? then when I have that script i can just trigger it using scheduller maybe

  • @Atticman1369
    @Atticman1369 Год назад

    Awesome videos!

  • @Graham6410
    @Graham6410 Год назад

    Might try this next time I have issues with the normal Windows Update setting.

  • @Swinhart
    @Swinhart Год назад

    Outstanding video

  • @g1sixshot
    @g1sixshot Год назад

    As a semi-power user, this is interesting. I'm late to the party in finding this. But here's a question:
    If I just run those two commands (Get-WindowsUpdate/Install-WindowsUpdate), does that flag my computer get non-security beta updates? (I recalled MS doing something like this years ago on people who pressed the 'Check for update' button but don't know if they're still doing it today.)

  • @sandikedua4223
    @sandikedua4223 Год назад +1

    Is it faster tho?cause sometimes windows update give me headache

  • @caseygrim3583
    @caseygrim3583 Год назад

    Doesn't work for me I run the first 2 commands, but when I run the update command nothing happens just sits at the prompt and nothing happens and the output file is blank

  • @lollandz
    @lollandz Год назад +2

    A christmas wish:
    A guide to create an install media:
    Debloated windows 10/11, no defender/future updates (but ofcourse with the most recent update)
    also containing own preinstalled apps like brave, steam and other own apps.
    so we have a clean windows stick to start over with, when ever the darn thing gets clutted.

    • @khitofn6249
      @khitofn6249 Год назад

      all you need do is make your own iso then run his debloater tool thru powershell as admin he has installer and tweaker/ debloat

    • @SariconYT
      @SariconYT Год назад

      he did a video like that (even 2 i think)

    • @lollandz
      @lollandz Год назад

      @@khitofn6249 but that should be done every time i reinstall windows ?

    • @khitofn6249
      @khitofn6249 Год назад

      @@lollandz you downloading windows a lot ? Every time you fresh install or factory reset yes you would need to

    • @lollandz
      @lollandz Год назад

      @@khitofn6249 there is an option that makes it possible to install software like Adobe, steam and other things you might install on every fresh windows installation.
      That is using a windows tool called sysprep..
      I have tried this thing.. but I'm am not so skilled, and CTT is just a master at explaining and doing his stuff 👍😁

  • @RobsonLuizRL
    @RobsonLuizRL Год назад

    Very nice!!

  • @yigajonathan4744
    @yigajonathan4744 Год назад

    Hello Chris, i was just requesting if you would make a video about RAID , troubleshooting tips on RAID Arrays

  • @MRSMITHENTOP
    @MRSMITHENTOP 4 месяца назад

    what camera is that ! its freaking epic!!!

  • @petersoilander1506
    @petersoilander1506 Год назад

    Well, I think it's fun but the Windows Update is better now than before (couple of years ago), but in case if it's stuck, the commands are good to know

  • @budliquor6972
    @budliquor6972 Год назад +1

    2:13 The third update is 128GB?

  • @Clarence-Homelab
    @Clarence-Homelab Год назад +1

    I think there might be a small mistake concerning the log file name.
    It should be "$env:computername" and not "$env.computername"

    • @neonicacid
      @neonicacid Год назад +2

      He probably also wants to wrap the Get-Date and formatting. Something like "$env:computername-$(Get-Date -f yyyy-MM-dd)-MSUpdates.log"

    • @Clarence-Homelab
      @Clarence-Homelab Год назад

      @@neonicacid yeah, it's a bit of a mess ^^

  • @AndrewPayne
    @AndrewPayne Год назад +4

    website link is broken? Error 404 Not Found

  • @DizConnected
    @DizConnected Год назад

    So, I did a Windows 11 22H2 NTLite install and love it, everything is working great except I like Dolby Atmos but no longer have the Windows store. Is there a way to install Windows store apps from PowerShell?
    After posting this I found your video titled "Install Microsoft Store Apps WITHOUT the Microsoft Store" Thank you!

  • @neo778
    @neo778 Год назад

    3:09 What's the difference between "winget" and chocolatey?

  • @mrmuffin5046
    @mrmuffin5046 Год назад

    why trying to install the update i keep getting the error admin rights required... even when running powershell as admin.

  • @mitchelllong43
    @mitchelllong43 Год назад

    The updates that show up for me are all the driver updates that are under view optional updates in the settings menu for Windows Update. Should I run these? I was always under the impression you only do the optional updates if having an issue.

  • @UltraStyle_PC88
    @UltraStyle_PC88 Месяц назад

    Hi Chris, Can you please make a video on a fix on windows 11 pswindowsupdate. Can't seem to get windows update working with power shell recently.

  • @shadowopsairman1583
    @shadowopsairman1583 Год назад

    Windows Updates need vetting. I disabled WUDs as well.
    Right Arrow Key Fill has been a Feature since I believe the DOS days, I know it is in cmd, way before pshell

  • @AshLordCurry
    @AshLordCurry Год назад

    Thank you for being a god

  • @josh-rx6ly
    @josh-rx6ly Год назад

    Chris, Think you mean 23H1. How can you have 22H3? When is the third half of the year :) ?

  • @XQOHARX099
    @XQOHARX099 Год назад

    Oh yea this cool. But how if we just want to pick only one update?.
    Thanks.

  • @sumitroynepal
    @sumitroynepal Год назад

    Great video, thank you! Any tips for installing few google fonts using PowerShell?

    • @sumitroynepal
      @sumitroynepal Год назад

      ​On Mac, dragging a folder to font folders works... but on windows after downloading zip files (google fonts)... it takes lots of time to move those fonts (dragging folders doesn't work on windows - font folder).
      So, if you​ could​ recommend some PowerShell / script (​with a few clicks or command line) would be very appreciated.

  • @OldePhart
    @OldePhart Год назад

    I have an industrial environment where I can use WSUS to send the updates to the clients but I have to initiate the actual update manually since I have to do that during a downtime cycle. PS looks like it could help with that. Is there a PS command technique I can use from my workstation to initiate the update on other machines ?

  • @IcyyX_
    @IcyyX_ Год назад

    Is there any way to do this fir specific updates that u can pick to update

  • @inTerActionVRI
    @inTerActionVRI Год назад

    Do these commands only work in PowerShell 7.3.x or will they also work in native PowerShell 5.1?
    Is there any cmdlet that downloads updates instead of doing direct installation, by informing build and architecture?
    Thnks, man!

  • @Jimmy_Jones
    @Jimmy_Jones Год назад

    Could you use this in an organisation to upgrade devices from 1909 to 22H2? My organisation is telling us to manually use Windows Update Assistant as the update policies are broken on loads of devices.

  • @user-ju7mw8nu1r
    @user-ju7mw8nu1r Год назад

    I keep getting "Failed" as the result for all updates, please what do I do?

  • @steveforbes6303
    @steveforbes6303 Год назад

    Do you happen to know it the KB4023057 update will restrict or block some of the update restrictions that you set in powershell or via your Utility script?

  • @katrinabryce
    @katrinabryce Год назад

    Your method of updating remotely works on my domain controllers, but not any of my other servers 🤷🏻‍♀
    FreeBSD and Linux are so much easier. Put an update script in the same location on each VM. Set up sudo to allow a specific user to run it without a password, then run them all over ssh.

    • @eonbart
      @eonbart Год назад

      You can do quite the same with PSWindowsUpdate. Invoke-WUJob creates a scheduled task on the remote server.

    • @maxhennessy6676
      @maxhennessy6676 Год назад

      Running windows domain, just use WSUS call it a day or depending how big your environment is get a EPM that does patch management.

  • @RefrigeratorLight
    @RefrigeratorLight Год назад

    I think Chris just read my mind. This morning I was installing updates on my Windows machine and wondering if there was a way to do this via Powershell, so I could make some scripts to update my system. And a few hours later, Chris makes this video! I recently made some scripts to update my mac and linux systems and I'm looking forward to do the same on Windows.

  • @ShiziKroc
    @ShiziKroc Год назад

    It would be nice if it would have progressbar like in winget. But great tool.

  • @tamboleo
    @tamboleo Год назад

    This is what I use for updating computers on the task sequence. I also make a task scheduler to run windows update every week on the background

    • @budliquor6972
      @budliquor6972 Год назад

      You reboot every week using task scheduler?

  • @kingkairos
    @kingkairos Год назад

    I think you got your website guide releases flipped around. There's one up for Acronis but the one for this video isn't up yet.

  • @intelhdtest3796
    @intelhdtest3796 10 месяцев назад

    I need help when install application s use power shell
    the application install put whene need open they close

  • @idkjustme7947
    @idkjustme7947 Год назад

    Ok ik this was for good intent but first this is why I went to this because my computer wouldn't let me update i would try it and it would say error and then uninstall the update and go into log in screen so it didn't work so I looked for a tutorial and found this video and I tried it out on my computer it installed on powershell then I reset my computer then I get blue screen error 0xc000021a and now I can't boot into windows I tried safe mode with networking and safe mode with command prompt and it just kept giving me the same error. I really need my computer I dont have enough to by another one I have alot of information on there and I would like to know if you could help me fix this issue btw on blue screen it lets me click advanced options and let's me use command prompt so if there is a way to fix it by using command prompt can you help me please.

  • @bion4tural
    @bion4tural Год назад

    Amazing video. I have a question... Recently i bought a larger 1TB nvme disk and did a clean install, only to find out i'm missing partitions that are hidden: :* FAT32 100MB (EFI System partition); :* Other 16MB (Reserved Partition); :* Recovery Partition 625MB (NTFS) I'm reading this info on a freshly correctly installed windows 11 os on my other 256GB nvme... Is there a way of recreating those partitions on my main nVME, and if you could do a video about this problem....

  • @parcanapp1193
    @parcanapp1193 Год назад

    Can you target offline system with this?

  • @rsamuel255
    @rsamuel255 Год назад

    Hi Chris it’s out of the box but u can help me on these.i have clean installation windows 10 on MacBook Pro 8.1 early 2011,2.3ghz,320 hd,it gets hotter when in use and uncomfortable to use ,I know many people who install it has over heating issues how can u help me plus others with this problem

  • @Kris-lg5vo
    @Kris-lg5vo Год назад

    Is this still different than patching through sconfig?

  • @YannMetalhead
    @YannMetalhead Год назад

    Good video.

  • @crisbalgreece
    @crisbalgreece Год назад

    Great video as always Chris.. thank you again..

  • @Static022
    @Static022 Год назад

    my nvidia shadowplay dioesnt work what caused this?

  • @Xander_92
    @Xander_92 Год назад

    Finally my windows now behaves more like Linux. Definitely an improvement.

  • @jojobobbubble5688
    @jojobobbubble5688 Год назад

    Some cool stuff. Kinda baffled that this isn't built into PShell or CMD yet.

  • @pennyrambokumar
    @pennyrambokumar Год назад

    not working on my win 10 laptop.............help ctt

  • @jasoncomman6177
    @jasoncomman6177 Год назад

    Is 22H2 now worth the update?

  • @richievellalar3214
    @richievellalar3214 Год назад

    i dont have the option called Get-widnowsupdate

  • @LeDragoX
    @LeDragoX Год назад +1

    After this i'm thinking to automate security updates only, the rest the user decides...

  • @romuelson
    @romuelson Год назад

    Perfect

  • @davidpoussain1398
    @davidpoussain1398 Год назад

    Bonjour j'ai essayé sur 2 pc windows 10 et ça fonctionne pas dommage merci quand meme

  • @farzadmf
    @farzadmf Год назад +2

    I gess the Webpage is not up yet? (gives 404)

  • @lowcosttech8026
    @lowcosttech8026 Год назад

    nice infos

  • @trinib1
    @trinib1 Год назад

    i need this

  • @AudunWangen
    @AudunWangen Год назад

    I've tried this and it sucks. The module seems very Beta to me. Perhaps if all your servers are on the newest version it will work, but I tried this on 2016 and 2019 and about 80% failed to install for different reasons. Using SCCM and WSUS is definitely a better idea, or just using the GUI. Better yet, switch your servers over to Linux 😜👍

  • @JM-sn5eb
    @JM-sn5eb Год назад

    Install-Module pswindowsupdate
    Untrusted repository
    You are installing the modules from an untrusted repository...
    So is it safe to use it?

    • @nicologuerra4845
      @nicologuerra4845 Год назад

      It's safe, it's Just that the package Is not signed by Microsoft so for them Is untrusted. That's pretty common for community packages

  • @tomthumb5445
    @tomthumb5445 25 дней назад

    For years and years I never seem to have what these clips tell me I should have. None of these commands work in my windows 10. Not one.

  • @Timpette
    @Timpette Год назад +3

    Site is giving 404 :(

  • @nathanmiddleton1478
    @nathanmiddleton1478 Год назад

    I tried this in Wine and it didn't work.

  •  Год назад

    Just finished updating my server with this command

  • @nav3341
    @nav3341 Год назад

    How to do offline windows updates using powershell on multiple windows servers? Like download KBs in one server then install it in multiple windows servers remotely using powershell.

    • @ChrisTitusTech
      @ChrisTitusTech  Год назад

      For that application just use WSUS server to centrally manage. Point all the servers at it, then just publish the updates you want.