command-linelocal-security-policy

How can I change Local Security Policy through comand line


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?


Solution

  • 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