Скрипт необходимо выполнять в безопасном режиме.
safemode-resetpwdkes10.ps1
# howto reset KES10 # x64: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\KasperskyLab\protected\KES10\settings # x32: HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\protected\KES10\settings # "EnablePswrdProtect"=dword:00000000 # "OPEP"="" # $keyKES10x64 = "HKLM:\SOFTWARE\Wow6432Node\KasperskyLab\protected\KES10" $keyKES10x86 = "HKLM:\SOFTWARE\KasperskyLab\protected\KES10" $valPassworpProtect = "EnablePswrdProtect" $valOPEP = "OPEP" if ([System.IntPtr]::Size -eq 8) # is x64 bit system { $keyKES10Settings = "$keyKES10x64\Settings" } else { $keyKES10Settings = "$keyKES10x86\Settings" } New-ItemProperty -Path $keyKES10Settings -Name $valPassworpProtect -Value 0 -PropertyType DWord -Force | Out-Null New-ItemProperty -Path $keyKES10Settings -Name $valOPEP -Value "" -PropertyType String -Force | Out-Null# the end :-)
Комментариев нет:
Отправить комментарий