powershell PowerShell获取AD OU的安全访问权限

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell PowerShell获取AD OU的安全访问权限相关的知识,希望对你有一定的参考价值。

$SearchBase = "OU=OUNAME,DC=your,DC=domain,DC=com"
$SysManObj = [ADSI]("LDAP://$SearchBase") #get the OU object
$t = $SysManObj.psbase.ObjectSecurity.Access
#at this point $t will contain everything, but you can drill down further to just get those devices/users that have permissions to the ou
$identities = $t | Select-Object IdentityReference
$identities | clip

以上是关于powershell PowerShell获取AD OU的安全访问权限的主要内容,如果未能解决你的问题,请参考以下文章