Skip to content

Commit 84e3947

Browse files
Update
1 parent 5144eb9 commit 84e3947

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
# This will get all users where Password Expires is set to true and are enabled
2+
# This will get all users where Password Never Expires is set to true and are enabled
33

4-
Get-ADUser -filter {passwordNeverExpires -EQ $true -and enabled -EQ $true } -Properties Name,LastLogonDate,PasswordNeverExpires,PwdLastSet |
4+
Get-ADUser -filter {passwordNeverExpires -EQ $true -and enabled -EQ $true } -Properties Name,LastLogonDate,PasswordNeverExpires,PwdLastSet |
55
Select-Object Name,LastLogonDate,PasswordNeverExpires,@{Name='PwdLastSet';Expression={[DateTime]::FromFileTime($_.PwdLastSet)}} |
66
Sort-Object | Format-Table

Tools/IdentityLifeCyleWoops/GetAllUsersintheDomainAdminGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# This will get all users that are memebr of the Domain Admin group
2+
# This will get all users that are member of the Domain Admin group
33

44
Get-ADGroupMember -Identity "Domain Admins" -Recursive |
55
Get-ADUser -Properties Name,LastLogonDate,PasswordNeverExpires,PwdLastSet | Where-Object {$_.Enabled -eq $true} |

0 commit comments

Comments
 (0)