Created
October 11, 2022 16:49
-
-
Save TerAnYu/d1299b5fa1582ed6b7ac655857f659c2 to your computer and use it in GitHub Desktop.
Добавить исключение для CryptoPro
This file contains 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 | |
setlocal enabledelayedexpansion | |
rem https://www.cryptopro.ru/forum2/default.aspx?g=posts&t=20281 | |
set fname=%1 | |
echo fullname: %fname% | |
for %%f in (%fname%) do (start powershell -command "&{start-process -filepath reg '"ADD """HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\CProExclude\%%~nf""" /V """FileName""" /T REG_SZ /D """%%~nxf""" /F"' -verb RunAs}") | |
endlocal | |
pause | |
exit /b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment