How can I change Local Security Policy through comand line

639 Views Asked by At

I have a windows 10 machine and I need to change the Security settings to not defined for Local Security Policy->Local Policies->Security Options-> DCOM:Machine Launch Restrictions in SDDL syntax and DCOM:Machine Access Restrictions in SDDL syntax from a command line.

Would anybody know how to do this?

1

There are 1 best solutions below

0
Aparna On BEST ANSWER
REG DELETE "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows NT\DCOM  " /v MachineLaunchRestriction /f
REG DELETE "HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows NT\DCOM  " /v MachineAccessRestriction /f

Deleting the keys worked