Last active
May 29, 2024 08:13
-
-
Save zaufi/9c108be2086322e6c0866695df798e9a to your computer and use it in GitHub Desktop.
Some tips to minimize "Windows 10 Enterprise 2016 LTSB N (x64)" installation to be used for continuous integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable | |
schtasks /Change /TN "Microsoft\Windows\ApplicationData\CleanupTemporaryState" /Disable | |
schtasks /Change /TN "Microsoft\Windows\ApplicationData\DsSvcCleanup" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable | |
schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Defrag\ScheduledDefrag" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Diagnosis\Scheduled" /Disable | |
schtasks /Change /TN "Microsoft\Windows\DiskCleanup\SilentCleanup" /Disable | |
schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable | |
schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable | |
schtasks /Change /TN "Microsoft\Windows\DiskFootprint\StorageSense" /Disable | |
schtasks /Change /TN "Microsoft\Windows\ErrorDetails\EnableErrorDetailsUpdate" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClient" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" /Disable | |
schtasks /Change /TN "Microsoft\Windows\File Classification Infrastructure\Property Definition Sync" /Disable | |
schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Management\Provisioning\Logon" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Maps\MapsToastTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Maps\MapsUpdateTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Mobile Broadband Accounts\MNO Metadata Parser" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Multimedia\SystemSoundsService" /Disable | |
schtasks /Change /TN "Microsoft\Windows\NetCfg\BindingWorkItemQueueHandler" /Disable | |
schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable | |
schtasks /Change /TN "Microsoft\Windows\NlaSvc\WiFiTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Offline Files\Background Synchronization" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Offline Files\Logon Synchronization" /Disable | |
schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Ras\MobilityManager" /Disable | |
schtasks /Change /TN "Microsoft\Windows\RemoteAssistance\RemoteAssistanceTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\RetailDemo\CleanupOfflineContent" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Servicing\StartComponentCleanup" /Disable | |
schtasks /Change /TN "Microsoft\Windows\SettingSync\BackupTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\SettingSync\NetworkStateChangeTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Setup\SetupCleanupTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Shell\IndexerAutomaticMaintenance" /Disable | |
schtasks /Change /TN "Microsoft\Windows\SpacePort\SpaceAgentTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\SpacePort\SpaceManagerTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Speech\SpeechModelDownloadTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\TextServicesFramework\MsCtfMonitor" /Disable | |
schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-HASCertRetr" /Disable | |
schtasks /Change /TN "Microsoft\Windows\TPM\Tpm-Maintenance" /Disable | |
schtasks /Change /TN "Microsoft\Windows\User Profile Service\HiveUploadTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\WCM\WiFiTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Windows Filtering Platform\BfeOnServiceStartTypeChange" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Windows Media Sharing\UpdateLibrary" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Wininet\CacheTask" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Work Folders\Work Folders Logon Synchronization" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Work Folders\Work Folders Maintenance Work" /Disable | |
schtasks /Change /TN "Microsoft\Windows\Workplace Join\Automatic-Device-Join" /Disable | |
schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTask" /Disable | |
schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTaskLogon" /Disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Disable useless features | |
Dism.exe /Online /Disable-Feature /FeatureName:Internet-Explorer-Optional-amd64 /Remove /NoRestart | |
Dism.exe /Online /Disable-Feature /FeatureName:Microsoft-Windows-Client-EmbeddedExp-Package /Remove /NoRestart | |
Dism.exe /Online /Disable-Feature /FeatureName:Microsoft-Windows-Printing-XPSServices-Package /Remove /NoRestart | |
Dism.exe /Online /Disable-Feature /FeatureName:Microsoft-Windows-Printing-PrintToPDFServices-Package /Remove /NoRestart | |
Dism.exe /Online /Disable-Feature /FeatureName:Microsoft-Hyper-V-Common-Drivers-Package /Remove /NoRestart | |
Dism.exe /Online /Disable-Feature /FeatureName:Microsoft-Hyper-V-Guest-Integration-Drivers-Package /Remove /NoRestart | |
Dism.exe /online /Disable-Feature /FeatureName:SearchEngine-Client-Package /Remove /NoRestart | |
rem Remove unnecessary packages | |
Dism.exe /Online /Remove-Package /PackageName:Microsoft-Windows-ContactSupport-Package~31bf3856ad364e35~amd64~~10.0.14393.0 /NoRestart | |
Dism.exe /Online /Remove-Package /PackageName:Microsoft-OneCore-DeveloperMode-Desktop-Package~31bf3856ad364e35~amd64~~10.0.14393.0 /NoRestart | |
Dism.exe /Online /Remove-Package /PackageName:Microsoft-Windows-LanguageFeatures-Handwriting-en-us-Package~31bf3856ad364e35~amd64~~10.0.14393.0 /NoRestart | |
Dism.exe /Online /Remove-Package /PackageName:Microsoft-Windows-LanguageFeatures-OCR-en-us-Package~31bf3856ad364e35~amd64~~10.0.14393.0 /NoRestart | |
Dism.exe /Online /Remove-Package /PackageName:Microsoft-Windows-LanguageFeatures-Speech-en-us-Package~31bf3856ad364e35~amd64~~10.0.14393.0 /NoRestart | |
Dism.exe /Online /Remove-Package /PackageName:Microsoft-Windows-LanguageFeatures-TextToSpeech-en-us-Package~31bf3856ad364e35~amd64~~10.0.14393.0 /NoRestart | |
Dism.exe /Online /Remove-Package /PackageName:Microsoft-Windows-QuickAssist-Package~31bf3856ad364e35~amd64~~10.0.14393.0 /NoRestart | |
rem Cleanup | |
Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore | |
Dism.exe /Online /Cleanup-Image /StartComponentCleanup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment