简体   繁体   中英

How to see named pipe permission from command line on windows

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 ?

This tool helps - https://docs.microsoft.com/en-us/sysinternals/downloads/accesschk

In PowerShell: .\\accesschk64.exe \\.\\pipe<name>

ls '\\\\.\\pipe\\' | % { try{ $_.GetAccessControl() } catch{"nope"}}

To expand upon this answer from another post<\/a> :

Get-ChildItem \\.\pipe\ | ForEach-Object -ErrorAction SilentlyContinue GetAccessControl

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM