【发布时间】:2014-06-16 16:29:17
【问题描述】:
您好,我在获取有关谁将计算机加入域的信息时遇到了一些问题。 我可以使用此代码,但它仅供一些无权访问 Powershell ActiveDirectory 模块的非管理用户使用。
Get-ADComputer myComputer -Properties ntSecurityDescriptor | Select ntSecurityDescriptor -ExpandProperty ntSecurityDescriptor
这是我感兴趣的所有者财产。 但现在到了真正的交易 我需要让它与 ADSI 一起工作
$Computer = [ADSI](([ADSISearcher]"(name=myComputer)").FindOne().Path)
$Computer.nTSecurityDescriptor
System.__ComObject
如何使用 ADSI “扩展” nTSecurityDescriptor 的属性?
【问题讨论】:
标签: powershell active-directory adsi powershell-ise