Skip to content
Snippets Groups Projects
Commit 0887d20b authored by lhyqy5's avatar lhyqy5
Browse files

fix registry key name error

parent 5a34e99d
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ namespace SoftCertPolicyAppender
{
using (var cerKey = machine.CreateSubKey(keyPath))
{
cerKey.SetValue("AuthenticodeEnable", enable?1:0, RegistryValueKind.DWord);
cerKey.SetValue("AuthenticodeEnabled", enable ? 1 : 0, RegistryValueKind.DWord);
}
}
gpo.Save();
......@@ -189,7 +189,7 @@ namespace SoftCertPolicyAppender
foreach (var key in certKeys.Select(rk.CreateSubKey))
{
key.SetValue("AuthenticodeEnable", enable?1:0, RegistryValueKind.DWord);
key.SetValue("AuthenticodeEnabled", enable ? 1 : 0, RegistryValueKind.DWord);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment