Notification

Icon
Error

Update Windows with PSWindowsUpdate - Remotely update Windows (10, Server)

Posted: Friday, January 17, 2020 5:32:57 PM(UTC)
Patrick Kuhl

Patrick Kuhl

Member Original PosterPosts: 1
1
Like
I made a Powershell script that can be launched from Lansweeper with the installer here that will update a Windows 10 (tested) or Windows Server (tested on 2016) machine remotely. It utilizes PSWindowsUpdate in Powershell (more details here: http://woshub.com/pswindowsupdate-module/) to pull updates from Microsoft. I find it useful for servers, as we have automatic updates turned off for them in our environment. You may need to run it once manually from the computer in Powershell as admin (eg. from Remote Desktop or physically at the server). After that though, it should work from Lansweeper. I can't guarantee it will work for you, but this should get you started in the right direction if you're looking to do this sort of thing.
Handles attachments
LS-UpdateWindowsRemotely.zip (1kb) downloaded 169 time(s).
Windows Server Remote UpdateDownload Package
DescriptionRun the Remote Windows Update Powershell script
Final ActionNothing
Max. Duration0 min(s), 4 hour(s)
RescanYes
Steps
1. Run Update Script
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command powershell.exe -executionpolicy bypass -file " {PackageShare}\Scripts\LS-UpdateWindowsRemotely.ps1"

Active Discussions

Lansweeper Find machines missing any 1 of several apps
by  BennettL   Go to last post Go to first unread
Last post: Yesterday at 8:35:28 PM(UTC)
Lansweeper Max Software Version and Deploy to Only Outdated
by  GenDev   Go to last post Go to first unread
Last post: Yesterday at 1:06:50 PM(UTC)
Lansweeper Patch Tuesday - Superseded MS Updates
by  doone128  
Go to last post Go to first unread
Last post: Yesterday at 11:27:10 AM(UTC)
Lansweeper Report on basic Router information
by  Liljack  
Go to last post Go to first unread
Last post: 3/30/2020 7:44:22 AM(UTC)
Lansweeper Windows: Static IP address configured (Built-in)
by  RobinPSU   Go to last post Go to first unread
Last post: 3/27/2020 8:52:12 PM(UTC)
Lansweeper Adding top user to asset report
by  Argon0  
Go to last post Go to first unread
Last post: 3/26/2020 5:20:51 PM(UTC)