CU, SS, Flash, Net 4.7. Code: ============================================================ Running W10UI v4.6 ============================================================ ============================================================ Extracting .cab files from .msu files ============================================================ 1/5: Windows10-KB4033393-x86.msu 2/5: Windows10-KB4054855-x86.msu 3/5: Windows10.0-KB4132216-x86.msu 4/5: Windows10.0-KB4284833-x86.msu 5/5: windows10.0-kb4287903-x86_11d63408b35c211c432176fad6953aaba968f2ff.msu ============================================================ Extracting files from update cabinets (.cab) *** This will require some disk space, please be patient *** ============================================================ 1/5: Windows10.0-KB4033393-x86.cab 2/5: Windows10.0-KB4054855-x86.cab 3/5: Windows10.0-KB4132216-x86.cab 4/5: Windows10.0-KB4284833-x86.cab 5/5: Windows10.0-KB4287903-x86.cab ============================================================ Mounting install.wim - index 1/1 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 Processing 1 of 3 - Adding package Package_for_KB4033393~31bf3856ad364e35~x86~~10.0.1.1549 [==========================100.0%==========================] Processing 2 of 3 - Adding package Package_for_KB4054855~31bf3856ad364e35~x86~~10.0.1.1554 [==========================100.0%==========================] Processing 3 of 3 - Adding package Package_for_KB4287903~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~14393.2339.1.8 [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting OS image base ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Updating winre.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image File : F:\winre.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.14393.0 Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Adding updated winre.wim ============================================================ 1 file(s) copied. ============================================================ Unmounting install.wim - index 1/1 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image File : D:\1\sources\install.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding install.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image File : D:\1\sources\boot.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Image File : D:\1\sources\boot.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding boot.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.14393.0 Exporting image [==========================100.0%==========================] Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Removing temporary extracted files... ============================================================ ============================================================ Creating updated ISO file... ============================================================ OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (1000 files in 105 directories) Scanning source tree complete (1070 files in 111 directories) Computing directory information complete Image file is 3409510400 bytes (before optimization) Writing 1070 files in 111 directories to Win10_14393.0_x86_2018-06-24.iso 100% complete Storage optimization saved 45 files, 14727168 bytes (1% of image) After optimization, image file is 3397271552 bytes Space saved because of embedding, sparseness or optimization = 14727168 Done. ============================================================ Finished ============================================================ Press any key to exit.
Your logs show that the CU is not installed in boot.wim, as @abbodi1406 posted, if the boot.wim is not correctly updated, it's probably the cause of the incorrect iso filename. Here are my test results: As W10UI_47 is the most current script, i did test using that script: Code: ============================================================ 1. Target (x86) : "f:\W10UI_4.X\2016_LTSB\Work_x86_enUS_Pro" 2. Updates: "f:\W10UI_4.X\2016_LTSB\Updates_x86_Test" 3. DISM: "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\AMD64\DISM\dism.exe" 4. Enable .NET 3.5: NO 5. Cleanup System Image: YES 6. Reset Image Base: YES 7. Update WinRE.wim: YES ============================================================ 0. Start the process ============================================================ Change a menu option, press 0 to start, or 9 to exit: Code: ============================================================ Running W10UI v4.7 ============================================================ ============================================================ Extracting files from update cabinets (.cab) *** This will require some disk space, please be patient *** ============================================================ 1/5: Windows10.0-KB4033393-x86.cab 2/5: Windows10.0-KB4054855-x86.cab 3/5: Windows10.0-KB4132216-x86.cab 4/5: Windows10.0-KB4284833-x86.cab 5/5: Windows10.0-KB4287903-x86.cab ============================================================ Mounting install.wim - index 1/1 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 Processing 1 of 3 - Adding package Package_for_KB4033393~31bf3856ad364e35~x86~~10.0.1.1549 [==========================100.0%==========================] Processing 2 of 3 - Adding package Package_for_KB4054855~31bf3856ad364e35~x86~~10.0.1.1554 [==========================100.0%==========================] Processing 3 of 3 - Adding package Package_for_KB4287903~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~14393.2339.1.8 [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting OS image base ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 [==========================100.0%==========================] The operation completed successfully. ============================================================ Updating winre.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : F:\W10UI_4.X\2016_LTSB\winre.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Adding updated winre.wim ============================================================ 1 file(s) copied. ============================================================ Unmounting install.wim - index 1/1 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : f:\W10UI_4.X\2016_LTSB\Work_x86_enUS_Pro\sources\install.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding install.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : f:\W10UI_4.X\2016_LTSB\Work_x86_enUS_Pro\sources\boot.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : f:\W10UI_4.X\2016_LTSB\Work_x86_enUS_Pro\sources\boot.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding boot.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Exporting image [==========================100.0%==========================] Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Removing temporary extracted files... ============================================================ ============================================================ Creating updated ISO file... ============================================================ OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 13 directories) Scanning source tree complete (984 files in 96 directories) Computing directory information complete Image file is 3349807104 bytes (before optimization) Writing 984 files in 96 directories to Win10_14393.0_x86_2018-06-24.iso 100% complete Storage optimization saved 31 files, 14583808 bytes (1% of image) After optimization, image file is 3337492480 bytes Space saved because of embedding, sparseness or optimization = 14583808 Done. ============================================================ Finished ============================================================ Press any key to exit. Code: Writing 984 files in 96 directories to Win10_14393.0_x86_2018-06-24.iso On this test it didn't integrate the CU too in both boot.wim files too. Addition: For @abbodi1406 It doesn't integrate the CU in boot.wim and winre.wim, it also doesn't reset the image base on boot.wim and winre.wim Same goes for W10UI_46
Acknowledged in order to block Pro/Home (and soon Enterprise/Education) on non-CloverTrail devices, they moved applicability info from update.mum to Package_for_RollupFix_GM .mum unfortunately, that mum file is buried inside inner cab files will try to find workaround
You fixed it On 2016 LTSB it now installs the CU in all wims Code: ============================================================ 1. Target (x86) : "f:\W10UI_4.X\2016_LTSB\US_Work_x86_2016_LTSB" 2. Updates: "f:\W10UI_4.X\2016_LTSB\Updates_x86_Test" 3. DISM: "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\AMD64\DISM\dism.exe" 4. Enable .NET 3.5: NO 5. Cleanup System Image: YES 6. Reset Image Base: YES 7. Update WinRE.wim: YES ============================================================ 0. Start the process ============================================================ Change a menu option, press 0 to start, or 9 to exit: Code: ============================================================ Running W10UI v4.8 ============================================================ ============================================================ Extracting files from update cabinets (.cab) *** This will require some disk space, please be patient *** ============================================================ 1/5: Windows10.0-KB4033393-x86.cab 2/5: Windows10.0-KB4054855-x86.cab 3/5: Windows10.0-KB4132216-x86.cab 4/5: Windows10.0-KB4284833-x86.cab 5/5: Windows10.0-KB4287903-x86.cab ============================================================ Mounting install.wim - index 1/1 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 Processing 1 of 3 - Adding package Package_for_KB4033393~31bf3856ad364e35~x86~~10.0.1.1549 [==========================100.0%==========================] Processing 2 of 3 - Adding package Package_for_KB4054855~31bf3856ad364e35~x86~~10.0.1.1554 [==========================100.0%==========================] Processing 3 of 3 - Adding package Package_for_KB4287903~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~14393.2339.1.8 [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting OS image base ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 [==========================100.0%==========================] The operation completed successfully. ============================================================ Updating winre.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~14393.2339.1.8 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : F:\W10UI_4.X\2016_LTSB\winre.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17134.1 Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Adding updated winre.wim ============================================================ 1 file(s) copied. ============================================================ Unmounting install.wim - index 1/1 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : f:\W10UI_4.X\2016_LTSB\US_Work_x86_2016_LTSB\sources\install.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding install.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~14393.2339.1.8 [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 [==========================100.0%==========================] The operation completed successfully. ============================================================ Unmounting boot.wim - index 1/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : f:\W10UI_4.X\2016_LTSB\US_Work_x86_2016_LTSB\sources\boot.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Mounting boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Mounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Checking Updates... ============================================================ ============================================================ Installing servicing stack update... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.0 Processing 1 of 1 - Adding package Package_for_KB4132216~31bf3856ad364e35~x86~~10.0.1.0 [==========================100.0%==========================] The operation completed successfully. ============================================================ Installing updates... ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~x86~~14393.2339.1.8 [==========================100.0%==========================] The operation completed successfully. ============================================================ Resetting WinPE image base ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image Version: 10.0.14393.2272 [===========================99.5%========================= ] The operation completed successfully. ============================================================ Unmounting boot.wim - index 2/2 ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Image File : f:\W10UI_4.X\2016_LTSB\US_Work_x86_2016_LTSB\sources\boot.wim Image Index : 2 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Rebuilding boot.wim ============================================================ Deployment Image Servicing and Management tool Version: 10.0.17134.1 Exporting image [==========================100.0%==========================] Exporting image [==========================100.0%==========================] The operation completed successfully. ============================================================ Removing temporary extracted files... ============================================================ ============================================================ Creating updated ISO file... ============================================================ OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility Copyright (C) Microsoft, 1993-2012. All rights reserved. Licensed only for producing Microsoft authorized content. Scanning source tree (500 files in 13 directories) Scanning source tree complete (984 files in 96 directories) Computing directory information complete Image file is 2683305984 bytes (before optimization) Writing 984 files in 96 directories to Win10_14393.2339_x86_2018-06-26.iso 100% complete Storage optimization saved 31 files, 14583808 bytes (1% of image) After optimization, image file is 2670987264 bytes Space saved because of embedding, sparseness or optimization = 14583808 Done. ============================================================ Finished ============================================================ Press any key to exit. ISO filename also fixed now Code: Writing 984 files in 96 directories to Win10_14393.2339_x86_2018-06-26.iso
@abbodi1406 Great work! Your script W10UI v4.8 works fine! Thank you very much for your work! Keep it up! You're a good man!
@abbodi1406 , you used to have a separate script to clear KMS cache (in your kmsvlall releases). You've since merged it into the SppExt un/installer, if I remember correctly. How hard would it be for you to release it separately? A lot of times I'm coming into an environment where I'd like a fresh start, and clearing kms cache would be one of my first moves. Thanks in advance!
yes clearing caches script would be helpful. as i've posted here how kms caches can lead to false result in online activation https://forums.mydigitallife.net/threads/kisskms-android-kms-server-apk.72455/page-10#post-1446730 also not only online but also offline,in can lead to unsuccessful activation, for example i'd sppext files installed by abbodi's tool but then i tried kms by qwelpal with the default settings, to activate and it failed somehow, and then again i tried kms_vl_all script from abbodi in sppext activation folder, and it also failed, after that i uninstalled the sppext files and then tried and it worked perfectly.
HI @abbodi1406 imp bug report- running windows 10 1803 x86 extract Check-Activation-Status.cmd from SppExtComObjPatcher-kms.7z now make a new folder in desktop and copy the Check-Activation-Status.cmd in it. now run it, it'll report the error Code: 'C:\Users\WINDOW~1\Desktop\New' is not recognized as an internal or external command, operable program or batch file. C:\Users\WINDOW~1\Desktop\New folder> now copy the same file Check-Activation-Status.cmd to other directory in other drivers and run it and it'll work. i wasted lots of time figuring out why it happened. and finally i'm able to locate the problem. problem lies in windows file permission system (owner) and code to invoke admin rights Code: cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) new folder created on desktop have different permissions compared to other new folders created in other drives. i dont know which permission (owner) exactly cause the problem but with my 15 + test in c drive and other drive seem to differ in only permission system. also if i change the code to invoke admin rights with other code which i found some where then it doesnt create any problem no matter where i put this script. changed code is Code: fltmc >nul 2>&1 || ( echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs" echo UAC.ShellExecute "%~fs0", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs" cmd /u /c type "%temp%\GetAdmin.vbs">"%temp%\GetAdminUnicode.vbs" cscript //nologo "%temp%\GetAdminUnicode.vbs" del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1 del /f /q "%temp%\GetAdminUnicode.vbs" >nul 2>&1 exit ) i dont know whether this changed code is perfect or not but it doesnt throw errors in any case. to cross check if everything is true i checked in 2 different system. its important bcoz your many scripts uses admin rights invoke code which is creating problem in changed file permission folder. edit - forgot to mention that your original scripts work fine if folder doesnt have spaces in it, file owner doesnt make difference here. and if folder have spaces and have correct file owner then script will run. but if folder have spaces and have different file owner set then script wont work.
@ShiningDog , yes, there is a bug in self-elevating script when folder has spaces. Not always, but I've definitely come across this.
That's why i don't like self-elevating the issue has nothing to do with permissions it's %~s0 that need to be double quoted in the command ""%~s0"" copied the script to "C:\Program Files\Microsoft Office" and it worked wil fix that in upcoming version soon, with support for new Office 2019 SKUs
i changed this Spoiler: original cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) Spoiler: changed cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && ""%~s0"", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B ) and now script is not running. also if it was not the file permission problem then i dont understand why this script was running from D:\New folder\New folder but was not running from C:\Users\Windows 10\Desktop\New folder
in previous post i posted how script in d drive worked but didnt work in c drive. i further tested it and found that script doesn't work in E:\New folder but work in D:\New folder\ so to verify if file permission is the problem, i booted in linux mint and moved all the data of d and e drive to a new folder and then restored it back where all the files were. this process of changing directory restores all the file permission related issues and set it to default. after that i tried the script in E:\New folder D:\New folder\ and this time both folder didnt work. so i suppose file permission was the issue.
For me it's working from all these places, even from C:\ root how about this one? https://drop.me/BVKr3K
its working fine now i was changing it to ""%~s0"", where i was supposed to change it to ""%~s0""", my bad. now the script is working fine, no matter where i put it. thank you.