netsh advfirewall firewall add rule name="Chặn Microsoft theo dõi" dir=out action=block remoteip=13.64.90.137,13.66.56.243,13.68.31.193,13.68.82.8,13.68.92.143,13.68.233.9,13.69.109.130,13.69.109.131,13.69.131.175,13.73.26.107,13.74.169.109,13.78.130.220,13.78.232.226,13.78.233.133,13.88.21.125,13.92.194.212,13.104.215.69,13.105.28.32,13.105.28.48,20.44.86.43,20.49.150.241,20.54.232.160,20.60.20.4,20.69.137.228,20.190.169.24,20.190.169.25,23.99.49.121,23.102.4.253,23.102.5.5,23.102.21.4,23.103.182.126,40.68.222.212,40.69.153.67,40.70.184.83,40.70.220.248,40.77.228.47,40.77.228.87,40.77.228.92,40.77.232.101,40.78.128.150,40.79.85.125,40.88.32.150,40.112.209.200,40.115.3.210,40.115.119.185,40.119.211.203,40.124.34.70,40.126.41.96,40.126.41.160,51.104.136.2,51.105.218.222,51.140.40.236,51.140.157.153,51.143.53.152,51.143.111.7,51.143.111.81,51.144.227.73,52.138.204.217,52.147.198.201,52.155.94.78,52.157.234.37,52.158.208.111,52.164.241.205,52.169.189.83,52.170.83.19,52.174.22.246,52.178.147.240,52.178.151.212,52.178.223.23,52.182.141.63,52.183.114.173,52.184.221.185,52.229.39.152,52.230.85.180,52.230.222.68,52.236.42.239,52.236.43.202,52.255.188.83,65.52.100.7,65.52.100.9,65.52.100.11,65.52.100.91,65.52.100.92,65.52.100.93,65.52.100.94,65.52.161.64,65.55.29.238,65.55.83.120,65.55.113.11,65.55.113.12,65.55.113.13,65.55.176.90,65.55.252.43,65.55.252.63,65.55.252.70,65.55.252.71,65.55.252.72,65.55.252.93,65.55.252.190,65.55.252.202,66.119.147.131,104.41.207.73,104.42.151.234,104.43.137.66,104.43.139.21,104.43.139.144,104.43.140.223,104.43.193.48,104.43.228.53,104.43.228.202,104.43.237.169,104.45.11.195,104.45.214.112,104.46.1.211,104.46.38.64,104.46.162.224,104.46.162.226,104.210.4.77,104.210.40.87,104.210.212.243,104.214.35.244,104.214.78.152,131.253.6.87,131.253.6.103,131.253.34.230,131.253.34.234,131.253.34.237,131.253.34.243,131.253.34.246,131.253.34.247,131.253.34.249,131.253.34.252,131.253.34.255,131.253.40.37,134.170.30.202,134.170.30.203,134.170.30.204,134.170.30.221,134.170.52.151,134.170.235.16,157.56.74.250,157.56.91.77,157.56.106.184,157.56.106.185,157.56.106.189,157.56.113.217,157.56.121.89,157.56.124.87,157.56.149.250,157.56.194.72,157.56.194.73,157.56.194.74,168.61.24.141,168.61.146.25,168.61.149.17,168.61.161.212,168.61.172.71,168.62.187.13,168.63.100.61,168.63.108.233,191.236.155.80,191.237.218.239,191.239.50.18,191.239.50.77,191.239.52.100,191.239.54.52,207.68.166.254 profile=any & reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" /f /t REG_DWORD /v NetworkThrottlingIndex /d 4294967295 & reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\Psched /f /t REG_DWORD /v NonBestEffortLimit /d 0 & sc stop DiagTrack & sc stop diagnosticshub.standardcollector.service & sc stop dmwappushservice & reg add HKLM\SYSTEM\CurrentControlSet\Services\DiagTrack /f /t REG_DWORD /v Start /d 4 & reg add HKLM\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service /f /t REG_DWORD /v Start /d 4 & reg add HKLM\SYSTEM\CurrentControlSet\Services\dmwappushservice /f /t REG_DWORD /v Start /d 4 & echo \Registry\machine\SYSTEM\CurrentControlSet\Services\WdiServiceHost [1 6 9 17]>%temp%\ACL.txt && regini %temp%\ACL.txt && del /s /q %temp%\ACL.txt & reg add HKLM\SYSTEM\CurrentControlSet\Services\WdiServiceHost /f /t REG_DWORD /v Start /d 4 & reg add HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots /f /v value /t REG_DWORD /d 0 & reg add HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting /f /v value /t REG_DWORD /d 0 & reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\System /f /t REG_DWORD /v PublishUserActivities /d 0 & reg add HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows /f /t REG_DWORD /v CEIPEnable /d 0 & reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat /f /t REG_DWORD /v AITEnable /d 0 & reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat /f /t REG_DWORD /v DisableInventory /d 1 & reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat /f /t REG_DWORD /v DisablePCA /d 1 & reg add HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat /f /t REG_DWORD /v DisableUAR /d 1 & reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /f /t REG_DWORD /v PreventDeviceMetadataFromNetwork /d 1 & reg add HKLM\SOFTWARE\Policies\Microsoft\MRT /f /t REG_DWORD /v DontOfferThroughWUAU /d 1 & reg add HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger /f /t REG_DWORD /v Start /d 0 & reg add HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\System /f /t REG_DWORD /v AllowExperimentation /d 0 & schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" && schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /disable & schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\BthSQM" && schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\BthSQM" /disable & schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" && schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /disable & schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" && schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /disable & schtasks /end /tn "\Microsoft\Windows\Customer Experience Improvement Program\Uploader" && schtasks /change /tn "\Microsoft\Windows\Customer Experience Improvement Program\Uploader" /disable & schtasks /end /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" && schtasks /change /tn "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable & schtasks /end /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater" && schtasks /change /tn "\Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable & schtasks /end /tn "\Microsoft\Windows\Application Experience\StartupAppTask" && schtasks /change /tn "\Microsoft\Windows\Application Experience\StartupAppTask" /disable &" schtasks /end /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" && schtasks /change /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /disable & schtasks /end /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" && schtasks /change /tn "\Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticResolver" /disable & schtasks /end /tn "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" && schtasks /change /tn "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable & schtasks /end /tn "\Microsoft\Windows\Shell\FamilySafetyMonitor" && schtasks /change /tn "\Microsoft\Windows\Shell\FamilySafetyMonitor" /disable & schtasks /end /tn "\Microsoft\Windows\Shell\FamilySafetyRefresh" && schtasks /change /tn "\Microsoft\Windows\Shell\FamilySafetyRefresh" /disable & schtasks /end /tn "\Microsoft\Windows\Shell\FamilySafetyUpload" && schtasks /change /tn "\Microsoft\Windows\Shell\FamilySafetyUpload" /disable & schtasks /end /tn "\Microsoft\Windows\Autochk\Proxy" && schtasks /change /tn "\Microsoft\Windows\Autochk\Proxy" /disable & schtasks /end /tn "\Microsoft\Windows\Maintenance\WinSAT" && schtasks /change /tn "\Microsoft\Windows\Maintenance\WinSAT" /disable & schtasks /end /tn "\Microsoft\Windows\Application Experience\AitAgent" && schtasks /change /tn "\Microsoft\Windows\Application Experience\AitAgent" /disable & schtasks /end /tn "\Microsoft\Windows\Windows Error Reporting\QueueReporting" && schtasks /change /tn "\Microsoft\Windows\Windows Error Reporting\QueueReporting" /disable & schtasks /end /tn "\Microsoft\Windows\CloudExperienceHost\CreateObjectTask" && schtasks /change /tn "\Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /disable & schtasks /end /tn "\Microsoft\Windows\DiskFootprint\Diagnostics" && schtasks /change /tn "\Microsoft\Windows\DiskFootprint\Diagnostics" /disable & schtasks /end /tn "\Microsoft\Windows\FileHistory\File History (maintenance mode)" && schtasks /change /tn "\Microsoft\Windows\FileHistory\File History (maintenance mode)" /disable & schtasks /end /tn "\Microsoft\Windows\PI\Sqm-Tasks" && schtasks /change /tn "\Microsoft\Windows\PI\Sqm-Tasks" /disable & schtasks /end /tn "\Microsoft\Windows\NetTrace\GatherNetworkInfo" && schtasks /change /tn "\Microsoft\Windows\NetTrace\GatherNetworkInfo" /disable & schtasks /end /tn "\Microsoft\Windows\AppID\SmartScreenSpecific" && schtasks /change /tn "\Microsoft\Windows\AppID\SmartScreenSpecific" /disable & schtasks /Change /TN "\Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable & schtasks /Change /TN "\Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable & schtasks /Change /TN "\Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable & schtasks /end /tn "\Microsoft\Windows\HelloFace\FODCleanupTask" && schtasks /change /tn "\Microsoft\Windows\HelloFace\FODCleanupTask" /disable & schtasks /end /tn "\Microsoft\Windows\Feedback\Siuf\DmClient" && schtasks /change /tn "\Microsoft\Windows\Feedback\Siuf\DmClient" /disable & schtasks /end /tn "\Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" && schtasks /change /tn "\Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" /disable & schtasks /end /tn "\Microsoft\Windows\Application Experience\PcaPatchDbTask" && schtasks /change /tn "\Microsoft\Windows\Application Experience\PcaPatchDbTask" /disable & schtasks /end /tn "\Microsoft\Windows\Device Information\Device" && schtasks /change /tn "\Microsoft\Windows\Device Information\Device" /disable & schtasks /end /tn "\Microsoft\Windows\Device Information\Device User" && schtasks /change /tn "\Microsoft\Windows\Device Information\Device User" /disable