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
calvinrafael
Aug 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_DataOp
Domain\G HOU GOMDW Dev Admin
Domain\G GOM Resource Data Management RW
Domain\G GoM Resource AREA RO
;
FullControl
FullControl
Modify, Synchronize
ReadAndExecute, Synchronize
This is the intended output.
Domain\ADM_HOU_DataOp FullControl
Domain\G HOU GOMDW Dev Admin FullControl
Domain\G GOM Resource Data Management RW Modify, Synchronize
Domain\G GoM Resource AREA RO ReadAndExecute, Synchronize
Cheers