Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Get List of All Service Accounts from Active Directory.

$
0
0

Below command would give you the list of all service accounts in Active Directory.

get-aduser -filter * -properties Name, PasswordNeverExpires | where {$_.passwordNeverExpires -eq "true" } |  Select-Object DistinguishedName,samaccountname,Name,Enabled,co,lastlogondate,Passwordlastset | Export-csv pw_never_expires.csv -NoTypeInformation


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>