Skip to content

Instantly share code, notes, and snippets.

@patdowney
Created June 17, 2014 12:44
Show Gist options
  • Save patdowney/6fdccd633fe634b6db58 to your computer and use it in GitHub Desktop.
Save patdowney/6fdccd633fe634b6db58 to your computer and use it in GitHub Desktop.
msmq tidbits
param(
$QueueName = "default"
)
$load_result = [Reflection.Assembly]::LoadWithPartial("System.Messaging")
if($load_result -ne $null) {
$msmq = [System.Messaging.MessageQueue]::Create(".\PRIVATE$\$QueueName")
} else {
Write-Error "Failed to load System.Messaging"
}
dism.exe /Online /Enable-Feature:MSMQ-Server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment