Winget Command

winget.exe upgrade –all –silent –accept-package-agreements –accept-source-agreements –Force

 

To Schedule:

Create a Batch File:

@echo off

winget upgrade –all –silent –accept-package-agreements –accept-source-agreements –force

 

 

1.            Press Win + R, type , and hit Enter.

2.            In the left pane, click Task Scheduler Library.

 

3. Create a New Task

1.            Click Action → Create Task.

2.            Give it a name like Winget Auto Upgrade.

3.            Check Run with highest privileges (important for admin installs).

4.            Under Configure for, select your Windows version.

 

4. Set a Trigger

1.            Go to the Triggers tab → New.

2.            Choose when you want it to run:

•              Daily at 3 AM (common for maintenance).

•              Or Weekly on Sundays.

3.            Click OK.

 

5. Set the Action

1.            Go to the Actions tab → New.

2.            Action: Start a program.

3.            Program/script:  (or wherever you saved it).

4.            Click OK.

 

6. Finalize

•              Go to Conditions and uncheck Start only if computer is idle (optional).

•              Go to Settings and check Run task as soon as possible after a scheduled start is missed.

•              Click OK to save.

 

 

Comments are closed

Latest Comments

No comments to show.