PurpleTentacle Posted March 11, 2022 Posted March 11, 2022 I'm just starting to look at creating an image of Windows 11 for deployment and I've noticed an odd issue. I haven't thoroughly tested this yet, but at the moment I believe that going from Audit Mode to OOBE with generalize seems to remove the Windows Terminal app if the device used to create the image was connected to the Internet during the image creation. Has anyone else seen this? Is this behaviour be design? 🤷♂️ -Martin
mavhc Posted March 11, 2022 Posted March 11, 2022 It's unlikely they test that much, they don't want you to use sysprep. I just take the wim from the iso and put it on wds, then use scripts to alter it as it's deploying
Zoom7000 Posted March 11, 2022 Posted March 11, 2022 It's unlikely they test that much, they don't want you to use sysprep. I just take the wim from the iso and put it on wds, then use scripts to alter it as it's deploying Are you using MDT to deploy or WDS? If so, how do you execute the scripts during deployment. Also, are they PowerShell scripts?
mavhc Posted March 11, 2022 Posted March 11, 2022 WDS, added running bat script in autounattend xml, no powershell in boot.wim by default
Zoom7000 Posted March 11, 2022 Posted March 11, 2022 WDS, added running bat script in autounattend xml, no powershell in boot.wim by default Would you be happy to share some example scripts?
mavhc Posted March 11, 2022 Posted March 11, 2022 Things like reagentc.exe /disable mkdir "C:\Program Files\Files\Temp" pnputil /a \\server\share$\.....\prnkycl1.inf call \\server\share$\.....\removeCapabilities.bat call \\server\share$\.....\removeAppsOfflineServicing.bat start /wait /min DISM.exe /Online /Remove-Package /PackageName:..... Dism /online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root" /ScratchDir:"C:\Program Files\Files\Temp" removeCapabilities: dism /scratchdir:"C:\program files\files\temp" /online /Remove-Capability /CapabilityName:App.Flighting.InsiderHub~~~~0.0.1.0 dism /scratchdir:"C:\program files\files\temp" /online /Remove-Capability /CapabilityName:RetailDemo.OfflineContent.Content~~~~0.0.1.0 dism /scratchdir:"C:\program files\files\temp" /online /Remove-Capability /CapabilityName:RetailDemo.OfflineContent.Content~~~en-GB~0.0.1.0 removeApps: @echo off set INTEXTFILE=%~dp0\RemoveApps.xml set REPLACETEXT=dism /scratchdir:"C:\program files\files\temp" /online /remove-provisionedappxpackage /packagename: setlocal ENABLEDELAYEDEXPANSION for /f "tokens=1,* delims=¶" %%A in ( '"type %INTEXTFILE%"') do ( SET cli=%%A echo !cli! SET modified=%REPLACETEXT%!cli! echo !modified! start /B /WAIT !modified! ) rem pause removeApps.xml isn't xml apparently: Microsoft.BingFinance_4.6.169.0_neutral_~_8wekyb3d8bbwe Microsoft.BingNews_4.6.169.0_neutral_~_8wekyb3d8bbwe Microsoft.BingSports_4.6.169.0_neutral_~_8wekyb3d8bbwe Microsoft.CommsPhone_1.10.15000.0_neutral_~_8wekyb3d8bbwe Microsoft.ConnectivityStore_1.1509.1.0_neutral_~_8wekyb3d8bbwe Microsoft.Messaging_1.10.22012.0_neutral_~_8wekyb3d8bbwe Microsoft.MicrosoftOfficeHub_2015.6306.23501.0_neutral_~_8wekyb3d8bbwe .....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now