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 best solutions below

0
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