Last active
January 21, 2022 07:59
-
-
Save b4tman/9400448e925f5758073a88f7ff609202 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal EnableExtensions | |
rem https://1c.ru/rus/support/surrog.htm | |
echo --- delete services: | |
FOR %%A IN (haspflt vusbbus VUsb Emulator NEWHASP Multikey) DO ( | |
echo - %%A | |
sc stop %%A > NUL 2>&1 | |
sc delete %%A > NUL 2>&1 | |
REG DELETE "HKLM\SYSTEM\CurrentControlSet\Services\%%A" /f > NUL 2>&1 ) | |
REG DELETE "HKLM\SYSTEM\CurrentControlSet\NEWHASP" /f > NUL 2>&1 | |
REG DELETE "HKLM\SYSTEM\CurrentControlSet\Multikey" /f > NUL 2>&1 | |
echo. | |
echo --- delete drivers: | |
FOR %%A IN (haspflt vusbbus VUsb Multikey) DO ( | |
echo - %%A.sys | |
del /F /Q "%systemroot%\system32\drivers\%%A.sys" > NUL 2>&1 | |
rem FIXME: (acl restricted for SYSTEM account) | |
del /F /S /Q %systemroot%\system32\DriverStore\FileRepository\%%A.inf_* > NUL 2>&1 | |
) | |
echo. | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment