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.


本文转自 bilinyee博客,原文链接:   http://blog.51cto.com/215363/800490      如需转载请自行联系原作者
相关文章
|
Windows
Windows 右键 图标-菜单无法打开-资源管理器重启-explorer.exe停止与 Windows 交互并关闭【已解决】
Windows 右键 图标-菜单无法打开-资源管理器重启-explorer.exe停止与 Windows 交互并关闭【已解决】
406 0
Windows 右键 图标-菜单无法打开-资源管理器重启-explorer.exe停止与 Windows 交互并关闭【已解决】
|
Windows
Windows 技术篇-windows家庭版win+R运行搜不到gpedit.msc组策略编辑器解决方法,windows安装组策略编辑器方法
Windows 技术篇-windows家庭版win+R运行搜不到gpedit.msc组策略编辑器解决方法,windows安装组策略编辑器方法
326 0
Windows 技术篇-windows家庭版win+R运行搜不到gpedit.msc组策略编辑器解决方法,windows安装组策略编辑器方法
|
Web App开发 Windows
Windows 技术篇-本地组策略编辑器添加模板方法,设置chrome浏览器本地组策略演示
Windows 技术篇-本地组策略编辑器添加模板方法,设置chrome浏览器本地组策略演示
563 0
Windows 技术篇-本地组策略编辑器添加模板方法,设置chrome浏览器本地组策略演示
|
开发工具 git Windows
好工具推荐系列:Windows打开CMD命令的快捷键/代理上网的方法/Cmder
好工具推荐系列:Windows打开CMD命令的快捷键/代理上网的方法/Cmder
610 0
|
Windows
windows下的vs2017新建win32控制台应用程序项目如何调出程序向导选项?
windows下的vs2017新建win32控制台应用程序项目如何调出程序向导选项? 如下图所示: 我的GitHub地址:https://github.com/heizemingjun 我的博客园地址:http://www.
1354 0