How can i add permissions for a specific group to read/write from an existent named pipe, using a powershell script?
This is as far as i went:
$AccessRule = New-Object System.IO.Pipes.PipeAccessRule( "Users", "FullControl", "Allow" )
$PipeSecurity = [System.IO.Directory]::GetAccessControl("\\.\pipe\docker_engine")
$PipeSecurity.AddAccessRule($AccessRule)
throw error
Cannot convert argument "rule", with value: "System.IO.Pipes.PipeAccessRule", for "AddAccessRule" to type "System.Security.AccessControl.FileSystemAccessRule"