100% found this document useful (1 vote)
492 views

Script Optimizare Windows 10

This document provides commands to disable Windows services, scheduled tasks, and telemetry to improve privacy and security. It stops and disables over 50 services, disables over 20 scheduled tasks related to diagnostics, telemetry and updates, and removes registry keys related to advertising, data collection and sharing. It also removes several built-in Windows apps.

Uploaded by

Ionut Patelea
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
492 views

Script Optimizare Windows 10

This document provides commands to disable Windows services, scheduled tasks, and telemetry to improve privacy and security. It stops and disables over 50 services, disables over 20 scheduled tasks related to diagnostics, telemetry and updates, and removes registry keys related to advertising, data collection and sharing. It also removes several built-in Windows apps.

Uploaded by

Ionut Patelea
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

@rem *** Disable Some Service ***

sc.exe stop DiagTrack


sc.exe stop diagnosticshub.standardcollector.service
sc.exe stop dmwappushservice
sc.exe stop WMPNetworkSvc
REM sc.exe stop WSearch

sc.exe config DiagTrack start= disabled


sc.exe config diagnosticshub.standardcollector.service start= disabled
sc.exe config dmwappushservice start= disabled
REM sc.exe config RemoteRegistry start= disabled
REM sc.exe config TrkWks start= disabled
sc.exe config WMPNetworkSvc start= disabled
REM sc.exe config WSearch start= disabled
REM sc.exe config SysMain start= disabled

REM *** SCHEDULED TASKS tweaks ***


REM schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /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\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\Customer Experience Improvement
Program\Uploader" /Disable
schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Disable
schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Disable
schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Disable
schtasks /Change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /Disable

REM schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable


REM schtasks /Change /TN
"Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
REM schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-
DiskDiagnosticDataCollector" /Disable
REM schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable ***
Not sure if should be disabled, maybe related to S.M.A.R.T.
REM schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance
mode)" /Disable
REM schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
REM schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
REM schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
REM The stubborn task Microsoft\Windows\SettingSync\BackgroundUploadTask can be
Disabled using a simple bit change. I use a REG file for that (attached to this
post).
REM schtasks /Change /TN "Microsoft\Windows\Time
Synchronization\ForceSynchronizeTime" /Disable
REM schtasks /Change /TN "Microsoft\Windows\Time
Synchronization\SynchronizeTime" /Disable
REM schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting"
/Disable
REM schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update"
/Disable

@rem *** Remove Telemetry & Data Collection ***


reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v
PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v
"AllowTelemetry" /t REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD
/d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t
REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t
REG_DWORD /d 0 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t
REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v
"AllowTelemetry" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-
Listener" /v "Start" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start"
/t REG_DWORD /d 0 /f

@REM Settings -> Privacy -> General -> Let apps use my advertising ID...
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled
/t REG_DWORD /d 0 /f
REM - SmartScreen Filter for Store Apps: Disable
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v
EnableWebContentEvaluation /t REG_DWORD /d 0 /f
REM - Let websites provide locally...
reg add "HKCU\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut
/t REG_DWORD /d 1 /f

@REM WiFi Sense: HotSpot Sharing: Disable


reg add
"HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v
value /t REG_DWORD /d 0 /f
@REM WiFi Sense: Shared HotSpot Auto-Connect: Disable
reg add
"HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHots
pots" /v value /t REG_DWORD /d 0 /f

@REM Change Windows Updates to "Notify to schedule restart"


REM reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v UxOption /t
REG_DWORD /d 1 /f
@REM Disable P2P Update downlods outside of local network
REM reg add
"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v
DODownloadMode /t REG_DWORD /d 0 /f

REM *** Hide the search box from taskbar. You can still search by pressing the Win
key and start typing what you're looking for ***
REM 0 = hide completely, 1 = show only icon, 2 = show long search box
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v
"SearchboxTaskbarMode" /t REG_DWORD /d 0 /f

REM *** Disable MRU lists (jump lists) of XAML apps in Start Menu ***
reg add
"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v
"Start_TrackDocs" /t REG_DWORD /d 0 /f

REM *** Set Windows Explorer to start on This PC instead of Quick Access ***
REM 1 = This PC, 2 = Quick access
REM reg add
"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v
"LaunchTo" /t REG_DWORD /d 1 /f

REM services

ECHO CHANGING Adobe Acrobat Update Service


sc.exe config AdobeARMservice start= Disabled

ECHO CHANGING AllJoyn Router Service


sc.exe config AJRouter start= Disabled

ECHO CHANGING Application Layer Gateway Service


sc.exe config ALG start= Disabled

ECHO CHANGING BitLocker Drive Encryption Service


sc.exe config BDESVC start= Disabled

ECHO CHANGING Bluetooth Audio Gateway


sc.exe config BTAGService start= Disabled

ECHO CHANGING Bluetooth Support Service


sc.exe config bthserv start= Disabled

ECHO CHANGING Downloaded Maps Manager Service


sc.exe config MapsBroker start= Disabled

ECHO CHANGING Fax Service


sc.exe config Fax start= Disabled

ECHO CHANGING Geolocation Service


sc.exe config lfsvc start= Disabled

ECHO CHANGING Hyper-V Data Exchange Service


sc.exe config vmickvpexchange start= Disabled

ECHO CHANGING Hyper-V Guest Service Interface


sc.exe config vmicguestinterface start= Disabled

ECHO CHANGING Hyper-V Guest Shutdown Service


sc.exe config vmicshutdown start= Disabled

ECHO CHANGING Hyper-V Heartbeat Service


sc.exe config vmicheartbeat start= Disabled

ECHO CHANGING Hyper-V PowerShell Direct Service


sc.exe config vmicvmsession start= Disabled

ECHO CHANGING Hyper-V Remote Desktop Virtualization Service


sc.exe config vmicrdv start= Disabled

ECHO CHANGING Hyper-V Time Synchronization Service


sc.exe config vmictimesync start= Disabled

ECHO CHANGING Hyper-V Volume Shadow Copy Requestor


sc.exe config vmicvss start= Disabled

ECHO CHANGING Infrared monitor service


sc.exe config irmon start= Disabled

ECHO CHANGING Internet Connection Sharing (ICS) service


sc.exe config SharedAccess start= Disabled

REM ECHO CHANGING IP Helper


REM sc.exe config iphlpsvc= Disabled

REM ECHO CHANGING IP Translation Configuration Service


REM sc.exe config IpxlatCfgSvc start= Disabled

ECHO CHANGING Microsoft App-V Client


sc.exe config AppVClient start= Disabled

ECHO CHANGING Microsoft Windows SMS Router Service


sc.exe config SmsRouter start= Disabled

ECHO CHANGING Natural Authentication


sc.exe config NaturalAuthentication start= Disabled

ECHO CHANGING Offline Files


sc.exe config CscService start= Disabled

ECHO CHANGING Parental Controls


sc.exe config WpcMonSvc start= Disabled

ECHO CHANGING Payments and NFC/SE Manager


sc.exe config SEMgrSvc start= Disabled

ECHO CHANGING Phone Service


sc.exe config PhoneSvc start= Disabled

ECHO CHANGING Remote Procedure Call (RPC) Locator


sc.exe config RpcLocator start= Disabled

ECHO CHANGING Retail Demo Service


sc.exe config RetailDemo start= Disabled

ECHO CHANGING Routing and Remote Access


sc.exe config RemoteAccess start= Disabled

ECHO CHANGING SNMP Trap


sc.exe config SNMPTRAP start= Disabled

ECHO CHANGING WebClient


sc.exe config WebClient start= Disabled

ECHO CHANGING Windows Biometric Service


sc.exe config WbioSrvc start= Disabled

ECHO CHANGING Windows Camera Frame Server


sc.exe config FrameServer start= Disabled
ECHO CHANGING Windows Insider Service
sc.exe config wisvc start= Disabled

ECHO CHANGING Windows Mobile Hotspot Service


sc.exe config icssvc start= Disabled

ECHO CHANGING Windows Remote Management (WS-Management)


sc.exe config WinRM start= Disabled

ECHO CHANGING WWAN AutoConfig


sc.exe config WwanSvc start= Disabled

ECHO CHANGING Xbox Accessory Management Service


sc.exe config XboxGipSvc start= Disabled

ECHO CHANGING Xbox Live Auth Manager


sc.exe config XblAuthManager start= Disabled

ECHO CHANGING Xbox Live Game Save


sc.exe config XblGameSave start= Disabled

ECHO CHANGING XboxNetApiSvc


sc.exe config XboxNetApiSvc start= Disabled
@rem Remove Apps
PowerShell -Command "Get-AppxPackage *3DBuilder* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Getstarted* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsCamera* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *bing* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *MicrosoftOfficeHub* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *onenote* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *people* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsPhone* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *photos* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *SkypeApp* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *solit* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsSoundRecorder* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *windowscommunicationsapps* | Remove-
AppxPackage"
PowerShell -Command "Get-AppxPackage *zune* | Remove-AppxPackage"
REM PowerShell -Command "Get-AppxPackage *WindowsCalculator* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *WindowsMaps* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Sway* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *CommsPhone* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Microsoft.Messaging* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *holographic* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Facebook* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Twitter* | Remove-AppxPackage"
PowerShell -Command "Get-AppxPackage *Drawboard PDF* | Remove-
AppxPackage"powershelkl"get

@rem NOW JUST SOME TWEAKS


REM *** Show hidden files in Explorer ***
REM reg add
"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v
"Hidden" /t REG_DWORD /d 1 /f
REM *** Show super hidden system files in Explorer ***
REM reg add
"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v
"ShowSuperHidden" /t REG_DWORD /d 1 /f

REM *** Show file extensions in Explorer ***


reg add
"HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v
"HideFileExt" /t REG_DWORD /d 0 /f

REM *** Uninstall OneDrive ***


start /wait "" "%SYSTEMROOT%\SYSWOW64\ONEDRIVESETUP.EXE" /UNINSTALL
rd C:\OneDriveTemp /Q /S >NUL 2>&1
rd "%USERPROFILE%\OneDrive" /Q /S >NUL 2>&1
rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S >NUL 2>&1
rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S >NUL 2>&1
reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-
224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
reg add "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-
224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
echo OneDrive has been removed. Windows Explorer needs to be restarted.
pause
start /wait TASKKILL /F /IM explorer.exe
start explorer.exe

You might also like