• Hi!

    You appear to be searching for service accounts with "Passwordneverexpires " set to false.

    Could it be that your service accounts are all set to not have expiring passwords?

    Try changing the first line to this to see all users with non-expiring passwords.

    Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $True -and PasswordLastSet -gt 0 } `</pre>
    also try setting searchbase to something further up the tree.
    <pre class="lang:sh decode:true">-SearchBase "OU=WAT,DC=wt,DC=ad,DC=city,DC=aa" `
    0
  • Hi!

    You appear to be searching for service accounts with "Passwordneverexpires " set to false.

    Could it be that your service accounts are all set to not have expiring passwords?

    Try changing the first line to this to see all users with non-expiring passwords.

    Get-ADUser -filter {Enabled -eq $True -and PasswordNeverExpires -eq $True -and PasswordLastSet -gt 0 } `</pre>
    also try setting searchbase to something further up the tree.
    <pre class="crayon-selected">-SearchBase "OU=WAT,DC=wt,DC=ad,DC=city,DC=aa" `
    0
  • 0