‎07-27-2023 03:31 PM - last edited on ‎05-21-2024 04:42 PM by Riley
I'm looking for a script to push Windows updates to workstations in our environment via LS and prompt for a reboot. I'm not looking to do specific packages, but rather simply query MS for what updates are available.
Anyone ever done that? This would be for the "one offs" in our environment.
Solved! Go to Solution.
‎07-31-2023 04:50 PM
Hi,
Depending on how you deploy your patches and the settings for install / restart, you can force Windows to "Check in" and if there are any updates available it will download ,etc if you run the following as a script or command, its the same as clicking "Check For Updates" :
UsoClient startinteractivescan
You can also deploy Toast messages using Windows 10 Toast Notification Script – imab.dk , these will prompt Users to restart if there are patches waiting and can be setup as a scheduled task each week, etc , so only one deployment required ?
‎08-03-2023 04:00 PM
..Thanks....that worked great ASismey.
‎07-28-2023 12:45 PM
Hello there!
The Lansweeper deployment module is able to apply patches to Windows computers in your network. There is no set guide on creating a package that will implement these patches, and we, unfortunately, do not provide support in creating custom packages. However, you can refer to two forum posts with packages that cover patching Windows computers.
Both methods can be used to update Windows computers in your environment. We would also recommend having a look at this Microsoft article, which provide some scripts that can help you create a custom deployment package: https://learn.microsoft.com/en-us/windows/win32/wua_sdk/searching--downloading--and-installing-updat...
Further information on creating deployment packages can be found in our knowledge base at this link: https://community.lansweeper.com/t5/deploying-software-other-changes/tkb-p/kb_deploying-software-and...
‎07-28-2023 01:34 PM
I'm aware of how to create a package for specific patches, but what I'm asking is if anyone has any script that would query Windows update directly, check if there are any available patches, and then install them.
‎07-31-2023 04:50 PM
Hi,
Depending on how you deploy your patches and the settings for install / restart, you can force Windows to "Check in" and if there are any updates available it will download ,etc if you run the following as a script or command, its the same as clicking "Check For Updates" :
UsoClient startinteractivescan
You can also deploy Toast messages using Windows 10 Toast Notification Script – imab.dk , these will prompt Users to restart if there are patches waiting and can be setup as a scheduled task each week, etc , so only one deployment required ?
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now