adsi与 adfind工具

Do you need to quickly find the GUID id from the Active Directory without have to write some complex code just to get the GUID id.
Solution 1: You can use Windows Server 2003 ADSI (Active Directiory Services Interface) Edit tool to get the GUID or SID value.
ADSI Edit (adsidedit) is one of Windows Server 2003's support tools. So if you don't have you can install it from the CD.
Solution 2: You can use Adfind to get this GUID or SID value
Get GUID value:
1. First download the Adfind tool.
2. In command prompt execute adfind -b dc=yourdomain,dc=yourdomain,dc=org -f (sAMAccountName=Cymbaline) objectGUID
EG. C:\Program Files\adfind>adfind -b dc=yourdomain,dc=yourdomain,dc=org -f (sAMAccountName=Cymbaline) objectGUID
Get SID: value:
C:\Program Files\adfind>adfind -b dc=yourdomain,dc=yourdomain,dc=org -f (sAMAccountName=Cymbaline) objectGUID
You can do many more with this tool, look in the help to see what else you can do.


本文转自9pc9com博客,原文链接:     http://blog.51cto.com/215363/800490    如需转载请自行联系原作者
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值