Which HOST OS you are using to Execute the Script Win10 or Win7 . For Win7 It Wont Work so You Must use Win10 Host OS Min Build 17134.xxx . Always Execute Script as Admin Via Right Click.
1. Is it Host or Guest OS & Please Be Sure to Put Both ISO & Script at Same Path ie OS - Desktop or else Script Wont Work. 2. Please Take Screenshot of Errors & Upload them here so that i could better work on it. 2.Have You tweaked or Enabled Controlled Folder Access on Your System OS Desktop Directory 3. Please Try a Fresh Installed Win 10 OS & Cross Check if Problem Persists. 4. My friends haven't reported me any issue like this as you are facing. Edit : As i have seen You Are Using a Install.esd iso . An ISO with install.wim will work with the script or else edit the script & filter *.wim then change .wim to .esd.
@mdl052020 I have an errors. As I can see, they are relative to the wrong user pathes for non-English Windows. I think you shouldn't use smth. like: C:\Users\... or any user-protected folders - Desktop, etc. Try to use some independent TEMP folder inside the path, where cmd launches. E.g. for me it will be: D:\W10DBLT\TEMP\... Then delete this TEMP folder after exit from the script. If you decide to use system user-folders anyway, don't forget use the universal pathes (for any localizations). E.g. for TEMP folder: Code: %USERNAME%\AppData\Local\Temp\ For example, there is no such folder on russian-language Windows: Code: C:\Users Instead it's looking like that: Code: C:\Пользователи Stupid? Yeah... Certified dumbasses from M$...
Thanks a lot . i have noted down your query & will update it in next release. it must be %AppData%\Temp correctly as per User Env Variables Structures.
Yes it is. For example, the header for the script: Code: :::::::: Color and UTF8 Encoding :First @echo off @chcp 65001 CLS COLOR 3 :::::::: Current launch folder cd /d "%~dp0" :::::::: Assignment of variables set "TEMP=%~dp0TEMP" Then you can use this path in any variant of cmd commands: "%TEMP%"
@mdl052020 FYI: I'm also widely use an exellent "PowerRun" tool inside my cmd bundles. Feel free to add it just to your core folder, if you need, for all-in-one package. E.g.: Code: ...\W10DBLT\Files\PowerRun_x64.exe Then Code: :::::::: Assignment of variables set xOS=x64& (If "%PROCESSOR_ARCHITECTURE%"=="x86" If Not Defined PROCESSOR_ARCHITEW6432 Set xOS=x86) set PowerRun="%~dp0Files\PowerRun_%xOS%.exe" And path to be widely used: %PowerRun%
Did Your Issue Resolved if Not Please Try Updated Script with Common Path . i think you have a different Language ISO then EN-GB too.
This time I can see 1-st window "Select Features to Disable" But some errors are still there: Code: --- Exporting Windows 10 Pro Index From Source Wim Image to Temporary Directory Export-WindowsImage : Only one of the Name or Index parameters is required line:1 symbol:1 + Export-WindowsImage -SourceImagePath 'D:\W10DBL\Win10\sources\install ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Export-WindowsImage], PSArgumentException + FullyQualifiedErrorId : Export-WindowsImage,Microsoft.Dism.Commands.ExportWindowsImageCommand --- Moving Back Exported WIM Image to its Source Path It is impossible to find the specified file. (Warnings were translated to English for you) FYI: I'm trying to apply your script to the image done by MSMG. And "Features to Disable" window showing correct state for the packages.
I think Your Win10 ISO wim image don't have exact "Windows 10 Pro" Index Name i am not using index Number in Export Function rather using Image Name to be extracted as in many scenarios Index Numbers are changed . do you have any better solution for this ? or Just Edit the Script & Change SourceName:Windows 10 Pro to SourceIndex:[Your Wim Image Index Number You Want to be extracted} Edit : SourceName:Windows 10 Pro & change it to SourceIndex: (index number you want to be exported)
Look at this: Code: Powershell -Command "Export-WindowsImage -SourceImagePath '%~dp0Win10\sources\install.wim' -SourceName 'Windows 10 Pro' -DestinationImagePath '%tmp%\install.wim'" But I working with Enterprise (Business) edition. Probably, you have to check the Edition and set variable for this. (???) UPD: I late with my message. But you are right. I've deleted other editions using MSMG. Only one. Should I edit this part to the 'Windows 10 Enterprise'?
No luck with 'Windows 10 Enterprise' edit. Unstoppable errors at the end of log by path: C:\Users\TMP\AppData\Local\Temp\Mount\Windows\WinSxS\... (other log output above is unreachable, nothing to show) Also think about immediate stopping scenario + immediate unmount, if any error. Because the folder for unpacking may appear not available for deletion of the produced garbage. So I need to reboot, then delete all the rest files produced by the script. (Not a big problem, but if you can, think about providing such emergency exit)