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 264 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 Remote desktop custom port
by  sefaucher   Go to last post Go to first unread
Last post: Today at 10:30:49 PM(UTC)
Lansweeper Unable to transfer user's data prior to removal
by  RickW99456  
Go to last post Go to first unread
Last post: Today at 9:06:14 PM(UTC)
Lansweeper Closing and re-opening of tickets
by  NWHiker  
Go to last post Go to first unread
Last post: Today at 3:42:56 PM(UTC)
Lansweeper Wake on Lan Issues
by  woldummy   Go to last post Go to first unread
Last post: Today at 3:42:07 PM(UTC)
Lansweeper Deploy and start Software
by  EDV_OHZ  
Go to last post Go to first unread
Last post: Today at 12:49:08 PM(UTC)
Lansweeper Helpdek Call Re-Opened
by  mouaad   Go to last post Go to first unread
Last post: Today at 7:30:59 AM(UTC)
Lansweeper macOS lsAgent 100% CPU Usage
by  McDeth187  
Go to last post Go to first unread
Last post: Today at 2:30:33 AM(UTC)