User Tools

Site Tools


sysadmin:elenco_utenti_ad_con_scadenza_password

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
sysadmin:elenco_utenti_ad_con_scadenza_password [12/12/2022 07:26] lrosasysadmin:elenco_utenti_ad_con_scadenza_password [12/12/2022 07:28] (current) lrosa
Line 1: Line 1:
 +====== Elenco utenti AD con scadenza password ======
 +
 +<code powershell>
 +Get-ADUser -filter * -properties passwordlastset, passwordneverexpires | sort-object name | select-object Name, userprincipalname, passwordlastset  | Export-csv -path zz.csv
 +</code>
 +
 +
 +<code powershell>
 +Get-ADUser -filter * -properties passwordlastset, passwordneverexpires | sort-object name | select-object Name,userprincipalname,DistinguishedName,enabled,passwordlastset,PasswordNeverExpires,Description  | Export-csv -path zz.csv
 +</code>
 +
 +<code powershell>
 +get-ADGroupMember -Identity "Domain Admins" -Recursive | Get-ADUser -Properties * | select name,samaccountname,sid,enabled,adminCount,DistinguishedName,PasswordNeverExpires,PasswordNotRequired,LastLogonDate,PasswordLastSet,created,Description | export-csv -path
 +</code>