Notification

Icon
Error

Windows 10 Upgrade - Copies all Windows 10 Package information

Posted: Wednesday, October 23, 2019 11:49:23 PM(UTC)
Sebastiangomez

Sebastiangomez

Member Original PosterPosts: 1
3
Like
Just wanted to share, what I think is a very complex package that would hopefully give people ideas on how to better use lansweeper package deployments. the Windows 10 files used were Windowsupdatebox.exe and an ESD file.

ESD File can be downloaded by doing a google search or if you use WSUS you can right click the applicable update for your network, view file information and get the download URL from there.
Windows 10 Upgrade to 1903 - No RebootDownload Package
Description
Final ActionNothing
Max. Duration0 min(s), 2 hour(s)
RescanYes
Steps
1. Is Windows Version 1903?
TypeCondition
SuccessGo To Step 13
FailureGo To Next
Conditions
Registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion ReleaseId Has Value 1903
2. Is Reboot Pending?
TypeCondition
SuccessStop (Success)
FailureGo To Next
Conditions
Registry HKEY_LOCAL_MACHINE\SOFTWARE\COMPANY\Lansweeper Deployment PendingWindows1903Reboot Exists
3. Remove Installer
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureGo To Next
Command rmdir "C:\LSDeployment\Windows10-1903-x64" /S /Q
4. Create folder
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command mkdir "C:\LSDeployment\Windows10-1903-x64"
5. Copy Folder and Files
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command xcopy /s "{packageshare}\installers\Windows10-1903-x64" "C:\LSDeployment\Windows10-1903-x64"
6. Run Installer 1/3
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command start /w C:\LSDeployment\Windows10-1903-x64\WindowsUpdateBox /Update /PreDownload /quiet /noreboot
7. Run installer 2/3
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command start /w C:\LSDeployment\Windows10-1903-x64\WindowsUpdateBox /Update /Install /quiet /noreboot
8. Run Installer 3/3
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureStop (Failure)
Command start /w C:\LSDeployment\Windows10-1903-x64\WindowsUpdateBox /Update /Finalize /quiet /noreboot
9. Remove Network Adapter Registry Key
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureGo To Next
Command reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions\DenyDeviceClasses" /v 1 /f
10. Purge Kerberos Tickets
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureGo To Next
Command klist -lh 0 -li 0x3e7 purge
11. Enable McAfee bypass - 5 reboots
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureGo To Next
Command C:\appsensevirtual\EpeTemporaryAutoboot.exe --number-of-reboots 5
12. Add PendingReboot Flag
TypeCommand
Return Codes 0,1641,3010
SuccessStop (Success)
FailureStop (Failure)
Command reg add "HKLM\software\COMPANY\Lansweeper Deployment" /v PendingWindows1903Reboot /d PendingWin10Reboot
13. Remove Pending Reboot Flag
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureGo To Next
Command reg delete "HKLM\software\COMPANY\Lansweeper Deployment" /v PendingWindows1903Reboot /f
14. Remove Installer
TypeCommand
Return Codes 0,1641,3010
SuccessGo To Next
FailureGo To Next
Command rmdir "C:\LSDeployment\Windows10-1903-x64" /S /Q
jkm9694
#1jkm9694 Member Posts: 3  
posted: 11/19/2019 10:37:48 AM(UTC)
Hello, This tool looks exactly what I am looking for. I have got myself an ESD file, but where do I find a copy of Windowsupdatebox.exe???

Thanks
Joe
Esben.D
#2Esben.D Member Administration Posts: 1,956  
posted: 11/22/2019 12:05:24 PM(UTC)
Originally Posted by: jkm9694 Go to Quoted Post
Hello, This tool looks exactly what I am looking for. I have got myself an ESD file, but where do I find a copy of Windowsupdatebox.exe???

Thanks
Joe


Can't this be found in "C:\WINDOWS\SoftwareDistribution\Download\" and then a UID folder name?
At least that's what I was able to find online Angel
SFI
#3SFI Member Posts: 1  
posted: 11/29/2019 9:38:47 AM(UTC)
Hello,

Many thanks for your post.

I found both files in WSUS, with a right click on the upgrade package, selecting "file Information"
I also tried to install it on a computer and found the same files in C:\WINDOWS\SoftwareDistribution\Download\SomeUID"

I removed step 11 as it is related to your anti-virus and replaced ESD with 1909 (also replaced all 1903 in your script)
also modified last step to stop success and failure.

Works well !
CyberCitizen
#4CyberCitizen Member Posts: 266  
posted: 12/2/2019 12:18:25 AM(UTC)
Very different to the way we are doing things.

Disable Sleep on Battery
cmd.exe /c powercfg -x -standby-timeout-dc 0

Disable Sleep on Mains Power
cmd.exe /c powercfg -x -standby-timeout-ac 0

Install Win 10 without Rebooting the machine (eg allows the user to reboot at night).
"{PackageShare}\Microsoft\Windows 10 v1903\setup.exe" /auto upgrade /quiet /noreboot /Compat IgnoreWarning

And we have one more package without the no reboot option when we want to force it to reboot once completed.

Can you please advise the improvements in completing this task via your means?
CyberCitizen
#5CyberCitizen Member Posts: 266  
posted: 12/2/2019 12:20:57 AM(UTC)
I have the following report and we are just doing a stagged roll out to staff as we are mostly laptops in remote sites via 4G connections.

Code:
Select Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tblAssets.Version,
  tblAssets.Domain,
  tblAssetCustom.Location,
  tsysIPLocations.IPLocation,
  tblAssets.IPAddress,
  tsysAssetTypes.AssetTypename As Type,
  tblAssetCustom.Manufacturer,
  tblAssetCustom.Model,
  tblAssets.Lastseen,
  tsysAssetTypes.AssetTypeIcon10 As icon,
  Case
    When tblAssets.Version Like '1903%' Then '#d4f4be'
    Else '#ffadad'
  End As backgroundcolor
From tblAssets
  Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
    tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
  Inner Join tsysAssetTypes On tblAssets.Assettype = tsysAssetTypes.AssetType
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Left Outer Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where tblAssets.IPAddress Is Not Null And tblAssets.IPAddress != '' And
  tsysAssetTypes.AssetTypename = 'Windows' And tblAssetCustom.State = 1
Order By tblAssets.Version,
  tblAssets.IPNumeric

Active Discussions

Lansweeper iManage Client deployment
by  CyberCitizen   Go to last post Go to first unread
Last post: Today at 3:09:47 AM(UTC)
Lansweeper Missing hyperv host details for guest asset LAN-4130
by  danielm  
Go to last post Go to first unread
Last post: 12/7/2019 7:15:56 AM(UTC)
Lansweeper Lansweeper showing MAC address instead of name
by  crashff   Go to last post Go to first unread
Last post: 12/6/2019 10:26:25 PM(UTC)
Lansweeper Dell Warranty Lookup - Incorrect Information
by  Trenton Knew  
Go to last post Go to first unread
Last post: 12/6/2019 10:17:15 PM(UTC)
Lansweeper Incoming Email Parse
by  UEFT   Go to last post Go to first unread
Last post: 12/6/2019 5:46:22 PM(UTC)
Lansweeper SSH - Keyboard Interactive Authentication
by  KevinA-REJIS  
Go to last post Go to first unread
Last post: 12/6/2019 5:22:21 PM(UTC)
Lansweeper Custom OID Scanning / multible OIDs with wildcards
by  Esben.D  
Go to last post Go to first unread
Last post: 12/6/2019 11:57:18 AM(UTC)