I ran it on the same ISO. I'll share my log and configuration.json etc. when I get home from work. Your log says the script finished though, but with 8 errors. I get zero errors. Also, I use the script to disable a ton of services, but edit the list I'll share for your purposes.
And attached are my lists and configuration.json in .zip files. Edit: If you want an answer file that'll automate your Windows setup, I can attach it as well. You'll just have to replace the ***** entries with your username, PC name and admin password you want etc. After I install Windows, I just accept the region and keyboard, my user is already set up and a bunch of tweaks like showing hidden files and disabling hibernation are already done. Don't even have to do anything else at first login, just accept the region and keyboard. It is set up for an en-US ISO though. Code: *************************************************************************************************** Running Module : Optimize-Offline 4.0.1.9 Optimize Start : 12/14/2021 05:54:58 PM Identity Name : SYSTEM Computer Name : KEDARWOLF-PC *************************************************************************************************** 2021-12-14T17:54:58 [INFO]: Supported Image Build: [19041] 2021-12-14T17:55:01 [INFO]: Mounting Windows 10 Enterprise LTSC 2021-12-14T17:55:35 [INFO]: Pre-Optimization Image Health State: [Healthy] 2021-12-14T17:55:45 [INFO]: Removing System App: Microsoft.AAD.BrokerPlugin 2021-12-14T17:55:47 [INFO]: Removing System App: Microsoft.BioEnrollment 2021-12-14T17:55:49 [INFO]: Removing System App: Microsoft.ECApp 2021-12-14T17:55:51 [INFO]: Removing System App: Microsoft.LockApp 2021-12-14T17:55:53 [INFO]: Removing System App: Microsoft.Windows.AddSuggestedFoldersToLibarayDialog 2021-12-14T17:55:55 [INFO]: Removing System App: Microsoft.Windows.FileExplorer 2021-12-14T17:55:57 [INFO]: Removing System App: Microsoft.Windows.FilePicker 2021-12-14T17:55:59 [INFO]: Removing System App: Microsoft.Windows.NarratorQuickStart 2021-12-14T17:56:01 [INFO]: Removing System App: Microsoft.Windows.ParentalControls 2021-12-14T17:56:03 [INFO]: Removing System App: Microsoft.Windows.PeopleExperienceHost 2021-12-14T17:56:05 [INFO]: Removing System App: Microsoft.Windows.SecHealthUI 2021-12-14T17:56:07 [INFO]: Removing System App: NcsiUwpApp 2021-12-14T17:56:09 [INFO]: Removing System App: Windows.CBSPreview 2021-12-14T17:56:12 [INFO]: Disabling Services, Drivers and Integration Content for Removed Apps. 2021-12-14T17:56:17 [INFO]: Removing Windows Biometric Capability: Hello.Face.18967~~~~0.0.1.0 2021-12-14T17:56:20 [INFO]: Removing Windows Biometric Capability: Hello.Face.Migration.18967~~~~0.0.1.0 2021-12-14T17:56:24 [INFO]: Disabling Optional Feature: Windows-Defender-Default-Definitions 2021-12-14T17:56:27 [INFO]: Importing Custom App Associations. 2021-12-14T17:56:30 [INFO]: Removing Windows Capability: App.StepsRecorder~~~~0.0.1.0 2021-12-14T17:56:32 [INFO]: Removing Windows Capability: App.Support.QuickAssist~~~~0.0.1.0 2021-12-14T17:56:35 [INFO]: Removing Windows Capability: Language.Handwriting~~~en-US~0.0.1.0 2021-12-14T17:56:37 [INFO]: Removing Windows Capability: Language.OCR~~~en-US~0.0.1.0 2021-12-14T17:56:39 [INFO]: Removing Windows Capability: Language.Speech~~~en-US~0.0.1.0 2021-12-14T17:56:43 [INFO]: Removing Windows Capability: MathRecognizer~~~~0.0.1.0 2021-12-14T17:56:45 [INFO]: Removing Windows Capability: Microsoft.Windows.Notepad~~~~0.0.1.0 2021-12-14T17:56:48 [INFO]: Removing Windows Capability: Microsoft.Windows.WordPad~~~~0.0.1.0 2021-12-14T17:56:50 [INFO]: Removing Windows Capability: OpenSSH.Client~~~~0.0.1.0 2021-12-14T17:56:57 [INFO]: Disabling Optional Feature: MicrosoftWindowsPowerShellV2Root 2021-12-14T17:57:01 [INFO]: Disabling Optional Feature: MSRDC-Infrastructure 2021-12-14T17:57:04 [INFO]: Disabling Optional Feature: Printing-XPSServices-Features 2021-12-14T17:57:06 [INFO]: Disabling Optional Feature: SmbDirect 2021-12-14T17:57:08 [INFO]: Disabling Optional Feature: WorkFolders-Client 2021-12-14T17:57:12 [INFO]: Enabling Optional Feature: Microsoft-Windows-Subsystem-Linux 2021-12-14T17:57:16 [INFO]: Modifying windows service: AarSvc, Start: Disabled 2021-12-14T17:57:17 [INFO]: Modifying windows service: AJRouter, Start: Disabled 2021-12-14T17:57:18 [INFO]: Modifying windows service: ALG, Start: Disabled 2021-12-14T17:57:19 [INFO]: Modifying windows service: AppVClient, Start: Disabled 2021-12-14T17:57:20 [INFO]: Modifying windows service: autotimesvc, Start: Disabled 2021-12-14T17:57:21 [INFO]: Modifying windows service: BluetoothUserService, Start: Disabled 2021-12-14T17:57:22 [INFO]: Modifying windows service: BTAGService, Start: Disabled 2021-12-14T17:57:23 [INFO]: Modifying windows service: bthserv, Start: Disabled 2021-12-14T17:57:24 [INFO]: Modifying windows service: CaptureService, Start: Disabled 2021-12-14T17:57:25 [INFO]: Modifying windows service: cdfs, Start: Disabled 2021-12-14T17:57:26 [INFO]: Modifying windows service: CDPSvc, Start: Disabled 2021-12-14T17:57:27 [INFO]: Modifying windows service: CDPSvc, Start: Disabled 2021-12-14T17:57:28 [INFO]: Modifying windows service: CDPUserSvc, Start: Disabled 2021-12-14T17:57:29 [INFO]: Modifying windows service: CscService, Start: Disabled 2021-12-14T17:57:30 [INFO]: Modifying windows service: DevicePickerUserSvc, Start: Disabled 2021-12-14T17:57:31 [INFO]: Modifying windows service: diagnosticshub.standardcollector.service, Start: Disabled 2021-12-14T17:57:32 [INFO]: Modifying windows service: diagsvc, Start: Disabled 2021-12-14T17:57:33 [INFO]: Modifying windows service: DiagTrack, Start: Disabled 2021-12-14T17:57:34 [INFO]: Modifying windows service: DoSvc, Start: Disabled 2021-12-14T17:57:35 [INFO]: Modifying windows service: DsSvc, Start: Disabled 2021-12-14T17:57:36 [INFO]: Modifying windows service: DusmSvc, Start: Disabled 2021-12-14T17:57:37 [INFO]: Modifying windows service: Fax, Start: Disabled 2021-12-14T17:57:38 [INFO]: Modifying windows service: FrameServer, Start: Disabled 2021-12-14T17:57:39 [INFO]: Modifying windows service: HvHost, Start: Disabled 2021-12-14T17:57:40 [INFO]: Modifying windows service: hvservice, Start: Disabled 2021-12-14T17:57:41 [INFO]: Modifying windows service: icssvc, Start: Disabled 2021-12-14T17:57:42 [INFO]: Modifying windows service: iphlpsvc, Start: Disabled 2021-12-14T17:57:43 [INFO]: Modifying windows service: lfsvc, Start: Disabled 2021-12-14T17:57:45 [INFO]: Modifying windows service: MapsBroker, Start: Disabled 2021-12-14T17:57:46 [INFO]: Modifying windows service: MessagingService, Start: Disabled 2021-12-14T17:57:47 [INFO]: Modifying windows service: mrxsmb, Start: Disabled 2021-12-14T17:57:48 [INFO]: Modifying windows service: NativeWifiP, Start: Disabled 2021-12-14T17:57:49 [INFO]: Modifying windows service: NcaSvc, Start: Disabled 2021-12-14T17:57:50 [INFO]: Modifying windows service: NcbService, Start: Disabled 2021-12-14T17:57:51 [INFO]: Modifying windows service: NdisTapi, Start: Disabled 2021-12-14T17:57:52 [INFO]: Modifying windows service: ndiswanlegacy, Start: Disabled 2021-12-14T17:57:53 [INFO]: Modifying windows service: PcaSvc, Start: Disabled 2021-12-14T17:57:54 [INFO]: Modifying windows service: PeerDistSvc, Start: Disabled 2021-12-14T17:57:55 [INFO]: Modifying windows service: perceptionsimulation, Start: Disabled 2021-12-14T17:57:56 [INFO]: Modifying windows service: PimIndexMaintenanceSvc, Start: Disabled 2021-12-14T17:57:57 [INFO]: Modifying windows service: RasAcd, Start: Disabled 2021-12-14T17:57:58 [INFO]: Modifying windows service: RasAuto, Start: Disabled 2021-12-14T17:57:59 [INFO]: Modifying windows service: RasMan, Start: Disabled 2021-12-14T17:58:00 [INFO]: Modifying windows service: RDPDR, Start: Disabled 2021-12-14T17:58:01 [INFO]: Modifying windows service: RdpVideoMiniport, Start: Disabled 2021-12-14T17:58:02 [INFO]: Modifying windows service: RemoteAccess, Start: Disabled 2021-12-14T17:58:03 [INFO]: Modifying windows service: RemoteRegistry, Start: Disabled 2021-12-14T17:58:04 [INFO]: Modifying windows service: RetailDemo, Start: Disabled 2021-12-14T17:58:05 [INFO]: Modifying windows service: RmSvc, Start: Disabled 2021-12-14T17:58:06 [INFO]: Modifying windows service: RpcLocator, Start: Disabled 2021-12-14T17:58:07 [INFO]: Modifying windows service: SCardSvr, Start: Disabled 2021-12-14T17:58:08 [INFO]: Modifying windows service: ScDeviceEnum, Start: Disabled 2021-12-14T17:58:09 [INFO]: Modifying windows service: scfilter, Start: Disabled 2021-12-14T17:58:10 [INFO]: Modifying windows service: SCPolicySvc, Start: Disabled 2021-12-14T17:58:11 [INFO]: Modifying windows service: SDRSVC, Start: Disabled 2021-12-14T17:58:12 [INFO]: Modifying windows service: SecurityHealthService, Start: Disabled 2021-12-14T17:58:13 [INFO]: Modifying windows service: SEMgrSvc, Start: Disabled 2021-12-14T17:58:14 [INFO]: Modifying windows service: Sense, Start: Disabled 2021-12-14T17:58:15 [INFO]: Modifying windows service: SensorDataService, Start: Disabled 2021-12-14T17:58:16 [INFO]: Modifying windows service: SensorService, Start: Disabled 2021-12-14T17:58:17 [INFO]: Modifying windows service: SensrSvc, Start: Disabled 2021-12-14T17:58:18 [INFO]: Modifying windows service: SessionEnv, Start: Disabled 2021-12-14T17:58:19 [INFO]: Modifying windows service: SgrmBroker, Start: Disabled 2021-12-14T17:58:20 [INFO]: Modifying windows service: SharedAccess, Start: Disabled 2021-12-14T17:58:21 [INFO]: Modifying windows service: SharedRealitySvc, Start: Disabled 2021-12-14T17:58:22 [INFO]: Modifying windows service: shpamsvc, Start: Disabled 2021-12-14T17:58:23 [INFO]: Modifying windows service: SmsRouter, Start: Disabled 2021-12-14T17:58:24 [INFO]: Modifying windows service: SNMPTRAP, Start: Disabled 2021-12-14T17:58:25 [INFO]: Modifying windows service: spectrum, Start: Disabled 2021-12-14T17:58:26 [INFO]: Modifying windows service: SSDPSRV, Start: Disabled 2021-12-14T17:58:27 [INFO]: Modifying windows service: stisvc, Start: Disabled 2021-12-14T17:58:28 [INFO]: Modifying windows service: SysMain, Start: Disabled 2021-12-14T17:58:29 [INFO]: Modifying windows service: TabletInputService, Start: Disabled 2021-12-14T17:58:30 [INFO]: Modifying windows service: TermService, Start: Disabled 2021-12-14T17:58:31 [INFO]: Modifying windows service: TrkWks, Start: Disabled 2021-12-14T17:58:32 [INFO]: Modifying windows service: TroubleshootingSvc, Start: Disabled 2021-12-14T17:58:33 [INFO]: Modifying windows service: TsUsbFlt, Start: Disabled 2021-12-14T17:58:34 [INFO]: Modifying windows service: tzautoupdate, Start: Disabled 2021-12-14T17:58:35 [INFO]: Modifying windows service: udfs, Start: Disabled 2021-12-14T17:58:36 [INFO]: Modifying windows service: UdkUserSvc, Start: Disabled 2021-12-14T17:58:37 [INFO]: Modifying windows service: UevAgentDriver, Start: Disabled 2021-12-14T17:58:38 [INFO]: Modifying windows service: UevAgentService, Start: Disabled 2021-12-14T17:58:39 [INFO]: Modifying windows service: UmRdpService, Start: Disabled 2021-12-14T17:58:40 [INFO]: Modifying windows service: UnistoreSvc, Start: Disabled 2021-12-14T17:58:41 [INFO]: Modifying windows service: upnphost, Start: Disabled 2021-12-14T17:58:42 [INFO]: Modifying windows service: VacSvc, Start: Disabled 2021-12-14T17:58:43 [INFO]: Modifying windows service: VerifierExt, Start: Disabled 2021-12-14T17:58:44 [INFO]: Modifying windows service: vmicguestinterface, Start: Disabled 2021-12-14T17:58:45 [INFO]: Modifying windows service: vmicheartbeat, Start: Disabled 2021-12-14T17:58:46 [INFO]: Modifying windows service: vmickvpexchange, Start: Disabled 2021-12-14T17:58:47 [INFO]: Modifying windows service: vmicrdv, Start: Disabled 2021-12-14T17:58:48 [INFO]: Modifying windows service: vmicshutdown, Start: Disabled 2021-12-14T17:58:49 [INFO]: Modifying windows service: vmictimesync, Start: Disabled 2021-12-14T17:58:50 [INFO]: Modifying windows service: vmicvmsession, Start: Disabled 2021-12-14T17:58:51 [INFO]: Modifying windows service: vmicvss, Start: Disabled 2021-12-14T17:58:52 [INFO]: Modifying windows service: W32Time, Start: Disabled 2021-12-14T17:58:53 [INFO]: Modifying windows service: WalletService, Start: Disabled 2021-12-14T17:58:54 [INFO]: Modifying windows service: wbengine, Start: Disabled 2021-12-14T17:58:55 [INFO]: Modifying windows service: WbioSrvc, Start: Disabled 2021-12-14T17:58:56 [INFO]: Modifying windows service: WdNisDrv, Start: Disabled 2021-12-14T17:58:57 [INFO]: Modifying windows service: WdNisSvc, Start: Disabled 2021-12-14T17:58:58 [INFO]: Modifying windows service: Wecsvc, Start: Disabled 2021-12-14T17:58:59 [INFO]: Modifying windows service: wercplsupport, Start: Disabled 2021-12-14T17:59:00 [INFO]: Modifying windows service: WerSvc, Start: Disabled 2021-12-14T17:59:01 [INFO]: Modifying windows service: WFDSConMgrSvc, Start: Disabled 2021-12-14T17:59:02 [INFO]: Modifying windows service: WiaRpc, Start: Disabled 2021-12-14T17:59:03 [INFO]: Modifying windows service: WinDefend, Start: Disabled 2021-12-14T17:59:04 [INFO]: Modifying windows service: WinRM, Start: Disabled 2021-12-14T17:59:05 [INFO]: Modifying windows service: wisvc, Start: Disabled 2021-12-14T17:59:06 [INFO]: Modifying windows service: WlanSvc, Start: Disabled 2021-12-14T17:59:07 [INFO]: Modifying windows service: WMPNetworkSvc, Start: Disabled 2021-12-14T17:59:08 [INFO]: Modifying windows service: WpcMonSvc, Start: Disabled 2021-12-14T17:59:09 [INFO]: Modifying windows service: ws2ifsl, Start: Disabled 2021-12-14T17:59:10 [INFO]: Modifying windows service: WSearch, Start: Disabled 2021-12-14T17:59:11 [INFO]: Modifying windows service: WwanSvc, Start: Disabled 2021-12-14T17:59:12 [INFO]: Modifying windows service: XblGameSave, Start: Disabled 2021-12-14T17:59:13 [INFO]: Modifying windows service: XboxGipSvc, Start: Disabled 2021-12-14T17:59:14 [INFO]: Modifying windows service: XboxNetApiSvc, Start: Disabled 2021-12-14T17:59:15 [INFO]: Setting delivery optimization to bypass mode 2021-12-14T17:59:19 [INFO]: Integrating the Windows Store Application Packages. 2021-12-14T17:59:25 [INFO]: Applying Optimized Registry Settings. 2021-12-14T17:59:34 [INFO]: Applying Setup Content. 2021-12-14T17:59:37 [INFO]: Importing Registry Template: Additional Tweaks.reg 2021-12-14T17:59:43 [INFO]: Applying Answer File. 2021-12-14T17:59:46 [INFO]: Injecting Driver Packages into Windows 10 Enterprise LTSC 2021-12-14T18:00:09 [INFO]: Cleaning-up the Start Menu Layout. 2021-12-14T18:00:12 [INFO]: Disabling automatic driver update 2021-12-14T18:00:13 [INFO]: Enabling dormant OneDrive fix 2021-12-14T18:00:16 [INFO]: Creating a Package Summary Log. 2021-12-14T18:00:21 [INFO]: Post-Optimization Image Health State: [Healthy] 2021-12-14T18:00:24 [INFO]: Saving and Dismounting Windows 10 Enterprise LTSC 2021-12-14T18:01:38 [INFO]: Rebuilding and Exporting Windows 10 Enterprise LTSC using Solid compression. 2021-12-14T18:08:46 [INFO]: Optimizing the Installation Media File Structure. 2021-12-14T18:08:46 [INFO]: Creating a No-Prompt Bootable Windows Installation Media ISO. 2021-12-14T18:08:50 [INFO]: Finalizing Optimizations. 2021-12-14T18:08:50 [INFO]: Optimize-Offline completed in [14] minutes with [0] errors. *************************************************************************************************** Optimizations Finalized : 12/14/2021 06:08:50 PM ***************************************************************************************************
This is only necessary if you use Store. Otherwise it can be disabled without problems. I always disable it and I don't have any problems but I don't use Store or UWP apps. This is different from paging file. Paging file is not recommended to be disabled.
I have not tried it with winaero tweaker. I will test again. What does it do? Disable UAC? I did not understand. Is it necessary to apply this to restore classic search? EDIT: You mean disabling UAC restores classic search without needing winaero tweaker or mach2?
You are right with winaero tweaker this works thank you for the tip. But this applies a different tweak. Adds a different value to the registry than mach2. It is necessary to restart Windows Explorer to work. Code: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\SOFTWARE\Classes\CLSID\{1d64637d-31e9-4b06-9124-e83fb178ac6e}\TreatAs] @="{64bc32b5-4eec-4de7-972d-bd8bd0324537}"
Wow great job in demasking the truth of winaero tweaker. So the link they were providing in their tweak page was not what in reality it was doing. How did you manage to find this? Some registry diff tool? Am on my way to integrate this, definitely the best solution!!
Am going to make a release. Later will continue with @KedarWolf BAU script not deleting temp folder. And also edge chromium deletion. Any news anyone on this? Is it worth removing edge chromium? Any side effects?
• [W11] enable classic search in explorer • [W11] UI ribbon W10 style in explorer • [W11] enabled classic context menus Is it automatic? What if I don't want it? Because I like the style of the W11?
@gdeliana I thought removing "Microsoft.SecHealthUI" was fixed when you're running Windows 11? It errors out on me, and the script exits.