I've got an existing named pipe, say \\.\pipe\my_pipe. How can I, from cmd or powershell, get the ACL/Permissions of the pipe ?
Asked
Active
Viewed 2,579 times
6
Rob
- 14,107
- 28
- 46
- 64
Pierre Gayvallet
- 2,922
- 2
- 21
- 37
-
2[accesschk](https://docs.microsoft.com/en-us/sysinternals/downloads/accesschk) checks a named pipe when the path is prefixed with "\pipe", e.g. `accesschk -lv \pipe\InitShutdown`. – Eryk Sun Feb 22 '18 at 09:25
3 Answers
0
This tool helps - https://docs.microsoft.com/en-us/sysinternals/downloads/accesschk
In PowerShell: .\accesschk64.exe \.\pipe<name>
aquaknight
- 11
-
5Building an answer based on existing comments is acceptable, but you ought to credit the comment author (in this case [@ErykSun](https://stackoverflow.com/questions/48923402/how-to-see-named-pipe-permission-from-command-line-on-windows#comment84853676_48923402)) – Ben Voigt Feb 11 '21 at 22:43
0
To expand upon this answer from another post:
Get-ChildItem \\.\pipe\ | ForEach-Object -ErrorAction SilentlyContinue GetAccessControl
You can also use Get-Member to help you navigate the FileSecurity object:
Get-ChildItem \\.\pipe\ | ForEach-Object -ErrorAction SilentlyContinue GetAccessControl | Get-Member
carrvo
- 402
- 3
- 11