Mundy

IT Knowledge Base

User Tools

Site Tools


find_all_users_with_password_never_expires

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
find_all_users_with_password_never_expires [2018/02/14 13:52]
Dan Mundy
find_all_users_with_password_never_expires [2018/04/09 09:56] (current)
Line 3: Line 3:
 ===== Powershell ===== ===== Powershell =====
  
 +<WRAP prewrap><​code>​
 get-aduser -filter * -properties Name, PasswordNeverExpires,​ Description | where { $_.passwordNeverExpires -eq "​true"​ } | where {$_.enabled -eq "​true"​} | ft SamAccountName,​ Description get-aduser -filter * -properties Name, PasswordNeverExpires,​ Description | where { $_.passwordNeverExpires -eq "​true"​ } | where {$_.enabled -eq "​true"​} | ft SamAccountName,​ Description
 +</​code></​WRAP>​
  
 ===== Archive ===== ===== Archive =====
find_all_users_with_password_never_expires.txt ยท Last modified: 2018/04/09 09:56 (external edit)