获取windows AD用户
2021-02-03 15:14
标签:primary ngui rdl info 用户信息 not mac create mes 获取windows AD用户 标签:primary ngui rdl info 用户信息 not mac create mes 原文地址:https://blog.51cto.com/ting2junshui/2437609Get-ADUser -Filter * -Properties * -SearchBase "DC=staff,DC=azureyun,DC=com" |Select-Object name,SamAccountName,Givenname,surname,Displayname,title,mobile,CanonicalName,Created,Department,DistinguishedName,EmailAddress,homeMDB,mail,mailNickname,MemberOf,msExchCoManagedObjectsBL,msExchHomeServerName,PasswordLastSet,PrimaryGroup,proxyAddresses,UserPrincipalName,whenCreated,whenChanged,MobilePhone,telephoneNumber,employeeNumber,postalCode,company |Export-Csv C:\AllADUser20190226.csv -Encoding UTF8 –NoTypeInformation