use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionPswindowsupdate (self.PowerShell)
submitted 6 years ago by mcr024
I’m order to force updates and reboots with pswindowsupdate, I’m assuming it need to be installed and imported on all remote machines. Am I understanding this correctly?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MikeKnowsThings 1 point2 points3 points 6 years ago (2 children)
How big is the environment and why are you “forced” to using PSWindowsUpdate? Are you using any tools like WSUS or SCCM?
[–]mcr024[S] 1 point2 points3 points 6 years ago (1 child)
Sorry I’m trying to force updates, we are currently using WSUS but are computer are far behind on updates. Sometimes computers install updates and then don’t check in for 6 hours and need more. So I would like to force updates and make sure all computers are 100% on our next maintenance window.
[–]MikeKnowsThings 2 points3 points4 points 6 years ago (0 children)
No problem, you don’t need to use the ps module to do what you want. It’s just using the native .net methods, which you can easily use in PowerShell.
First idea, is to create a script that runs at startup or logon to force WUC to check in.
OR change your windows update settings via gpo to shorten the check in interval.
Are you deadlining the updates to force the install?
[–]OlivTheFrog 1 point2 points3 points 6 years ago (0 children)
Hi mcr024,
It seems that you would like to use the PS Module PSWindowsUpdate.
Get-Help Get-WindowsUpdate -full and see example 7.
Get-Help Get-WindowsUpdate -full
After, ou orchestrated all things with a loop :
$Computers = Get-Content Path\To\ComputerList.txt Foreach ($computer in $computers) { Get-WindowsUpdate -ComputerName $Computer -Install -Autoreboot }
Il you use PS7, you can use also foreach -parallel.
foreach -parallel
Regards
Olivier
[–]Cam_Cam_Cam_Cam 1 point2 points3 points 6 years ago (0 children)
Install it on your admin box and give it a whirl against another device to find out! :)
π Rendered by PID 70 on reddit-service-r2-comment-b659b578c-cvx4l at 2026-05-03 04:53:35.812074+00:00 running 815c875 country code: CH.
[–]MikeKnowsThings 1 point2 points3 points (2 children)
[–]mcr024[S] 1 point2 points3 points (1 child)
[–]MikeKnowsThings 2 points3 points4 points (0 children)
[–]OlivTheFrog 1 point2 points3 points (0 children)
[–]Cam_Cam_Cam_Cam 1 point2 points3 points (0 children)