Skip to content

Commit

Permalink
added account lockoutstatus to Get-ADuserDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
RobHolme committed Jan 23, 2021
1 parent 19b4899 commit 080b666
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions public/Get-ADUserDetails.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ https://github.com/RobHolme/ADTools#get-aduserdetails
if (($userAccountControl -band $ACCOUNTDISABLE) -eq $ACCOUNTDISABLE) {
$userDisabled = $true
}
# if (($userAccountControl -band $LOCKOUT) -eq $LOCKOUT) {
# $userLockedOut = $true
# }
if (($userAccountControl -band $DONT_EXPIRE_PASSWORD) -eq $DONT_EXPIRE_PASSWORD) {
$userPasswordNeverExpires = $true
}
Expand Down Expand Up @@ -209,7 +206,7 @@ https://github.com/RobHolme/ADTools#get-aduserdetails
Mobile = $currentUser.mobile.ToString()
OtherIpPhone = $currentUser.otherIpPhone.ToString()
AccountDisabled = $userDisabled
#AccountLockout = $userLockedOut
AccountLocked = $currentUser.IsAccountLocked
PasswordNeverExpires = $userPasswordNeverExpires
AccountExpires = ConvertADDateTime $currentUser.ConvertLargeIntegerToInt64($currentUser.accountExpires[0])
PasswordLastSet = ConvertADDateTime $currentUser.ConvertLargeIntegerToInt64($currentUser.pwdLastSet[0])
Expand Down

0 comments on commit 080b666

Please sign in to comment.