导出AD用户的属性值

为了后续更好的使用AD用户信息,如今须要导出域用的使用值ip

 

Get-ADUser -Filter {Enabled -eq "true"} -SearchBase "OU=宝尊,DC=baozun,DC=cn" -Properties * | select DisplayName,name,UserPrincipalName,samaccountname,mail,LastLogonDate | sort LastLogonDate -Descending | Export-Csv c:\AllUser.csv -Encoding utf8ci

相关文章
相关标签/搜索