Accessing more properties of Local Security Policy with powershell

Nuro007 1 Reputation point

I want to modify any property that is in secpol.msc \> Security settings \> Account Policies. Microsoft unfortunately only gives support for a few of them, so there are still properties that I can't access.

For the Account Policies for example, only the following are aviable to change via net accounts

   [/FORCELOGOFF:{minutes | NO}]    
   [/MAXPWAGE:{days | UNLIMITED}]    
   [/UNIQUEPW:number] [/DOMAIN]  

Is there any way to access and modify other properties?

I have looked into other questions that have been previously asked and answered, but most of them are outdated or associated with code that is literally unreadable and very hard to maintain.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,455 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,116 Reputation points Microsoft Vendor

    Hi @Nuro007 ,

    You have to use SECEDIT to configure the Local Security Policy. Please refer to below link for more details

    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 comments No comments