Skip to content

Instantly share code, notes, and snippets.

@scudette
Last active October 16, 2022 03:10
Show Gist options
  • Save scudette/a520632012eb8abdc223fd27de24fb2f to your computer and use it in GitHub Desktop.
Save scudette/a520632012eb8abdc223fd27de24fb2f to your computer and use it in GitHub Desktop.
A named pipe server in powershell
while (1) {
$npipeServer = new-object System.IO.Pipes.NamedPipeServerStream('BlackJack',
[System.IO.Pipes.PipeDirection]::InOut)
$npipeServer.WaitForConnection()
$npipeServer.Close()
}
@scudette
Copy link
Author

Connect to this using the client_pipe.ps1 here https://gist.github.com/scudette/b6a50f9756f58ed93c9f0f3bdcc01072

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment