Created
November 17, 2022 15:04
-
-
Save stowen-msft/e98b38faf4e1eb88bb670b6e3e7c6b5e to your computer and use it in GitHub Desktop.
ScheduledTaskToInstallUpdates.ps1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| schtasks /create /sc minute /mo 30 /tn "Scan For Updates2" /tr "wuauclt /detectnow /updatenow && control update" | |
| Get-ScheduledTask "Scan For Updates2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment