上找的貌似不全
其它可用字段,我试了一下,见下表(不全):
用户帐户属性
字符名“常规”标签
说明
姓 Sn
名 Givename
英文缩写 Initials
显示名称 displayName
描述 Description
办公室 physicalDeliveryOfficeName
电话号码 telephoneNumber
电话号码:其它 otherTelephone 多个以英文分号分隔
电子邮件 Mail
网页 wWWHomePage
网页:其它 url 多个以英文分号分隔
“地址”标签
国家/地区 C 如:中国CN,英国GB
省/自治区 St
市/县 L
街道 streetAddress
邮政信箱 postOfficeBox
邮政编码 postalCode
“帐户”标签
用户登录名 userPrincipalName 形如:S1@mcse.com
用户登录名(以前版本) sAMAccountName 形如:S1
登录时间 logonHours
登录到 userWorkstations 多个以英文逗号分隔
用户帐户控制 userAccountControl (启用:512,禁用:514, 密码永不过期:66048)
帐户过期 accountExpires
“配置文件”标签
配置文件路径 profilePath
登录脚本 scriptPath
主文件夹:本地路径 homeDirectory
连接 homeDrive
到 homeDirectory
“电话”标签
家庭电话 homePhone (若是其它,在前面加other。)
寻呼机 Pager 如:otherhomePhone。
移动电话 mobile 若多个以英文分号分隔。
传真 FacsimileTelephoneNumber
IP电话 ipPhone
注释 Info
“单位”标签
职务 Title
部门 Department
公司 Company
“隶属于”标签
隶属于 memberOf 用户组的DN不需使用引号, 多个用分号分隔
“拨入”标签 远程访问权限(拨入或VPN) msNPAllowDialin
允许访问 值:TRUE
拒绝访问 值:FALSE
回拨选项 msRADIUSServiceType
由呼叫方设置或回拨到 值:4
总是回拨到 msRADIUSCallbackNumber
没有找到我需要的 万般无奈之际,只能自己想办法通过代码来获取想要的信息
研究了下其实也非常简单
string text = string.Empty;
DirectoryEntry entry = new DirectoryEntry(ConfigurationManager.AppSettings["ldap"], ConfigurationManager.AppSettings["adminname"], ConfigurationManager.AppSettings["password"]);
//获取子结点
System.DirectoryServices.DirectoryEntry subentry = entry.Children.Find(ouname, "organizationalUnit");
//对子对象进行循环
foreach (DirectoryEntry res in subentry.Children)
{
if (res.Name.ToString().Substring(0, 3) == "CN=" && res.SchemaClassName == "user") //user
{
foreach (object p in res.Properties)
{
Response.Write(((System.DirectoryServices.PropertyValueCollection)(p)).PropertyName.ToString() + "=========/n" + ((System.DirectoryServices.PropertyValueCollection)(p)).Value);
}
}
Response.Write("---------------------------------------------------------");
if (res.Name.Substring(0, 3) == "OU=")
{
foreach (object p in res.Properties)
{
Response.Write(((System.DirectoryServices.PropertyValueCollection)(p)).PropertyName.ToString() + "==============/n"+((System.DirectoryServices.PropertyValueCollection)(p)).Value);
}
}
可以得到非常全面的AD属性
相关推荐
# Import AD Module import-module ActiveDirectory # Import CSV # Import the data from CSV file and assign it to variable $Imported = Import-Csv -Path "C:\tool\move-user.csv" $Imported | ForEach-...
AD用户属性说明,对于AD初学者,导出AD信息后一定头大了,这乱麻麻的一片,不晓得是什么,这里我这里了几个文档,说明下一些常用的参数代表什么。
AD域 OU及用户增加、删除、修改通用类库文件,其他分要的很贵,我下载了分享给大家,密码123456 希望对各位有用
验证AD域用户登录 ,传入用户名(userName)和密码(password)进行验证。
获取用户,包括从OU中获取AD用户,从组中获取组成员,获取所有禁用用户、锁定用户和密码永不过期的用户,还可以根据密码过期天数获取用户; 批量按指定属性新建新用户; 批量解锁用户; 批量重置用户密码; 批量禁用...
AD批量导入OU及账户321.pdf
需要用到AD操作的同学们,你们有福了,AD属性的对照表,很全的,可以参考参考吧!!
AD属性对照表[AD域][DirectoryEntry],通过DirectoryEntry可以得到AD域中用户的相关信息,AD域主要对用户管理,及LDAP数据同步起相对作用。
查看AD域信息:包含:DC(域控制器)、OU(组织单位)、CN(通用名称)、Distinguished Name(DN,区别名)sAMAccountName[FW将用户的sAMAccountName属性作为用户过滤字段,取sAMAccountName的取值作为FW上的用户名]...
查看AD相关字段信息、连接AD、查看、LDAP、
一条条添加用户很费时费力,一条命令一个文本轻松解决,AD跨OU批量新增用户。powershell查看AD使用者命令 (Get-AdUser -Filter * -Properties *).Count
AD域属性对照表
# This script will help to move bulk ad computer accounts into target OU # Written 08/08/15 Casey, Dedeal # Fell free to change use any part of this script # http://www.smtp25.blogspot.com/ ##########...
多个OU下批量创建AD账户并加入群组的脚本及模板。。。
是个windows下的脚步文件,可以从csv文件中读取用户的名称、密码等信息。用户批量的创建AD用户。工程文件
根据Excel批量导入AD用户,已存在的用户自动更新,excel中的列头需要与AD中的字段对应
导出AD域中的用户,方便获取域控制器内某OU下的用户,需要修改的地方大家注意
AD域属性扩展设计方案AD域属性扩展设计方案
AD技巧之指定用户登录和指定计算机登陆
windows server环境下域的管理,Powershell的脚本,可以指定OU,执行后会轮询删除该OU中内容为空的OU,非常高效好用。