Changing Local Security Policy Programmatically

2.9k views Asked by At

I want to change Local Security Policy "Interactive logon: do not require ctlr+alt+del" in C#. How can I do this?

1

There are 1 answers

0
Ehtsham On

i found the answer i have to change in registry Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "DisableCAD"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system] "DisableCAD"=dword:00000001