导出AD用户的属性值

为了后续更好的使用AD用户信息,现在需要导出域用的使用值

 

Get-ADUser -Filter {Enabled -eq "true"} -SearchBase "OU=公司,DC=xxx,DC=com" -Properties * | select DisplayName,name,UserPrincipalName,samaccountname,mail,LastLogonDate | sort LastLogonDate -Descending | Export-Csv c:\AllUser.csv -Encoding utf8

posted @ 2018-12-03 09:30  Jupiter077  阅读(1533)  评论(0)    收藏  举报