About
Careers
Support
Partners
Community
Contact
Product
Overview
IT Discovery
IT Inventory
IT Analytics
Features
Integrations
Use Cases
IT Asset Management
Cybersecurity
Active Directory Audit
Installing Software & Patches
Automated IT Inventory
Pricing
Resources
Support Knowledge Base
Videos
Testimonials
Vulnerability Updates
Patch Tuesday
Blog
Free Download
Lansweeper
»
Installers
»
Cmd - WSUS Offline Update installation
Active Topics
Search
Join Now
Login
Notification
Error
OK
Cmd - WSUS Offline Update installation -
Starts the installation of a WSUS Offline Update package
Posted:
Friday, June 19, 2015 2:34:04 PM(UTC)
Daniel.B
Member
Original Poster
Posts: 1,150
0
Like
This package deploys a WSUS update package built with WSUS Offline Update (http://www.wsusoffline.net/). Please find details in the package description field.
For each OS version you would like to deploy updates to, you need to build an own package and download an own repository with WSUS Offline Update.
Cmd - Start WSUS Offline Update
Download Package
Description
Starts Windows update installation after building an OS specific offline WSUS repository with WSUS Offline Update (http://www.wsusoffline.net/)
- Download WSUS Offline Update from http://download.wsusoffline.net/
- Execute UpdateGenerator.exe
- Configure for which system and software you would like to download latest updates
- Under "USB medium" enable "Copy updates for selected products into directory:" and provide a target directory
- Start the download
- Place the content of the target directory onto your Package share into folder "WSUS update"
- Deploy the package (be attentive to only deploy to computers having the right operating system - use dynamic asset groups as deployment targets)
Attention: for installation, several GB of free HDD space are required on target computers. Change the temp folder directory in step 2 and 4 if required.
Final Action
Shutdown
Shutdown Time
0 sec(s), 0 min(s), 0 hour(s)
Max. Duration
0 min(s), 2 hour(s)
Rescan
Yes
Steps
1. Inform user
Type
Command
Return Codes
0,1641,3010
Success
Go To Next
Failure
Stop (Failure)
Command
Msg.exe * An automatic Windows update will be started in 20 minutes. Please close all your programs and log off from Windows. Do not shut down your computer!
2. Copy repository files to local HDD
Type
Command
Return Codes
0,1641,3010,1,2,3,5,6,7
Success
Go To Next
Failure
Stop (Failure)
Command
robocopy "{PackageShare}\WSUS update" "c:\temp\WSUS update" /mir
3. Wait 20 minutes
Type
Command
Return Codes
0,1641,3010
Success
Go To Next
Failure
Stop (Failure)
Command
timeout 1200 > NUL
4. Start update installation
Type
Command
Return Codes
0,1,1641,3010,3011
Success
Stop (Success)
Failure
Stop (Failure)
Command
cd "c:\temp\WSUS update\cmd\" && DoUpdate.cmd /verify /updatercerts /updatecpp /updatedx /instmssl /updatetsc /instdotnet4
#1
RumbleZilla
Member
Posts: 4
posted:
2/26/2019 9:19:05 PM(UTC)
This worked great. Thank you.
Is there a switch or .ini setting that will perform the "Automatic reboot and recall"?
Example:
https://www.screencast.com/t/XXhXyVY4SDGn
I support several remote locations that require the PC's to be on, updated and ready to go when the users return.
Thanks for your help.
User Profile
View All Posts by User
View helpful posts
#2
Esben.D
Member
Administration
Posts: 1,982
posted:
2/27/2019 2:45:45 PM(UTC)
Maybe there is a parameter you can add to do that?
User Profile
View All Posts by User
View helpful posts
#3
RumbleZilla
Member
Posts: 4
posted:
2/27/2019 8:39:19 PM(UTC)
Originally Posted by: Esben.D
Maybe there is a parameter you can add to do that?
Thank you. That was my thought as well.
I ended up adding the "/autoreboot" switch at the end.
It got me further, but when it reboots into the temp user "WOUTempAdmin" it presents a dialog box that requires someone to click OK.
https://www.screencast.com/t/p75uMfpc55q
I have done that using VNC, but sometimes it shuts all the way off for an unknown reason. I've tried it on three different machines so far and it's acted differently each time. (All Win7, 1 Dell Latitude laptop, 2 Dell Optiplex towers)
cd "c:\temp\WSUS update\cmd\" && DoUpdate.cmd /verify /updatercerts /updatecpp /updatedx /instmssl /updatetsc /instdotnet4 /autoreboot
Is there a switch that will bypass the dialog box?
Thanks again.
User Profile
View All Posts by User
View helpful posts
#4
jadeesh
Member
Posts: 1
posted:
11/12/2020 9:07:11 AM(UTC)
https://download.wsusoffline.net/
The latest Win 10 version 2004 updates are not available in WSUS program (12.03.2020 Version 12.0). the available version in the WSUS program is 1909 that is outdated one.
Anyone has overcome this issue? please share.
jadeesh attached the following image(s):
User Profile
View All Posts by User
View helpful posts
Active Discussions
LsAgent.ini
by
Orion Poplawski
Last post:
Yesterday
at 4:49:12 PM(UTC)
LsAgent for Windows command line options?
by
Orion Poplawski
Last post:
Yesterday
at 4:47:53 PM(UTC)
LSagent force a scan
by
Orion Poplawski
Last post:
Yesterday
at 4:46:49 PM(UTC)
MS Edge Chromium LanSweeper Extension development
by
steveb
Last post:
4/16/2021 10:59:56 PM(UTC)
Office 365 v2 Scanning Error
by
DJX
Last post:
4/16/2021 7:37:57 PM(UTC)
Database size growing too large
by
JTempleton
Last post:
4/16/2021 5:19:22 PM(UTC)
Limit New Ticket Notifications
by
Jeff WP
Last post:
4/16/2021 4:40:43 PM(UTC)
Monitor as an asset
by
tman247
Last post:
4/16/2021 4:04:19 PM(UTC)