Article ID: 197948
Article Last Modified on 10/9/2006
*-- Code begins here.
*-- Replace MyDomain with a valid domain name.
oDomain = Getobject("WinNT://MyDomain")
*-- Collect the properties of the oDomain object and display them.
lsInfo = "Minimum Password Length: " + ;
STR(oDomain.MinPasswordLength) + CHR(13) + ;
"Minimum Password Age: " + ;
STR(oDomain.MinPasswordAge) + CHR(13) + ;
"Maximum Password Age: " + ;
STR(oDomain.MaxPasswordAge) + CHR(13) + ;
"Maximum Bad Passwords: " + ;
STR(oDomain.MaxBadPasswordsAllowed) + CHR(13) + ;
"Password History Length: " + ;
STR(oDomain.PasswordHistoryLength) + CHR(13) + ;
"Auto Unlock Interval: " + ;
STR(oDomain.AutoUnlockInterval) + CHR(13) + ;
"Lock Out Observation Interval: " + ;
STR(oDomain.LockOutObservationInterval)
WAIT WINDOW lsInfo
*-- Code ends here
Keywords: kbhowto KB197948