How to go about managing policies through powershell

Friendly_Scripter 20 Reputation points
2024-01-30T10:32:47.92+00:00
Hello all, 
    I am currently trying to write an all in one script for windows 10 and 11 and so far it's coming along great. This poses an interesting problem however, how can I manage policies as there does not appear to be any built in commands for it. I'm looking to manage password policies, and stuff like requiring CTRL+ALT+DELETE to log on. Anything helps :) 

Thank you in advance. 
Friendly_Scripter
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,195 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,988 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
    2024-01-31T03:41:57.7+00:00

    Hi Friendly_Scripter,

    You can use secedit to configure the system security settings. https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/secedit

    The exported security templates can be edited with the "Security Templates" mmc snap-in.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful