forked from prclaunchky/Windows-10-Super-Minimal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RemoveServices.bat
89 lines (66 loc) · 1.56 KB
/
RemoveServices.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@echo off
net user administrator /active:yes
echo.
echo "Removing Remote Desktop"
echo.
sc delete SessionEnv
sc stop SessionEnv
sc delete TermService
sc stop TermService
sc delete UmRdpService
sc stop UmRdpService
echo.
echo "Removing Remote Registry"
echo.
sc delete RemoteRegistry
sc stop RemoteRegistry
echo.
echo "Removing Connection Manager"
echo.
sc delete Rasman
sc stop Rasman
echo.
echo "Removing Automatic Connection Manager"
echo.
sc delete RasAuto
sc delete RmSvc
echo.
echo ".. Taking Ownership of RDConnection and deleting its driver so service will uninstall"
echo.
takeown /f C:\Windows\System32\termsrv.dll
cacls termsrv.dll /E /P %username%:F
del C:\Windows\System32\termsrv.dll
echo.
echo ".. Taking Ownership of RDManager and deleting its driver so service will uninstall"
echo.
takeown /f C:\Windows\System32\termmgr.dll
cacls termmgr.dll /E /P %username%:F
del C:\Windows\System32\termmgr.dll
echo.
echo "Deleting Connected Devices Platform Service"
sc delete CDPSvc
sc stop CDPSvc
echo.
echo "Deleting Connected Devices Platform User Service"
sc delete CDPUserSvc
sc stop CDPUsersvc
echo.
echo "Deleting Connected User Experiences and Telemetry"
sc delete DiagTrack
sc stop DiagTrack
echo.
echo "Deleting Contact Service"
sc delete PimIndexMaintenanceSvc
sc stop PimIndexMaintenanceSvc
echo.
echo "Disabling Diagnostic Services, Deleting it is Impossibuhhhh"
sc config DPS start= disabled
sc stop DPS
echo.
sc config WdiServiceHost start= disabled
sc stop WdiServiceHost
echo.
sc config WdiSystemHost start= disabled
sc stop WdiSystemHost
echo.
pause