Forum Discussion
calvinrafael
Aug 12, 2022Copper Contributor
Get-Acl | Group Names and Permissions
Dear Friends, I want to query groups and permissions on certain file share path using the powershell script below. It is currently working and giving the correct output. [CmdletBinding()] p...
farismalaeb
Aug 12, 2022Iron Contributor
You need to use the PSCustomObject Build your object with the property needed properties and assign the script output to the object. A basic example here https://community.spiceworks.com/topic/2321720-trying-to-write-a-ps-script-to-output-acl-of-folders
Another a bit complex example
https://github.com/farismalaeb/Powershell/blob/master/Get-SharePermission/Test-ShareList.ps1
- calvinrafaelAug 13, 2022Copper Contributor
Thank you for sharing the link. Unfortunately, I found it not helpful.
I already have the script that gives the output that I want except for the formatting.
I would prefer it to be in a table format rather than in list format.
This is the actual output.Domain\ADM_HOU_DataOpDomain\G HOU GOMDW Dev AdminDomain\G GOM Resource Data Management RWDomain\G GoM Resource AREA RO;FullControlFullControlModify, SynchronizeReadAndExecute, SynchronizeThis is the intended output.Domain\ADM_HOU_DataOp FullControlDomain\G HOU GOMDW Dev Admin FullControlDomain\G GOM Resource Data Management RW Modify, SynchronizeDomain\G GoM Resource AREA RO ReadAndExecute, SynchronizeCheers