Quantcast
Channel: ONTAP Discussions topics
Viewing all articles
Browse latest Browse all 4944

Reading ACLs and DACLs through powershell

$
0
0

Trying to read the Security group information of CIFS shares via PowerShell but it is not showing full information in the o/p. 

 

PS C:\WINDOWS\system32> Get-NcFileDirectorySecurity -Path /test


NcController : 10.147.134.59
SecurityStyle : ntfs
EffectiveStyle : ntfs
DosAttributes : 16
DosAttributesText : ----D---
DosAttributesExpanded :
UnixUserId : 0
UnixGroupId : 0
UnixModeBits : 777
Acls : {NTFS Security Descriptor, Control:0x9504, Owner:\xxxxadmin, Group:BUILTIN\Administrators...}
Inode : 64
Path : /test

 

This is the o/p i am getting from powershell . Please help me how to get full information.

 

This is what I see from the manual command. 

 

cluster01:> vserver security file-directory show -vserver xxxx -path /test

Vserver:xxxx
File Path: /test
File Inode Number: 64
Security Style: ntfs
Effective Style: ntfs
DOS Attributes: 10
DOS Attributes in Text: ----D---
Expanded Dos Attributes: -
UNIX User Id: 0
UNIX Group Id: 0
UNIX Mode Bits: 777
UNIX Mode Bits in Text: rwxrwxrwx
ACLs: NTFS Security Descriptor
Control:0x9504
Owner:ADS\xxxx
Group:BUILTIN\Administrators
DACL - ACEs
ALLOW-S-1-5-21-1935655697-515967899-682003330-165437-0x1f01ff-OI|CI
ALLOW-ADS\xxx-0x1f01ff-OI|CI
ALLOW-ADS\yyyyy-0x1f01ff-OI|CI
ALLOW-ADS\zzzz-0x1f01ff-OI|CI
ALLOW-ADS\Domain Users-0x1200a9-OI|CI


Viewing all articles
Browse latest Browse all 4944

Trending Articles