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
6
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,982  
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: 365  
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: 365  
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
Steven-REXtac
#6Steven-REXtac Member Posts: 1  
posted: 1/8/2020 7:26:53 PM(UTC)
Okay I tried to do this Package but I had alot of trouble with it. Is there any possible way someone could write up a step by step on this? I mean it creates a folder in this script but doesnt say what files are in those Folders. Also where I can find the ESD File and the upgrade Executable? Like maybe send a direct link because I did a Google Search and had no luck, And Can someone Explain why this package has the Installer run 3 Times? Thanks in Advance Angel
CyberCitizen
#7CyberCitizen Member Posts: 365  
posted: 1/9/2020 7:00:27 AM(UTC)
Originally Posted by: Steven-REXtac Go to Quoted Post
Okay I tried to do this Package but I had alot of trouble with it. Is there any possible way someone could write up a step by step on this? I mean it creates a folder in this script but doesnt say what files are in those Folders. Also where I can find the ESD File and the upgrade Executable? Like maybe send a direct link because I did a Google Search and had no luck, And Can someone Explain why this package has the Installer run 3 Times? Thanks in Advance Angel


Hi Steven,

Looking at the upgrade package, from what I can see is it's running it once to download the files etc. Once to install and not sure on the last step.

It looks over complicated for what I need it for which is to just update a machine to Windows 10.

In my case I just grab the Windows 10 Media Creation Tool. Download the ISO and extract the contents to a folder then call the setup.exe with the below.

Originally Posted by: CyberCitizen Go to Quoted Post
Disable Sleep on Battery so it doesn't go to sleep while deploying
cmd.exe /c powercfg -x -standby-timeout-dc 0

Disable Sleep on Mains Power so it doesn't go to sleep while deploying
cmd.exe /c powercfg -x -standby-timeout-ac 0

Install Win 10 without Rebooting the machine (eg allows the user to reboot at night, if you want the machine to reboot remove the /noreboot switch).
"{PackageShare}\Microsoft\Windows 10 v1903\setup.exe" /auto upgrade /quiet /noreboot /Compat IgnoreWarning
RCCOLA37
#8RCCOLA37 Member Posts: 1  
posted: 1/15/2020 4:32:00 PM(UTC)
Can I modify this script somehow to get it to update to 1909?
CyberCitizen
#9CyberCitizen Member Posts: 365  
posted: 1/16/2020 12:50:00 AM(UTC)
Originally Posted by: RCCOLA37 Go to Quoted Post
Can I modify this script somehow to get it to update to 1909?


Download the latest Windows 10 Media Creation tool, that will allow you to download the 1909 files.
Anita
#10Anita Member Posts: 1  
posted: 1/16/2020 5:11:46 PM(UTC)
Thank you for this package. Just a basic question:

Will this deployment package work after having WindowsUpdate.exe or I have to modify something else on it. In addition, how does it bypass McAfee Encryption as per it is on the package? I would like to know a bit more as I don't see any installation in the Task manager too. Shall I simply wait 2 hours after pushing from portal.
mzipperer
#11mzipperer Member Posts: 16  
posted: 3/19/2020 5:14:18 PM(UTC)
what about bit locker?
Michael Kop
#12Michael Kop Member Posts: 2  
posted: 3/27/2020 4:47:52 PM(UTC)
I have done it like you said to do a WIndows UPgrade.
I changed the version to 1909.

Everything goes well, and he gives me a Stop (Succes) on step 12.

The flag is in the Registry on reboot Pendig, but then nothing happens.
I restarted the PC twice, butt still nothing happens.

What do i have to do next?
Alex Beaumier
#13Alex Beaumier Member Posts: 1  
posted: 7/7/2020 8:03:26 PM(UTC)
Originally Posted by: CyberCitizen Go to Quoted Post
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?


Hello, I have tried this method to upgrade from 1903 to 2004, but it didn't work. Did anyone try to upgrade to 2004 yet?
CyberCitizen
#14CyberCitizen Member Posts: 365  
posted: 7/8/2020 1:07:47 AM(UTC)
Originally Posted by: Alex Beaumier Go to Quoted Post
Hello, I have tried this method to upgrade from 1903 to 2004, but it didn't work. Did anyone try to upgrade to 2004 yet?


Sorry, haven't tested it yet as we are not deploying 2004 until its a little more tested.

Active Discussions

Installer Windows 10 Upgrade
by  CyberCitizen   Go to last post Go to first unread
Last post: Today at 1:07:47 AM(UTC)
Lansweeper Only 1 Basic Action not working?
by  DotWAD  
Go to last post Go to first unread
Last post: Yesterday at 6:17:05 PM(UTC)
Lansweeper Mapped Drives Incorrect
by  cycleheat   Go to last post Go to first unread
Last post: Yesterday at 5:21:32 PM(UTC)
Lansweeper Help on creating report list from security groups
by  sc00bs  
Go to last post Go to first unread
Last post: Yesterday at 4:52:39 PM(UTC)
Lansweeper Will someone at Lansweeper please take my money?
by  sbAYVdQu   Go to last post Go to first unread
Last post: Yesterday at 3:31:33 PM(UTC)
Lansweeper Monitor open process
by  Renato  
Go to last post Go to first unread
Last post: Yesterday at 3:10:48 PM(UTC)
Lansweeper Duplicate assets (Servers)
by  kjstech   Go to last post Go to first unread
Last post: Yesterday at 2:34:14 PM(UTC)
Lansweeper All USB devices connected
by  earmor  
Go to last post Go to first unread
Last post: Yesterday at 1:35:37 PM(UTC)