Windows Updates through PowerShell

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

КОМЕНТАРІ • 194

  • @surfingsub5854
    @surfingsub5854 Рік тому +54

    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.

  • @DarkPsychoMind
    @DarkPsychoMind Рік тому +1

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

  • @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)

  • @4ngeldus739
    @4ngeldus739 Рік тому

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

  • @1Chitus
    @1Chitus Рік тому

    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!

  • @prowler1567
    @prowler1567 Рік тому

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

  • @timburton4488
    @timburton4488 Рік тому

    thank you so much for your work and help.

  • @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.

  • @tonigon5767
    @tonigon5767 Рік тому

    The link works now, thank you.

  • @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!

  • @user-bc5vv1ug2g
    @user-bc5vv1ug2g Рік тому

    this is very nice to know/learn about.

  • @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"

  • @Atticman1369
    @Atticman1369 Рік тому

    Awesome videos!

  • @RobsonLuizRL
    @RobsonLuizRL Рік тому

    Very nice!!

  • @ThePowerRanger
    @ThePowerRanger Рік тому +1

    Never heard of this. Pretty cool.

  • @Swinhart
    @Swinhart Рік тому

    Outstanding video

  • @Atticman1369
    @Atticman1369 Рік тому +13

    Thanks for all your videos! Thank God a sane person on UA-cam 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 Рік тому

      Great stuff! Keep it going with Linux!

  • @DNG1337
    @DNG1337 Рік тому

    We love CTT

  • @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.

  • @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!

  • @phoenixyt124
    @phoenixyt124 Рік тому

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

  • @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?

  • @irelia_master4487
    @irelia_master4487 Рік тому

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

  • @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?

  • @crian117
    @crian117 Рік тому +1

    More powershell stuff plz!

  • @ScorpionCar
    @ScorpionCar Рік тому +2

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

  • @crisbalgreece
    @crisbalgreece Рік тому

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

  • @nishantshokeen4279
    @nishantshokeen4279 Рік тому

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

  • @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.

  • @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 ?

  • @YannMetalhead
    @YannMetalhead Рік тому

    Good video.

  • @SaarKoren
    @SaarKoren Рік тому +1

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

  • @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.

  • @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.

  • @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!

  • @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?

  • @Graham6410
    @Graham6410 Рік тому

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

  • @IcyyX_
    @IcyyX_ Рік тому

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

  • @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.

  • @romuelson
    @romuelson Рік тому

    Perfect

  • @lowcosttech8026
    @lowcosttech8026 Рік тому

    nice infos

  • @vPeteWalker
    @vPeteWalker Рік тому +3

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

  • @bandoneon_ar
    @bandoneon_ar Рік тому +3

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

  • @yigajonathan4744
    @yigajonathan4744 Рік тому

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

  • @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!

  • @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.

  • @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

  • @Vaiyn
    @Vaiyn Рік тому +10

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

  • @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.

  • @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....

  • @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.)

  • @tim_biller
    @tim_biller Рік тому +8

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

  • @ShiziKroc
    @ShiziKroc Рік тому

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

  • @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

  • @trinib1
    @trinib1 Рік тому

    i need this

  • @MRSMITHENTOP
    @MRSMITHENTOP 2 місяці тому

    what camera is that ! its freaking epic!!!

  • @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.

  • @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.

  • @sandikedua4223
    @sandikedua4223 Рік тому +1

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

  • @AshLordCurry
    @AshLordCurry Рік тому

    Thank you for being a god

  • @intelhdtest3796
    @intelhdtest3796 8 місяців тому

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

  • @orangeheartguy
    @orangeheartguy Рік тому +15

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

    • @KimDahl77
      @KimDahl77 Рік тому +10

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

    • @CarterPersall
      @CarterPersall Рік тому +8

      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 Рік тому

      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....

  • @Kris-lg5vo
    @Kris-lg5vo Рік тому

    Is this still different than patching through sconfig?

  • @jesuspiceno620
    @jesuspiceno620 Рік тому

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

  • @jasoncomman6177
    @jasoncomman6177 Рік тому

    Is 22H2 now worth the update?

  • @DNG1337
    @DNG1337 Рік тому +2

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

  • @parcanapp1193
    @parcanapp1193 Рік тому

    Can you target offline system with this?

  • @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.

  • @mrmuffin5046
    @mrmuffin5046 11 місяців тому

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

  •  Рік тому

    Just finished updating my server with this command

  • @josh-rx6ly
    @josh-rx6ly Рік тому

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

  • @budliquor6972
    @budliquor6972 Рік тому +1

    2:13 The third update is 128GB?

  • @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 👍😁

  • @ErickHernandezOficial
    @ErickHernandezOficial Рік тому

    Is it faster this way?

  • @user-ju7mw8nu1r
    @user-ju7mw8nu1r 11 місяців тому

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

  • @Static022
    @Static022 Рік тому

    my nvidia shadowplay dioesnt work what caused this?

  • @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.

  • @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

  • @neo778
    @neo778 11 місяців тому

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

  • @XQOHARX099
    @XQOHARX099 Рік тому

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

  • @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

  • @DaveSomething
    @DaveSomething Рік тому +2

    that's a very nice 404 page you have there

  • @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.

  • @davidpoussain1398
    @davidpoussain1398 Рік тому

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

  • @jojobobbubble5688
    @jojobobbubble5688 Рік тому

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

  • @Xander_92
    @Xander_92 Рік тому

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

  • @a64dx86
    @a64dx86 Рік тому

    great; hope this works NEXT Time; in a year... or two..

  • @KawagyChi401
    @KawagyChi401 6 місяців тому

    How to pick updates tho you didnt show us??

  • @neohydros
    @neohydros Рік тому +4

    Why doesn't the link to your website work?

  • @dastiffmeister1
    @dastiffmeister1 Рік тому +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"

    • @dastiffmeister1
      @dastiffmeister1 Рік тому

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

  • @richievellalar3214
    @richievellalar3214 Рік тому

    i dont have the option called Get-widnowsupdate

  • @praneeth210
    @praneeth210 Рік тому

    😲 wow

  • @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.

  • @LangeloScuro
    @LangeloScuro Рік тому

    Yup I knew that ... because you told us. LOL

  • @Pimp4King
    @Pimp4King Рік тому

    am I the only one that things Chris looks like Jerry from Rick and Morty? 🤣

  • @GameBacardi
    @GameBacardi Рік тому

    Have anyone else noticed on NotePad++ (Windows) it lag very often on "Auto-Completion" and makes HDD noisy sometimes ?
    I won't use on SSD, don't know will it destroy it.

    • @InformaticFreakTutorials
      @InformaticFreakTutorials Рік тому +1

      Why should the SSD break? But no, for me it runs on the SSD and also with files on the HDD is also nothing odd.

    • @GameBacardi
      @GameBacardi Рік тому

      @@InformaticFreakTutorials SSD's have normally shorter lifetime, and it will be dead quicker when it have unnessacary activity all the time. (Like crypto shit)

  • @AndrewPayne
    @AndrewPayne Рік тому +4

    website link is broken? Error 404 Not Found

  • @JettoDz
    @JettoDz Рік тому

    At this point, I'm just gonna wait until Wnix is born.

  • @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

  • @pennyrambokumar
    @pennyrambokumar Рік тому

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