write a batch script that created a the following registry values. Ensure to check that…
- User
write a batch script that created a the following registry values. Ensure to check that the key's exist and create where needed [HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Wintrust\Config] "EnableCertPaddingCheck"="1"
[HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config] "EnableCertPaddingCheck"="1"
- Assistant
@echo off
set regpath1=HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Wintrust\Config set regpath2=HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config
::check if registry key already exists reg query %regpath1% || reg add %regpath1% reg query %regpath2% || reg add %regpath2%
::set registry values reg add %regpath1% /v EnableCertPaddingCheck /t REG_DWORD /d 1 /f reg add %regpath2% /v EnableCertPaddingCheck /t REG_DWORD /d 1 /f
echo Registry values created successfully.