Link to home
Start Free TrialLog in
Avatar of janhoedt
janhoedt

asked on

Get-ADDefaultDomainPasswordPolicy, howto get in hours/days?

Hi,

How to get Get-ADDefaultDomainPasswordPolicy stats in hours days?
Now this is:

LockoutDuration             : 00:90:00
LockoutObservationWindow    : 00:60:00
LockoutThreshold            :  10
MaxPasswordAge              : 40.00:00:00
MinPasswordAge              : 00:00:00

J.
Avatar of oBdA
oBdA

"stats in hours days"? Sorry?
These values are all TimeSpan objects, so they contain all kind of time information out of the box.
Try, for example:
$pp = Get-ADDefaultDomainPasswordPolicy
$pp.LockoutDuration

Open in new window

What is it exactly you need?
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

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