Windows + reset registry permissions to default
Use this tool from MS: subinacl
Create the command file like reset.cmd:
cd /d “C:\Program Files (x86)\Windows Resource Kits\Tools”
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
pause
Edit the first string with the path if needed.
Windows Server 2012 + Terminal + Connect to a remote session FreeBSD + e-mail alert for ssh connection