No, because I do not use it and do not plan. It is quite possible that I will ignore Windows 11 and skip directly to Windows 12. As I have done with Windows Vista and 8/8.1. I see no benefits of upgrading Windows 10 - > Windows 11 at present, but drawbacks are clear to me. In general: I do not like frenzy and pointless upgrading just to have bigger software number. Every update has to have some goal (and reason) for me.
wkeller: Thanks very much for the tip. You've spent a great deal of time and effort on this very worthwhile project and your work is much appreciated, even though many users may forget to say 'Thanks'. schubidubi: Sorry, I could have better worded my post. I'll be working within a current W10 environment while I modify a W10 iso, using the Slimdown script. As I said earlier, I'm just looking for guidance. If it's better that I use a clean W10 iso from the MS server, then that's what I'll do. Which version would be best?
@wkeller i would like to thank you for this wonderful tool to slim down Windows 10 , and i will try to test it with some modification to use it with 18363.2274 Pro which i believe it is a more than stable windows so far compared with 1904+++ which every update make it worst and worst . As you said early i do not see the point of upgrading to Windows 11 (big mistake as it was Windows 8.1) , as long as i do not see an improvement in make it faster and more user friendly . I manage to use some of your reg script and build an tweak command to be used after you install any windows 10 , and i am still working on it . Thanks again and i will be glad to share with you my results after some testing .
Hi, I try since one week or so to modify your script. I want to achieve that many things are more optional and I added a few Registry Tweaks I like. I have absolutely no experience in writing or editing scripts. So most editing I've done is with the "if" "%Variable%" or the "if not" "%Variable%" ! I don't know should I ask here in this Thread or maybe open another in the Scripting Subforums? Well, its related to Slimdown10 so I decided to ask here. I hope this is Ok. But now to No.1 of my Problems... Why does following not work? Code: :: By default disable most permisions for UWP apps set "DisableUWPpermissions=activity,appDiagnostics,appointments,bluetooth,bluetoothSync,cellularData,chat,contacts,gazeInput,microphone,phoneCall,phoneCallHistory,radios,sensors.custom,serialCommunication,usb,userAccountInformation,userDataTasks,webcam,wifiData,wiFiDirect" Code: echo == Privacy Restrictions for UWP apps (custom) if "%DisableUWPpermissions%"=="microphone" ( reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMicrophone" /t REG_DWORD /d "2" /f echo == AppsAccessMicrophone restricted ) if "%DisableUWPpermissions%"=="location" ( reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation" /t REG_DWORD /d "2" /f echo == AppsAccessLocation restricted ) if "%DisableUWPpermissions%"=="webcam" ( reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessCamera" /t REG_DWORD /d "2" /f echo == AppsAccessCamera restricted ) It simply ignores the lines. But the Strings are in the %DisableUWPpermissions% Variable? Edit I have found the solution for this! Code: echo.%DisableUWPpermissions%|findstr /C:"microphone" >nul 2>&1 if not errorlevel 1 ( reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessMicrophone" /t REG_DWORD /d "2" /f ) else ( goto micSkip ) :micSkip echo.%DisableUWPpermissions%|findstr /C:"location" >nul 2>&1 if not errorlevel 1 ( reg add "HKLM\TK_SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" /v "LetAppsAccessLocation" /t REG_DWORD /d "2" /f ) else ( goto locSkip ) ...
This is the second part, here I had the Problems! It ignored some lines, even though the variables are correct and I didn't understood why? Code: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if "%EnableXBox%"=="3" set EnableStore=3 if "%EnableXBox%"=="3" echo GamingStoreSecurityEdition EnableStore=%EnableStore% if "%EnableXBox%"=="2" set EnableStore=2 if "%EnableXBox%"=="2" echo GamingStoreEdition EnableStore=%EnableStore% if "%EnableStore%"=="3" set DisableDefender=0 && set DisableSmrtScrn=0 && set EnableMSAccount=1 && set DisableTroubleshooters=0 && set DisableLocation=0 if "%EnableStore%"=="3" echo DisableDefender=%DisableDefender% && echo DisableSmrtScrn=%DisableSmrtScrn% && echo EnableMSAccount=%EnableMSAccount% && echo DisableTroubleshooters=%DisableTroubleshooters% && echo DisableLocation=%DisableLocation% && echo cause EnableStore=%EnableStore% if "%EnableStore%"=="2" set DisableLocation=0 && set EnableMSAccount=1 if "%EnableStore%"=="2" echo EnableMSAccount=%EnableMSAccount% && echo DisableLocation=%DisableLocation% cause EnableStore=%EnableStore% if "%EnableStore%"=="1" set DisableLocation=0 && set EnableMSAccount=1 if "%EnableStore%"=="1" echo DisableLocation=%DisableLocation% cause EnableStore=%EnableStore% OS Location Feature for WindowsStore UWP enabled if "%MaximumSlimdown%"=="1" set EnableStore=0 && set KeepEdge=0 && set EnableXBox=0 && set DisableTroubleshooters=1 && set DisableTimeSync=0 && set DisableInternetConnectionChecking=0 && set DisableFileHistory=1 && set DisableLocation=1 && set EnableMSAccount=0 && set DisableSense=1 && set EnableClipHis=0 && set KeepPhone=0 && set KeepMail=0 && set DisableSR=0 && set DisableMeltSpec=0 && DisableFirewall=0 && set RemoveSysUWPfromDisk=0 && echo == MaximumSlimdown1 if "%MaximumSlimdown%"=="1" echo EnableStore=%EnableStore% && echo KeepEdge=%KeepEdge% && echo EnableXBox=%EnableXBox% && echo DisableTroubleshooters=%DisableTroubleshooters% && echo DisableTimeSync=%DisableTimeSync% && echo DisableInternetConnectionChecking=%DisableInternetConnectionChecking% && echo DisableFileHistory=%DisableFileHistory% && echo DisableLocation=%DisableLocation% && echo EnableMSAccount=%EnableMSAccount% && echo DisableSense=%DisableSense% && echo EnableClipHis=%EnableClipHis% && echo KeepPhone=%KeepPhone% && echo KeepMail=%KeepMail% && echo DisableSR=%DisableSR% && echo DisableMeltSpec=%DisableMeltSpec% && echo DisableFirewall=%DisableFirewall% && echo RemoveSysUWPfromDisk=%RemoveSysUWPfromDisk% && echo == MaximumSlimdown1 if "%MaximumSlimdown%"=="2" set EnableStore=0 && set KeepEdge=0 && set EnableXBox=0 && set DisableTroubleshooters=1 && set DisableTimeSync=1 && set DisableInternetConnectionChecking=1 && set DisableFileHistory=1 && set DisableLocation=1 && set EnableMSAccount=0 && set DisableSense=1 && set EnableClipHis=0 && set KeepPhone=0 && set KeepMail=0 && set DisableSR=1 && set DisableMeltSpec=1 && DisableFirewall=1 && set RemoveSysUWPfromDisk=1 && echo == MaximumSlimdown2 if "%MaximumSlimdown%"=="2" echo EnableStore=%EnableStore% && echo KeepEdge=%KeepEdge% && echo EnableXBox=%EnableXBox% && echo DisableTroubleshooters=%DisableTroubleshooters% && echo DisableTimeSync=%DisableTimeSync% && echo DisableInternetConnectionChecking=%DisableInternetConnectionChecking% && echo DisableFileHistory=%DisableFileHistory% && echo DisableLocation=%DisableLocation% && echo EnableMSAccount=%EnableMSAccount% && echo DisableSense=%DisableSense% && echo EnableClipHis=%EnableClipHis% && echo KeepPhone=%KeepPhone% && echo KeepMail=%KeepMail% && echo DisableSR=%DisableSR% && echo DisableMeltSpec=%DisableMeltSpec% && echo DisableFirewall=%DisableFirewall% && echo RemoveSysUWPfromDisk=%RemoveSysUWPfromDisk% && echo == MaximumSlimdown2 pause :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: ::======= PLS DON'T EDIT BLINDLY AFTER THIS LINE =======:: :::===== ONLY EDIT IF YOU KNOW WHAT YOU ARE DOING =====::: :: :: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ===================================================================== :: ------------- Start of Advanced Configuration Section ------------- = :: ===================================================================== :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Microsoft.549981C3F5F10 ; Microsoft.Advertising.Xaml ; Microsoft.BingWeather ; Microsoft.DesktopAppInstaller ; Microsoft.GetHelp ; Microsoft.Getstarted :: :: Microsoft.Microsoft3DViewer ; Microsoft.MicrosoftOfficeHub ; Microsoft.MicrosoftSolitaireCollection ; Microsoft.MicrosoftStickyNotes :: :: Microsoft.MixedReality.Portal ; Microsoft.MSPaint ; Microsoft.Office.OneNote ; Microsoft.People ; Microsoft.ScreenSketch ; Microsoft.Services.Store.Engagement :: :: Microsoft.SkypeApp ; Microsoft.StorePurchaseApp ; Microsoft.UI.Xaml ; Microsoft.Wallet ; Microsoft.Windows.Photos ; Microsoft.WindowsAlarms :: :: Microsoft.WindowsCalculator ; Microsoft.WindowsCamera ; microsoft.windowscommunicationsapps ; Microsoft.WindowsFeedbackHub ; Microsoft.WindowsMaps :: :: Microsoft.WindowsSoundRecorder ; Microsoft.WindowsStore ; Microsoft.Xbox.TCUI ; Microsoft.XboxApp ; Microsoft.XboxGameOverlay ; Microsoft.XboxGamingOverlay :: :: Microsoft.XboxIdentityProvider; Microsoft.XboxSpeechToTextOverlay ; Microsoft.YourPhone ; Microsoft.ZuneMusic ; Microsoft.ZuneVideo :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: All user UWP applications listed above and in \Program Files\WindowsApps will be removed with the exception of the following :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: In other words: It is the list of UWP apps that you want to keep. :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: set IncludeCustomUWP=1 set IncludeCodecUWP=1 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if not "%EnableStore%"=="0" set IncludeCodecUWP=1 if not "%EnableStore%"=="0" echo IncludeCodecUWP=%IncludeCodecUWP% Store enabled,Codec UWPs included if not "%EnableXBox%"=="0" set IncludeCodecUWP=1 if not "%EnableXBox%"=="0" echo IncludeCodecUWP=%IncludeCodecUWP% XBox Features enabled, Codec UWPs included if "%MaximumSlimdown%"=="1" set IncludeCodecUWP=1 && set IncludeCustomUWP=0 if "%MaximumSlimdown%"=="1" echo IncludeCodecUWP=%IncludeCodecUWP% IncludeCustomUWP=%IncludeCustomUWP% && echo MaximumSlimdown=%MaximumSlimdown% Enabled Codec and disabled Custom UWPs if "%MaximumSlimdown%"=="2" set IncludeCodecUWP=0 && set IncludeCustomUWP=0 if "%MaximumSlimdown%"=="2" echo IncludeCodecUWP=%IncludeCodecUWP% IncludeCustomUWP=%IncludeCustomUWP% && echo MaximumSlimdown=%MaximumSlimdown% Diabled Codec and Custom UWPs set IncludeUWPapps= ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ======================================================================= :: ------------ If you wish to keep some UWP Apps ------------- :: :: ------------------- here is the place for ------------------ :: :: ======================================================================= if "%IncludeCustomUWP%"=="1" ( set "IncludeUWPapps=%IncludeUWPapps%,Microsoft.UI.Xaml,Microsoft.WindowsCamera,Microsoft.WindowsMaps,Microsoft.ScreenSketch,Microsoft.WindowsSoundRecorder,Microsoft.MicrosoftStickyNotes,Microsoft.WindowsAlarms,Microsoft.YourPhone,Microsoft.WindowsCalculator" echo == Included Custom UWP Apps ) ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if "%IncludeCodecUWP%"=="1" ( set "IncludeUWPapps=%IncludeUWPapps%,Microsoft.VCLibs,Microsoft.NET.Native,Microsoft.HEIFImageExtension,Microsoft.VP9VideoExtensions,Microsoft.WebMediaExtensions,Microsoft.WebpImageExtension" echo == Included Codec UWP Apps ) if "%KeepPhone%"=="1" ( set "IncludeUWPapps=%IncludeUWPapps%,Microsoft.YourPhone" echo == Included YourPhone UWP Apps ) if not "%EnableStore%"=="0" ( set "IncludeUWPapps=%IncludeUWPapps%,Microsoft.DesktopAppInstaller,Microsoft.WindowsStore,Microsoft.Services.Store.Engagement,Microsoft.UI.Xaml,Microsoft.Wallet,Microsoft.WindowsFeedbackHub" echo == Included Store UWP Apps ) if "%EnableStore%"=="3" ( set "IncludeUWPapps=%IncludeUWPapps%,Microsoft.WindowsCamera,Microsoft.DesktopAppInstaller,Microsoft.ScreenSketch,Microsoft.WindowsStore,Microsoft.Services.Store.Engagement,Microsoft.UI.Xaml,Microsoft.Wallet,Microsoft.WindowsSoundRecorder,Microsoft.WindowsFeedbackHub" echo == Included Store and a few selected UWP Apps ) :skipStoreUWP if "%EnableXBox%"=="3" ( set "IncludeUWPapps=%IncludeUWPapps%,Microsoft.Xbox.TCUI,Microsoft.XboxApp,Microsoft.XboxGameOverlay,Microsoft.XboxGamingOverlay,Microsoft.XboxIdentityProvider,Microsoft.XboxSpeechToTextOverlay" echo == Included Gaming UWP Apps ) echo IncludeCustomUWP=%IncludeCustomUWP% IncludeCodecUWP=%IncludeCodecUWP% && for %%i in (%IncludeUWPapps%) do (echo %%i) pause ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ==================================================================== :: --- Disable all safe to remove UWP apps, is the default version --- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== :: set "RemoveSystemUWPapps=Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp,Microsoft.Windows.AppResolverUX,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.Windows.CapturePicker,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,Microsoft.XboxGameCallableUI,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit,NcsiUwpApp,ParentalControls,Windows.CBSPreview" :: :: ======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================== set RemoveSysUWP=maximal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if "%MaximumSlimdown%"=="2" set RemoveSysUWP=default && echo max2 && goto setRemove if "%MaximumSlimdown%"=="1" set RemoveSysUWP=enhanced && goto setRemove if "%RemoveSysUWP%"=="custom" goto setRemove if "%RemoveSysUWP%"=="none" goto setRemove if not "%EnableXBox%"=="0" set RemoveSysUWP=minimal if not "%EnableStore%"=="0" set RemoveSysUWP=minimalSTORE :setRemove ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ==================================================================================== :: ------------ If you wish to remove your own list of System UWP Apps ------------- :: :: ---------------------------- here is the place for ------------------------------ :: :: ==================================================================================== echo.%RemoveSysUWP%|findstr /C:"custom" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.WindowsCamera,Microsoft.Windows.CapturePicker,Microsoft.AccountsControl,microsoft.creddialoghost,Microsoft.ECApp,WhatsNew,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.LockApp,Microsoft.Windows.AssignedAccessLockApp,Microsoft.BioEnrollment,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.AppRep.ChxApp,MicrosoftWindows.Client.CBS,Windows.CBSPreview" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.ContentDeliveryManager,MixedRealityLearning,RoomAdjustment,microsoft.windows.narratorquickstart,ParentalControls,Microsoft.Windows.PPISkype,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.MicrosoftTeamsforSurfaceHub,Microsoft.Windows.AppRep.ChxApp,Microsoft.XboxApp,Microsoft.XboxGameCallableUI,Microsoft.XboxGamingOverlay,Microsoft.XboxSpeechToTextOverlay,Microsoft.Xbox.TCUI,Microsoft.XboxGameOverlay,Microsoft.XboxIdentityProvider" && echo customarsch ) :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if "%KeepEdge%"=="0" goto noEdgeUWP echo.%RemoveSysUWP%|findstr /C:"default" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp,Microsoft.Windows.AppResolverUX,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.Windows.CapturePicker,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,Microsoft.XboxGameCallableUI,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit,NcsiUwpApp,ParentalControls,Windows.CBSPreview" && echo == DefaultEdgeRemovedSysUWPs && goto RemoveDone ) else ( echo. ) echo.%RemoveSysUWP%|findstr /C:"minimalEnhanced" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.AppRep.ChxApp,Microsoft.Windows.PeopleExperienceHost,MicrosoftWindows.UndockedDevKit,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.MicrosoftTeamsforSurfaceHub" && echo == MinimalEdge removed SysUWPs && goto RemoveDone ) else ( echo. ) echo.%RemoveSysUWP%|findstr /C:"minimalSTORE" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.PeopleExperienceHost,MicrosoftWindows.UndockedDevKit,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.MicrosoftTeamsforSurfaceHub" && echo == MinimalSTOREEdge removed SysUWPs && goto RemoveDone ) else ( echo. ) echo.%RemoveSysUWP%|findstr /C:"minimal" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.ContentDeliveryManager" && echo == MinimalEdge removed SysUWPs && goto RemoveDone ) else ( echo. ) echo.%RemoveSysUWP%|findstr /C:"enhanced" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp,Microsoft.Windows.AppResolverUX" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.CapturePicker,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,Microsoft.XboxGameCallableUI,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit,Windows.CBSPreview" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,NcsiUwpApp,ParentalControls,Microsoft.WindowsCamera,Microsoft.Windows.PPISkype,Microsoft.MicrosoftTeamsforSurfaceHub,Windows.ContactSupport,ParentalControls,Microsoft.Xbox.TCUI,Microsoft.XboxApp,Microsoft.XboxGameOverlay,Microsoft.XboxGamingOverlay,Microsoft.XboxIdentityProvider,Microsoft.XboxSpeechToTextOverlay,Microsoft.CloudExperienceHost.TestApp,Microsoft.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost.MultiUser" echo == EnhancedEdge removed SysUWPs goto RemoveDone ) else ( echo. ) echo.%RemoveSysUWP%|findstr /C:"maximal" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.WindowsCamera,Microsoft.Windows.PPISkype,Microsoft.MicrosoftTeamsforSurfaceHub,Windows.ContactSupport,ParentalControls,Windows.CBSPreview" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.CloudExperienceHost.TestApp,Microsoft.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost.MultiUser" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp,Microsoft.AAD.BrokerPlugin,Microsoft.XboxGameCallableUI" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.AppResolverUX,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.Windows.CapturePicker" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,NcsiUwpApp,WhatsNew" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Xbox.TCUI,Microsoft.XboxGameOverlay,Microsoft.XboxIdentityProvider,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,MixedRealityLearning,RoomAdjustment,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote" echo == MaximalEdge removed SysUWPs goto RemoveDone ) else ( echo. ) :noEdgeUWP if "%KeepEdge%"=="1" goto EdgeUWP echo.%RemoveSysUWP%|findstr /C:"default" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp,Microsoft.Windows.AppResolverUX,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.Windows.CapturePicker,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,Microsoft.XboxGameCallableUI,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit,NcsiUwpApp,ParentalControls,Windows.CBSPreview" && echo == DefaultRemovedSysUWPs && goto RemoveDone ) echo.%RemoveSysUWP%|findstr /C:"minimalEnhanced" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.Windows.AppRep.ChxApp,Microsoft.Windows.PeopleExperienceHost,MicrosoftWindows.UndockedDevKit,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.MicrosoftTeamsforSurfaceHub" && echo == MinimalEnhanced removed SysUWPs && goto RemoveDone ) echo.%RemoveSysUWP%|findstr /C:"minimalSTORE" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.Windows.PeopleExperienceHost,MicrosoftWindows.UndockedDevKit,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.MicrosoftTeamsforSurfaceHub" && echo == MinimalSTORE removed SysUWPs && goto RemoveDone ) echo.%RemoveSysUWP%|findstr /C:"minimal" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.Windows.ContentDeliveryManager" && echo == Minimal removed SysUWPs && goto RemoveDone ) echo.%RemoveSysUWP%|findstr /C:"enhanced" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp,Microsoft.Windows.AppResolverUX" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.CapturePicker,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,Microsoft.XboxGameCallableUI,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit,Windows.CBSPreview" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,NcsiUwpApp,ParentalControls,Microsoft.WindowsCamera,Microsoft.Windows.PPISkype,Microsoft.MicrosoftTeamsforSurfaceHub,Windows.ContactSupport,ParentalControls,Microsoft.Xbox.TCUI,Microsoft.XboxApp,Microsoft.XboxGameOverlay,Microsoft.XboxGamingOverlay,Microsoft.XboxIdentityProvider,Microsoft.XboxSpeechToTextOverlay,Microsoft.CloudExperienceHost.TestApp,Microsoft.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost.MultiUser" echo == Enhanced removed SysUWPs goto RemoveDone ) echo.%RemoveSysUWP%|findstr /C:"maximal" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.WindowsCamera,Microsoft.Windows.PPISkype,Microsoft.MicrosoftTeamsforSurfaceHub,Windows.ContactSupport,ParentalControls,Windows.CBSPreview" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.CloudExperienceHost.TestApp,Microsoft.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost.MultiUser" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.AppResolverUX,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.Windows.CapturePicker" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,Microsoft.XboxGameCallableUI" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Xbox.TCUI,Microsoft.XboxGameOverlay,Microsoft.XboxIdentityProvider,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit,NcsiUwpApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,MixedRealityLearning,RoomAdjustment,WhatsNew,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.AAD.BrokerPlugin" echo == Maximal removed SysUWPs goto RemoveDone ) :EdgeUWP echo.%RemoveSysUWP%|findstr /C:"overkill" >nul 2>&1 if not errorlevel 1 ( set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.WindowsCamera,Microsoft.Windows.PPISkype,Microsoft.MicrosoftTeamsforSurfaceHub,Windows.ContactSupport,ParentalControls,Windows.CBSPreview" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.CloudExperienceHost.TestApp,Microsoft.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost,Microsoft.Windows.CloudExperienceHost.MultiUser" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.AccountsControl,Microsoft.AsyncTextService,Microsoft.BioEnrollment,microsoft.creddialoghost,Microsoft.ECApp,Microsoft.LockApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.MicrosoftEdge,Microsoft.MicrosoftEdgeDevToolsClient,Microsoft.Windows.AddSuggestedFoldersToLibraryDialog,Microsoft.Windows.AppRep.ChxApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.AppResolverUX,Microsoft.Windows.AssignedAccessLockApp,Microsoft.Windows.CallingShellApp,Microsoft.Windows.CapturePicker" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.ContentDeliveryManager,microsoft.windows.narratorquickstart,Microsoft.Windows.OOBENetworkCaptivePortal,Microsoft.Windows.OOBENetworkConnectionFlow" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Windows.PeopleExperienceHost,Microsoft.Windows.PinningConfirmationDialog,Microsoft.Windows.SecureAssessmentBrowser,Microsoft.XboxGameCallableUI" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.Xbox.TCUI,Microsoft.XboxGameOverlay,Microsoft.XboxIdentityProvider,MicrosoftWindows.Client.CBS,MicrosoftWindows.UndockedDevKit,NcsiUwpApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,MixedRealityLearning,RoomAdjustment,WhatsNew,Microsoft.MicrosoftOfficeHub,Microsoft.Office.OneNote,Microsoft.AAD.BrokerPlugin,Microsoft.Windows.Cortana" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,Microsoft.HoloLensSetupSideload,Microsoft.HoloLensSetup,Microsoft.HoloLensTips,holoitemplayerapp,HoloCamera,HoloItemPlayerApp" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,HoloShell,Microsoft.Windows.HolographicFirstRun,Microsoft.PPIProjection,EnvironmentsApp,Microsoft.Windows.ShellExperienceHost" set "RemoveSystemUWPapps=%RemoveSystemUWPapps%,SignInApp,ViewCalibrationApp,passthrough,InputApp,Microsoft.StorePurchaseApp,Microsoft.Windows.SecHealthUI,microsoft.windowscommunicationsapps" echo == Overkill removed SysUWPs goto RemoveDone ) echo.%RemoveSysUWP%|findstr /C:"none" >nul 2>&1 if not errorlevel 1 ( set RemoveSystemUWPapps= echo == None removed SysUWPs goto RemoveDone ) :RemoveDone echo RemoveSysUWPsection=%RemoveSysUWP% && for %%y in (%RemoveSystemUWPapps%) do (echo %%y) pause ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::By default UWP apps are only removed from the Registry, leaving files on the disk::: ::::thus possibly preventing their reinstallations by futere Windows updates.::::::::::: ::::This setting causes system UWP apps to be also removed from the disk.::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: set RemoveSysUWPfromDisk=0 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if "%MaximumSlimdown%"=="2" set RemoveSysUWPfromDisk=1 if "%RemoveSysUWPfromDisk%"=="0" ( set RemoveSystemUWPappsAlsoFromDisk=0 echo == Don't remove SysUWP's from Disk ) if "%RemoveSysUWPfromDisk%"=="1" ( set RemoveSystemUWPappsAlsoFromDisk=1 echo == Remove SysUWP's from Disk ) pause ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::Option for disabling permisions for system UWP apps::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::eg. if you want to prevent system UWP apps from accessing cellular data, WiFi data, microphone and/or camera:::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: set PermissionSysUWP=default ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if "%MaximumSlimdown%"=="1" set PermissionSysUWP=default if "%MaximumSlimdown%"=="2" set PermissionSysUWP=disabled echo.%PermissionSysUWP%|findstr /C:"custom" >nul 2>&1 && goto skipSysPerm || echo. if not "%EnableStore%"=="1" set PermissionSysUWP=default if not "%EnableXBox%"=="1" set PermissionSysUWP=default if "%KeepEdge%"=="0" set PermissionSysUWP=default if "%KeepPhone%"=="1" set PermissionSysUWP=default :skipSysPerm ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ======================================================================================================== :: ------------ If you wish to disable your own set of Permissions from the System UWP Apps ------------ :: :: ------------------------------------- here is the place for ----------------------------------------- :: :: ======================================================================================================== :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: echo.%PermissionSysUWP%|findstr /C:"custom" >nul 2>&1 && set DisableSysUWPpermissions=microphone,webcam && echo == Permissions for SysUWPs Custom || echo. ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== echo.%PermissionSysUWP%|findstr /C:"default" >nul 2>&1 && set DisableSysUWPpermissions= && echo == Permissions for SysUWPs not disabled || echo. echo.%PermissionSysUWP%|findstr /C:"disabled" >nul 2>&1 && set DisableSysUWPpermissions=cellularData,wifiData,microphone,webcam && echo == Permissions for SysUWPs disabled || echo. echo SysUWPPermissionsection=%PermissionSysUWP% && for %%s in (%DisableSysUWPpermissions%) do (echo %%s) pause :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::Option for disabling most permisions for UWP apps::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: set DisablePermission=maximal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== if "%MaximumSlimdown%"=="1" set DisablePermission=default if "%MaximumSlimdown%"=="1" echo DisablePermission=%DisablePermission% cause MaximumSlimdown=%MaximumSlimdown% && goto PermSkip if "%MaximumSlimdown%"=="2" set DisablePermission=maximal if "%MaximumSlimdown%"=="2" set DisablePermission=%DisablePermission% cause MaximumSlimdown=%MaximumSlimdown% && goto PermSkip echo.%DisablePermission%|findstr /C:"none" >nul 2>&1 && goto FoundSkip || echo. echo.%DisablePermission%|findstr /C:"custom" >nul 2>&1 && goto FoundSkip || echo. if not "%EnableXBox%"=="1" set DisablePermission=minimal if not "%EnableXBox%"=="1" echo DisablePermission=%DisablePermission% cause EnableXBox=%EnableXBox% if not "%EnableStore%"=="1" set DisablePermission=minimal if not "%EnableStore%"=="1" echo DisablePermission=%DisablePermission% cause EnableStore=%EnableStore% :Foundkip ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: ======================================================================================================== :: ------------ If you wish to disable your own set of Permissions from the Users UWP Apps ------------- :: :: ------------------------------------- here is the place for ----------------------------------------- :: :: ======================================================================================================== :: Default line is the following ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: set DisableUWPpermissions=activity,appDiagnostics,appointments,bluetooth,bluetoothSync,cellularData,chat,contacts,gazeInput,microphone,phoneCall,phoneCallHistory,radios,sensors.custom,serialCommunication,usb,userAccountInformation,userDataTasks,webcam,wifiData,wiFiDirect:::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::Some permissions are also added to the registry tweaks listed below, in their appropriate subsections, eg. Windows Mail, Location, etc.::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: echo.%DisablePermission%|findstr /C:"custom" >nul 2>&1 if not errorlevel 1 ( set DisableUWPpermissions=bluetooth,bluetoothSync,cellularData,gazeInput,phoneCall,phoneCallHistory,radios,serialCommunication,wifiData,wiFiDirect && echo == Custom disabled User UWP permissions ) else ( goto nextPerm0 ) ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== ::: Disable permisions for UWP apps ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :nextPerm0 echo.%DisablePermission%|findstr /C:"minimal" >nul 2>&1 if not errorlevel 1 ( if "%KeepPhone%"=="1" set DisableUWPpermissions=gazeInput,radios,serialCommunication && echo == MinimalPhone disabled User UWP permissions && goto UWPPERMDone ) else ( set DisableUWPpermissions=cellularData,gazeInput,phoneCall,phoneCallHistory,radios,serialCommunication,wifiData,wiFiDirect && echo == Minimal disabled User UWP permissions && goto UWPPERMDone ) echo.%DisablePermission%|findstr /C:"default" >nul 2>&1 if not errorlevel 1 ( if "%KeepPhone%"=="1" set DisableUWPpermissions=activity,appDiagnostics,appointments,chat,gazeInput,microphone,radios,sensors.custom,serialCommunication,userAccountInformation,userDataTasks,webcam && echo == DefaultPhone disabled User UWP permissions && goto UWPPERMDone ) else ( set DisableUWPpermissions=activity,appDiagnostics,appointments,bluetooth,bluetoothSync,cellularData,chat,contacts,gazeInput,microphone,phoneCall,phoneCallHistory,radios,sensors.custom,serialCommunication,usb,userAccountInformation,userDataTasks,webcam,wifiData,wiFiDirect && echo == Default disabled User UWP permissions && goto UWPPERMDone ) echo.%DisablePermission%|findstr /C:"maximal" >nul 2>&1 if not errorlevel 1 ( if "%KeepPhone%"=="1" set DisableUWPpermissions=activity,appDiagnostics,appointments,chat,documentsLibrary,gazeInput,microphone,picturesLibrary,radios,sensors.custom,serialCommunication,userAccountInformation,userDataTasks,videosLibrary,webcam && echo == Maximal disabled User UWP permissions && goto UWPPERMDone ) else ( set DisableUWPpermissions=activity,appDiagnostics,appointments,bluetooth,bluetoothSync,cellularData,chat,contacts,documentsLibrary,gazeInput,microphone,phoneCall,phoneCallHistory,picturesLibrary,radios,sensors.custom,serialCommunication,usb,userAccountInformation,userDataTasks,videosLibrary,webcam,wifiData,wiFiDirect && echo == Maximal disabled User UWP permissions && goto UWPPERMDone ) echo.%DisablePermission%|findstr /C:"overkill" >nul 2>&1 if not errorlevel 1 ( set DisableUWPpermissions=activity,appDiagnostics,appointments,bluetooth,bluetoothSync,broadFileSystemAccess,cellularData,chat,contacts,documentsLibrary,email,gazeInput,location,microphone,phoneCall,phoneCallHistory,picturesLibrary,radios,sensors.custom,serialCommunication,usb,userAccountInformation,userDataTasks,userNotificationListener,videosLibrary,webcam,wifiData,wiFiDirect && echo == Overkill disabled User UWP permissions && goto UWPPERMDone ) else ( goto nextPerm1 ) :nextPerm1 echo.%DisablePermission%|findstr /C:"none" >nul 2>&1 if not errorlevel 1 ( set DisableUWPpermissions= ) else ( goto UWPPERMDone ) :UWPPERMDone echo Permissionsection=%DisablePermission% && for %%p in (%DisableUWPpermissions%) do (echo %%p) pause ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::Option for disabling trackers/loggers:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::Some trackers are also added to the list below in their appropriate subsections, eg. Windows Defender::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: set DisableTrack=maximal ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== echo.%DisableTrack%|findstr /C:"custom" >nul 2>&1 && goto CustTrack echo.%DisableTrack%|findstr /C:"none" >nul 2>&1 && goto NoneTrack if "%DisableTroubleshooters%"=="0" set DisableTrack=minimal if "%DisableTroubleshooters%"=="0" echo DisableTrack=%DisableTrack% cause DisableTroubleshooters=%DisableTroubleshooters% if "%EnableStore%"=="3" set DisableTrack=minimal if "%EnableStore%"=="3" echo DisableTrack=%DisableTrack% cause EnableStore=%EnableStore% if "%EnableStore%"=="2" set DisableTrack=default if "%EnableStore%"=="2" echo DisableTrack=%DisableTrack% cause EnableStore=%EnableStore% if not "%MaximumSlimdown%"=="0" set DisableTrack=maximal if not "%MaximumSlimdown%"=="0" echo DisableTrack=%DisableTrack% cause MaximumSlimdown=%MaximumSlimdown% ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =====================================================================::::::::::::::::::::::::::::::::::: :: ------- If you wish your own set of Trackers to be removed --------- ::::::::::::::::::::::::::::::::::: :: -------------------- edit the following Option --------------------- ::::::::::::::::::::::::::::::::::: :: =====================================================================:::::::::::::::::::::::::::::::::::::::::::::::::::: :::Some trackers are also added to the registry tweaks, listed below, in their appropriate subsections, eg. Windows Defender::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :CustTrack echo.%DisableTrack%|findstr /C:"custom" >nul 2>&1 if not errorlevel 1 ( set DisableTrackers="AutoLogger-Diagtrack-Listener","CloudExperienceHostOobe","Diagtrack-Listener","LwtNetLog","Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace","RadioMgr","ReadyBoot","SQMLogger","UBPM","WdiContextLog","WiFiSession","WFP-IPsec Trace" ) else ( goto tracknext0 ) :tracknext0 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: =================================================== :: ------------ Don't edit this !!!!! ------------- :: :: =================================================== :::Disable the following trackers/loggers:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: echo.%DisableTrack%|findstr /C:"default" >nul 2>&1 if not errorlevel 1 ( set DisableTrackers="AutoLogger-Diagtrack-Listener","Circular Kernel Context Logger","DiagLog","Diagtrack-Listener","LwtNetLog","Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace","NetCore","NtfsLog","RadioMgr","ReadyBoot","SQMLogger","UBPM","WdiContextLog","WiFiSession" ) else ( goto tracknext1 ) :tracknext1 echo.%DisableTrack%|findstr /C:"maximal" >nul 2>&1 if not errorlevel 1 ( set DisableTrackers="AutoLogger-Diagtrack-Listener","Circular Kernel Context Logger","CloudExperienceHostOobe","DiagLog","Diagtrack-Listener","LwtNetLog","Microsoft-Windows-Rdp-Graphics-RdpIdd-Trace","NetCore","NtfsLog","RadioMgr","ReadyBoot","SQMLogger","UBPM","WdiContextLog","WFP-IPsec Trace","WiFiSession" ) else ( goto tracknext2 ) :tracknext2 echo.%DisableTrack%|findstr /C:"minimal" >nul 2>&1 if not errorlevel 1 ( set DisableTrackers="AutoLogger-Diagtrack-Listener","Diagtrack-Listener","RadioMgr","SQMLogger" ) else ( goto NoneTrack ) :NoneTrack echo.%DisableTrack%|findstr /C:"none" >nul 2>&1 if not errorlevel 1 ( set DisableTrackers= ) echo Trackersection=%DisableTrack% && for %%t in (%DisableTrackers%) do (echo %%t) pause :: ------------- End of Advanved Configuration Section -------------------------------------------------------- The commands should be OK now. There are for sure better ways to achieve what I want, but like I told before I have absolutely no knowledge in scripting. And sadly my English is not good enough, cause when I read over many Tutorials I got often more confused then enlightened. Maybe someone is willing to help me and show me a better way or what's wrong? Any help is welcome! The rest of my modifications in the script work now mostly well. Edit: I've done it! The configuration section works fine now. Now I have to test, with different settings applied, if the final ISO is usable. Greetings...
Wow wkeller is this ever handsome work; I've tried every slimming utility and kludged distro out the, and this one not only worked with everything, it was one of the most performant (I benchmark everything). I applied this to Microsoft's Windows 10 Pro for Workstations 22H2 from the MSDN business editions March ISO because this used to offer some minor kernel differences that helped performance on some hardware -- you're script worked without a hitch. I also turned off all the performance counters with Microsoft's ECL tool, and disable a few more services like the Event Log which reduces disk i/o and another source of telemetry leaks... It would be nice at some point to concatenate some of the post install scripts here on MDL into an attractive command line menu system, and just get ride of a lot of Microsoft's junk pile of disparate interfaces. For a lot of use cases one could ditch Explorer and have a very clean command line shell interface, with some well put together menu scripts and prompts to run a much leaner, more private, secure and performant OS for anything from gaming to general computing. Thanks You Muchly For All The Work!
there are 2 errors during script is running: 1 "access is denied" error shows up 2 times when applying remaining settings. I can handle it by removing one by one (11 settings only ) for example "Disable Automatic Update of root certificates" etc I guess. 2 error 15610 when trying to remove desktopappinstaller and sechealthui packages. details from log: Failed to uninstall because policy prevents the removal of this package - CAppxManager::RemoveAllUserAppx(hr:0x80073cfa)
1. These are Windows Update related updates (ie Windows Update engine) not updates for operating systems. So they are not critical, and when you do not use Windows Update service at all, they are redundant. 2. There is no way to integrate (no official standalone package) such updates to Win 10 22H2 without resorting to ugly hacking, which I have been always trying to avoid. 3. They are small, so installing then through WU is not an issue.
I cannot say you anything, because I have not experienced such error. All I can do is guessing. But DISM is known to be fragile and host operating system can disrupt it from functioning in many ways.
as for 1: there is no "access is denied" error after removing 2 settings: "enable classic win32 calculator" and "enable support for classic hlp help files" as for 2: i confirm that in 1904x host everything is ok. this is what i've done - download february 2023 english iso of win11 and svf package for my language which is polish on 1904x host in script: a) delete 2 settings: "enable classic win32 calculator" and "enable support for classic hlp help files" b) turn off integrating updates c) replace "10" with "11" in section "REM Check Windows images"
From me - thanks for the new version. Just yesterday I installed via version 1.3.0 Windows 10 Education 22H2. How can I get all the new features of the new version 1.3.1 and update them at my place with Windows 10 installed less than a day old?