Skip to content

Instantly share code, notes, and snippets.

@TravisTheTechie
TravisTheTechie / PwnQueues.ps1
Created February 11, 2010 19:30
Grants rights to a given user for queues matching the regex.
#GetQueueOwnership
param
(
[string] $queueNameRegex,
[string] $userName
)
[Void][System.Reflection.Assembly]::LoadWithPartialName("System.Messaging")
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("localhost") |
public interface IKeyedObject<T>
{
T Key { get; }
}

Keybase proof

I hereby claim:

  • I am travisthetechie on github.
  • I am travisthetechie (https://keybase.io/travisthetechie) on keybase.
  • I have a public key whose fingerprint is D9E4 3DEE F609 F981 04DB 53DA BF08 B086 3903 C47C

To claim this, I am signing this object: