How do I change security for an existing named pipe? <p>I'm using Hyper V on Windows 8 and would like to be able to communicate with the virtual serial port through a named pipe. I give the pipe a name of choice and it works well communicating with the virtual os (XP, in my case) serial port, but only under the Admin user due to PipeSecurity settings.</p> <p>Now I would like to be able to give full control for everyone on a named pipe created by Hyper-V. Programmatically or maybe with some Hyper V setting. I need to be able to communicate with the virtual os as a regular User.</p> <p>I know how to set a certain security on a named pipe that I create myself using NamedPipeServerStream together with a PipeSecurity object. I'm mainly using C#, but I see that there are C++ API:s like SetSecurityInfo. But these requires a handle to the existing pipe.</p> <p>In pseudo code I would like to do something like:</p> <p>SetSecurityInfo("mypipe", new PipeAccessRule("Everyone", PipeAccessRights.FullControl, AccessControlType.Allow));</p> <p>Anyone know how to do this? (C++ or preferrably C#)</p>