Avatar of Ron Dokken
Ron Dokken
 asked on

Set Group Policy Object with Powershell? (Default Domain Policy->Computer Configuration)

Let this serve as en example.

I want to set the parameter Account lockout threshold in the picture below with Powershell.

Please provide easy to read examples!


gpo
PowershellWindows Server 2012Active DirectoryIT AdministrationScripting Languages

Avatar of undefined
Last Comment
Ron Dokken

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Muhammad Burhan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Ron Dokken

ASKER
Or like this..

Get-ADDefaultDomainPasswordPolicy -Current LoggedOnUser | Set-ADDefaultDomainPasswordPolicy  -LockoutThreshold 10 -LockoutDuration 00:25:00 -LockoutObservationWindow 00:25:00 

Open in new window


This command set two other parameters as well.
Your help has saved me hundreds of hours of internet surfing.
fblack61