-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdosexec.bat
147 lines (146 loc) · 5.82 KB
/
dosexec.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
@echo off
title Starting installation
reg add HKLM\System\Setup /v SystemSetupInProgress /t REG_DWORD /d 0 /f
net start
start explorer
ping localhost -n 3
@echo off
echo starting...
powershell stop-service wpcmonsvc
powershell sleep 1
If exist "C:\Program Files (x86)\Contrôle Parental" Orange goto cp_or
:cpwin
IF exist %programdata%\wpc\languagepack\fr_fr goto fr_1 else goto en_1
:en_1
echo Check driver 1 : status ok
echo updating..
title Updating system
goto cpwin2
:fr_1
echo Verification du driver 1 : status bon
echo Driver en cours d'installation
title Mise à jour en cours
goto cpwin2
:cpwin2
cd %windir%\system32
del WpcMigration.uplevel.dll /q
del Wpc.dll /q
del WpcMon.exe /q
del WpcApi.dll /q
del WpcWebfilter.dll /q
del WpcDesktopMonSvc.dll /q
del Wpctok.exe /q
del WpcRefreshTask.dll /q
del Wpc.dll.mui /q
del WpcMon.exe.mui /q
del WpcProxyStubs.dll /q
del WpcRefresh.dll.mui/q
del Wpcatltoast.png /q
del Wpcmon.png /q
cd %windir%\system32
del Wpc.dll /Q
del WpcMon.exe.mui /Q
del WpcMon.exe /Q
del WpcApi.dll /Q
del WpcWebfilter.dll /Q
del WpcDesktopMonSvc.dll /Q
del Wpctok.exe /Q
del WpcRefreshTask.dll /Q
del Wpc.dll.mui /Q
del WpcProxyStubs.dll /Q
del WpcRefresh.dll.mui /Q
del Wpcatltoast.png /Q
del Wpcmon.png /Q
cd fr-FR
del WpcMon.exe.mui /Q
del Wpc.Dll.mui /q
del WpcRefreshTask.dll /Q
cd %systemroot%\system32\migration
del WpcMigration.uplevel.dll /q
rmdir %systemroot%\WinSxS\amd64_dual_wpcip.inf_31bf3856ad364e35_10.0.22000.318_none_b9933c4a406b3dc8
del %systemroot%\WinSxS\amd64_microsoft-windows-p..trols-wpcproxystubs_31bf3856ad364e35_10.0.22000.1_none_2c0ccfb66f88abfb\WpcProxyStubs.dll /q
del %systemroot%\WinSxS\amd64_wpcip.inf.resources_31bf3856ad364e35_10.0.22000.1_fr-fr_54d5b3cdc7780631\wpcip.inf_loc /q
rmdir %systemroot%\WinSxS\wow64_microsoft-windows-p..lcontrols-webfilter_31bf3856ad364e35_10.0.22000.318_none_3103f122dcfac4fc
Del C:\Windows\SysWOW64\WpcWebFilter.dll /q
IF exist %programdata%\wpc\languagepack\fr_fr goto fr_3 else goto en_3
:en_3
echo Driver n°2 mis a jour at v1.8.02
title Rédemarrage..
powershell sleep 1
echo Rédemarrage
echo.
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=--=-=
echo tourne sous NT AUTHORITY, pas besoin d'autorisation
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=--=-=
echo.
echo Starting the file...
goto cpwin3
:fr_3
echo Driver n°2 updated at v1.8.02
title Rebooting
powershell sleep 1
echo rebooting..
echo.
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo Running as NT AUTHORITY, no elevation needed
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
echo.
echo Lancement du fichier
echo Redemarrage de l'ordinateur après le chargement de la Sauvegarde du registre
goto cpwin3
:cpwin3
ping localhost -n 2 > nul
echo Exiting the install mode
echo.
echo Tweaking the registry...
reg add HKLM\System\Setup /v CmdLine /t REG_SZ /d "" /f
reg add HKLM\System\Setup /v SystemSetupInProgress /t REG_DWORD /d 0 /f > nul
reg add HKLM\System\Setup /v SetupType /t REG_DWORD /d 0 /f > nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableCursorSuppression /t REG_DWORD /d 1 /f > nul
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v VerboseStatus /t REG_DWORD /d 0 /f > nul
schtasks /change /disable /tn Windows_pc_patch_dosexec
echo.
goto reboot
:reboot
title Rebooting...
echo Done, rebooting. (3 attempts)
echo Attempt #1
shutdown -r -t 0
ping localhost -n 3 > nul
echo Failed. Attempt #2
shutdown -r -t 0
ping localhost -n 3 > nul
echo Failed. Attempt #3
shutdown -r -t 0
echo Failed. If Windows hasn't rebooted yet, try resetting the machine.
title failed To reboot
pause
echo Try to type exit or shutdown -r
echo You are at & dir
Title System user - %systemroot%\system32\cmd.exe
@echo off
cmd
goto reboot
:cp_or
rd "C:\Program Files (x86)\Contrôle Parental" /s /q
rd "%programdata%\Contrôle Parental Orange" /S /Q
cd %systemROOT%\System32\drivers
del cpwnetfilter.sys /q /s
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run\[@]Contrôle Parental Orange v7 /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run\[@]CPDisplayContent /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]DisplayName /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]Publisher /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]VersionMajor /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]VersionMinor /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]InstallTag /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]DisplayIcon /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]InstallLocation /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]UninstallString /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]DisplayVersion /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]HelpLink /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]EstimatedSize /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]PasswordType /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ocsvc\[@]InstallationProgress /f
del %temp% /s /q
goto cp_win
# made by cb9,cbaie9 2020-2023