1. 首页
  2. 服务器

获取windows AD用户

获取windows AD下所有用户信息

Get-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

原创文章,作者:夜风博客,如若转载,请注明出处:https://www.homedt.net/16598.html

联系我们

联系QQ:28575315