浏览代码

Added code to stop the WAP push service and Diagnostics

Richard Newton 6 年之前
父节点
当前提交
f327be743d
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      Individual Scripts/Protect Privacy

+ 10 - 0
Individual Scripts/Protect Privacy

@@ -122,3 +122,13 @@
     Get-ScheduledTask  UsbCeip | Disable-ScheduledTask
     Get-ScheduledTask  UsbCeip | Disable-ScheduledTask
     Get-ScheduledTask  DmClient | Disable-ScheduledTask
     Get-ScheduledTask  DmClient | Disable-ScheduledTask
     Get-ScheduledTask  DmClientOnScenarioDownload | Disable-ScheduledTask
     Get-ScheduledTask  DmClientOnScenarioDownload | Disable-ScheduledTask
+    
+    Write-Output "Stopping and disabling WAP Push Service"
+    #Stop and disable WAP Push Service
+	Stop-Service "dmwappushservice"
+	Set-Service "dmwappushservice" -StartupType Disabled
+
+    Write-Output "Stopping and disabling Diagnostics Tracking Service"
+    #Disabling the Diagnostics Tracking Service
+	Stop-Service "DiagTrack"
+	Set-Service "DiagTrack" -StartupType Disabled