Link to home
Start Free TrialLog in
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!


User generated image
ASKER CERTIFIED SOLUTION
Avatar of Muhammad Burhan
Muhammad Burhan
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ron Dokken
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.