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
2
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 503 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 Lansweeper custom report
by  Hendrik.VE  
Go to last post Go to first unread
Last post: Today at 10:52:03 AM(UTC)
Lansweeper Total License Utilization
by  Hendrik.VE   Go to last post Go to first unread
Last post: Today at 10:31:05 AM(UTC)
Lansweeper Office 365 Scanning-enabled accts not linked\accessible?
by  Mark F  
Go to last post Go to first unread
Last post: Today at 2:55:09 AM(UTC)
Lansweeper Helpdesk navigation
by  jra0500   Go to last post Go to first unread
Last post: Yesterday at 3:21:55 PM(UTC)
Lansweeper Asset Radar and external/remote IPs
by  gadgetrants  
Go to last post Go to first unread
Last post: Yesterday at 5:25:05 AM(UTC)
Lansweeper Recording history of IP address for device
by  Steven R   Go to last post Go to first unread
Last post: Yesterday at 1:58:33 AM(UTC)
Lansweeper LSAgent Wrong Domains for Users
by  Notonyourradar  
Go to last post Go to first unread
Last post: 4/12/2021 10:13:32 PM(UTC)