简体   繁体   中英

Windows - Powershell - Configure "Local Group Policy Editor > ... > Account Lockout Policy > Account lockout threshold > invalid logon attempts"

I'm trying to find out a PowerShell Command to Setup the " Anti-Brute-Force-login-attempts " on Windows.

Which is as-is the following manual steps:

  1. gpedit.msc ( to open "Local Group Policy Editor" )
  2. Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Account Policies > Account Lockout Policy > Account lockout threshold > invalid logon attempts
  3. Set the " invalid logon attempts " to a value, eg 3
  4. Done.

OS version: Windows 10/11 Pro

Googled a few, didn't find any worked solutions, I hope to have some luck from here.

Thanks in advance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM