_SeGetFileSecurity获取非本机PC用户组权限时为什么用户组名为空呢?
是不是和域有关阿?
怎么才能获取到红框处的用户组名呢?
十分着急,请高手帮忙#include <lsasecur.au3>
#include <Array.au3>
$sFilePath = "\\192.168.165.83\e$\123" ; 此处为任意其他PC的文件夹
$iSecur = BitOR($SE_INFO_OWNER, $SE_INFO_DACL)
$pSecur = _SeGetFileSecurity($sFilePath, $iSecur)
If ($pSecur = 0) Then
MsgBox(48, "Error", _SeFormatMsg("_SeGetFileSecurity"))
Exit
EndIf
$pOwner = _SeGetSecurityDescriptorOwner($pSecur)
$pDacl = _SeGetSecurityDescriptorDacl($pSecur)
$sOwner = _SeLookupAccountSid($pOwner)
$aList = _SeEnumEntriesFromAcl($pDacl)
_ArrayDisplay($aList, $sOwner)
|