-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDelete Bloatware v26.10.2023.bat
173 lines (171 loc) · 12.1 KB
/
Delete Bloatware v26.10.2023.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
takeown /s %computername% /u %username% /f "%WinDir%\SystemApps"
takeown /s %computername% /u %username% /f "%WinDir%\System32\Broadcastdvr.exe"
takeown /s %computername% /u %username% /f "%WinDir%\System32\upfc.exe"
takeown /s %computername% /u %username% /f "%WinDir%\System32\Compatibility Telement.exe"
takeown /s %computername% /u %username% /f "%WinDir%\System32\CompPkgSrv.exe"
takeown /s %computername% /u %username% /f "%WinDir%\System32\mobsync.exe"
takeown /s %computername% /u %username% /f "%WinDir%\System32\smartscreen.exe"
takeown /s %computername% /u %username% /f "%WinDir%\System32\GameBarPresenceWriter.exe"
takeown /s %computername% /u %username% /f "%WinDir%\Windows\GameBarPresenceWriter.exe"
takeown /s %computername% /u %username% /f "%WinDir%\Program Files (x86)\Internet Explorer"
takeown /s %computername% /u %username% /f "%WinDir%\Program Files (x86)\Microsoft"
takeown /s %computername% /u %username% /f "%ProgramFiles%\WindowsApps"
takeown /s %computername% /u %username% /f "%WinDir%\Program Files\Internet Explorer"
takeown /s %computername% /u %username% /f "%WinDir%\Windows\bcastdvr"
takeown /s %computername% /u %username% /f "%WinDir%\Users\%username%\AppData\Local\Microsoft\GameDVR"
takeown /s %computername% /u %username% /f "%WinDir%\Users\%username%\AppData\Local\Microsoft\Edge"
takeown /s %computername% /u %username% /f "%WinDir%\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe"
takeown /s %computername% /u %username% /f "%WinDir%\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TextInputHost.exe
takeown /s %computername% /u %username% /f "%WinDir%\Windows\System32\oobe\UserOOBEBroker.exe"
icacls "%WinDir%\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TextInputHost.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\Broadcastdvr.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\upfc.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\Compatibility Telement.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\CompPkgSrv.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\mobsync.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\smartscreen.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\GameBarPresenceWriter.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Windows\GameBarPresenceWriter.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Program Files (x86)\Internet Explorer" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Program Files (x86)\Microsoft" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\SystemApps" /grant %username%:F administrators:F /t /c
icacls "%Program Files%\WindowsApps" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Program Files\Internet Explorer" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Windows\bcastdvr" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\GameDVR" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\Edge" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\SystemApps" /setowner "%username%" /t
icacls "%WinDir%\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe" /setowner "%username%" /t
icacls "%WinDir%\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TextInputHost.exe" /setowner "%username%" /t
icacls "%WinDir%\System32\Broadcastdvr.exe" /setowner "%username%" /t
icacls "%WinDir%\System32\upfc.exe" /setowner "%username%" /t
icacls "%WinDir%\System32\Compatibility Telement.exe" /setowner "%username%" /t
icacls "%WinDir%\System32\CompPkgSrv.exe" /setowner "%username%" /t
icacls "%WinDir%\System32\mobsync.exe" /setowner "%username%" /t
icacls "%WinDir%\System32\smartscreen.exe" /setowner "%username%" /t
icacls "%WinDir%\System32\GameBarPresenceWriter.exe" /setowner "%username%" /t
icacls "%WinDir%\Windows\GameBarPresenceWriter.exe" /setowner "%username%" /t
icacls "%WinDir%\Program Files (x86)\Internet Explorer" /setowner "%username%" /t
icacls "%WinDir%\Program Files (x86)\Microsoft" /setowner "%username%" /t
icacls "%Program Files%\WindowsApps" /setowner "%username%" /t
icacls "%WinDir%\Program Files\Internet Explorer" /setowner "%username%" /t
icacls "%WinDir%\Windows\bcastdvr" /setowner "%username%" /t
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\GameDVR" /setowner "%username%" /t
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\Edge" /setowner "%username%" /t
icacls "%WinDir%\Windows\System32\oobe\UserOOBEBroker.exe" /setowner "%username%" /t
icacls "%WinDir%\Windows\SystemApps\ShellExperienceHost_cw5n1h2txyewy\ShellExperienceHost.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TextInputHost.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\Broadcastdvr.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\upfc.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\Compatibility Telement.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\CompPkgSrv.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\mobsync.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\smartscreen.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\GameBarPresenceWriter.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Windows\GameBarPresenceWriter.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Program Files (x86)\Internet Explorer" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Program Files (x86)\Microsoft" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\SystemApps" /grant %username%:F administrators:F /t /c
icacls "%Program Files%\WindowsApps" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Program Files\Internet Explorer" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Windows\bcastdvr" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Windows\System32\oobe\UserOOBEBroker.exe" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\GameDVR" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\Edge" /grant %username%:F administrators:F /t /c
icacls "%WinDir%\System32\Broadcastdvr.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\System32\upfc.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\System32\Compatibility Telement.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\System32\CompPkgSrv.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\System32\mobsync.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\System32\smartscreen.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\System32\GameBarPresenceWriter.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Windows\GameBarPresenceWriter.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Program Files (x86)\Internet Explorer" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Program Files (x86)\Microsoft" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%ProgramFiles%\WindowsApps" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Program Files\Internet Explorer" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Windows\bcastdvr" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\GameDVR" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Users\%username%\AppData\Local\Microsoft\Edge" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
icacls "%WinDir%\Windows\System32\oobe\UserOOBEBroker.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /t /l /q /c
taskkill /f /t /IM OneDriveSetup.exe
taskkill /f /t /IM CompatTelRunner.exe
taskkill /f /t /IM CompPkgSrv.exe
taskkill /f /t /IM upfc.exe
taskkill /f /t /IM mobsync.exe
taskkill /f /t /IM smartscreen.exe
taskkill /f /t /IM MicrosoftEdgeUpdate.exe
taskkill /f /t /IM ScreenClippingHost.exe
taskkill /f /t /IM TextInputHost.exe
taskkill /f /t /IM LocalBridge.exe
taskkill /f /t /IM Microsoft.Photos.exe
taskkill /f /t /IM WinStore.App.exe
taskkill /f /t /IM SkypeApp.exe
taskkill /f /t /IM SkypeBridge.exe
taskkill /f /t /IM SkypeBackgroundHost.exe
taskkill /f /t /IM NcsiUwpApp.exe
taskkill /f /t /IM backgroundTaskHost.exe
taskkill /f /t /IM taskhostw.exe
taskkill /f /t /IM ctfmon.exe
taskkill /f /t /IM HxTsr.exe
taskkill /f /t /IM HxOutlook.exe
taskkill /f /t /IM HxCalendarAppImm.exe
taskkill /f /t /IM HxAccounts.exe
taskkill /f /t /IM GameBarPresenceWriter.exe
del "%windir%\Program Files (x86)\Internet Explorer" /s /f /q
taskkill /f /t /IM MicrosoftEdgeUpdate.exe
del "%windir%\Program Files (x86)\Microsoft" /s /f /q
taskkill /f /t /IM MicrosoftEdgeUpdate.exe
del "%windir%\Windows\SystemApps Microsoft.MicrosoftEdge" /s /f /q
del "%windir%\Program Files\Internet Explorer" /s /f /q
del "%windir%\Windows\bcastdvr" /s /f /q
taskkill /f /t /IM GameBarPresenceWriter.exe
del "%windir%\Windows\GameBarPresenceWriter" /s /f /q
taskkill /f /t /IM CompPkgSrv.exe
del "%windir%\Windows\System32\CompatTelRunner.exe" /s /f /q
taskkill /f /t /IM upfc.exe
del "%windir%\Windows\System32\upfc.exe" /s /f /q
del "%windir%\Windows\System32\CompPkgSrv.exe" /s /f /q
taskkill /f /t /IM mobsync.exe
del "%windir%\Windows\System32\mobsync.exe" /s /f /q
taskkill /f /t /IM smartscreen.exe
del "%windir%\Windows\System32\smartscreen.exe" /s /f /q
taskkill /f /t /IM GameBarPresenceWriter.exe
del "%windir%\Windows\System32\GameBarPresenceWriter" /s /f /q
del "%windir%\Users\%username%\AppData\Local\Microsoft\GameDVR" /s /f /q
taskkill /f /t /IM MicrosoftEdgeUpdate.exe
del "%windir%\Users\%username%\AppData\Local\Microsoft\Edge" /s /f /q
taskkill /f /t /IM StartMenuExperienceHost.exe
taskkill /f /t /IM ScreenClippingHost.exe
del "%windir%\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.exe" /s /f /q
taskkill /f /t /IM TextInputHost.exe
del "%windir%\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TextInputHost.exe" /s /f /q
rmdir /S /Q "%windir%\Users\%username%\AppData\Local\Microsoft\GameDVR"
taskkill /f /t /IM MicrosoftEdgeUpdate.exe
rmdir /S /Q "%windir%\Users\%username%\AppData\Local\Microsoft\Edge"
rmdir /S /Q "%windir%\Program Files (x86)\Internet Explorer"
rmdir /S /Q "%windir%\Program Files (x86)\Microsoft"
rmdir /S /Q "%windir%\Windows\SystemApps Microsoft.MicrosoftEdge"
rmdir /S /Q "%windir%\Program Files\Internet Explorer"
taskkill /f /t /IM GameBarPresenceWriter.exe
rmdir /S /Q "%windir%\Windows\bcastdvr"
rmdir /S /Q "%windir%\Windows\GameBarPresenceWriter"
taskkill /f /t /IM CompatTelRunner.exe
rmdir /S /Q "%windir%\Windows\System32\CompatTelRunner.exe"
taskkill /f /t /IM upfc.exe
rmdir /S /Q "%windir%\Windows\System32\upfc.exe"
taskkill /f /t /IM CompPkgSrv.exe
rmdir /S /Q "%windir%\Windows\System32\CompPkgSrv.exe"
taskkill /f /t /IM mobsync.exe
rmdir /S /Q "%windir%\Windows\System32\mobsync.exe"
taskkill /f /t /IM smartscreen.exe
rmdir /S /Q "%windir%\Windows\System32\smartscreen.exe"
taskkill /f /t /IM GameBarPresenceWriter.exe
rmdir /S /Q "%windir%\Windows\System32\GameBarPresenceWriter"
taskkill /f /t /IM StartMenuExperienceHost.exe
taskkill /f /t /IM ScreenClippingHost.exe
rmdir /S /Q "%windir%\Windows\SystemApps\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\StartMenuExperienceHost.exe"
taskkill /f /t /IM TextInputHost.exe
rmdir /S /Q "%windir%\Windows\SystemApps\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TextInputHost.exe"
pause