给定一个用户ID和一个文件夹,我怎么知道哪个组是用户拥有哪个访问权限的原因?
去文件夹的财产安全检查哪个组有权访问该文件夹,通过AD添加用户到组。
使用以下步骤:
参考: https : //technet.microsoft.com/en-us/library/cc771586.aspx
这里有一个Powershell脚本,我只是敲了一下,这让你大部分的方式。 它为您提供了与用户所在angular色相匹配的文件/文件夹中的所有ACL:
Param($fileName,$user) $groups = ([ADSISEARCHER]"samaccountname=$($user)").Findone().Properties.memberof -replace '^CN=([^,]+).+$','$1' $acls = (get-acl $fileName).access $aclNames = $acls.identityreference.Value #sls returns match objects, we need strings $aclsForUser = $aclNames | sls $groups | %{$_.tostring()} $acls | ? IdentityReference -in $aclsForUser