Created
June 17, 2014 12:44
-
-
Save patdowney/6fdccd633fe634b6db58 to your computer and use it in GitHub Desktop.
msmq tidbits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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