Search This Site
Older Posts
- February 2016
- June 2015
- October 2014
- June 2014
- March 2014
- July 2013
- June 2013
- May 2013
- January 2013
- December 2012
- November 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- February 2010
- October 2009
- September 2009
- March 2009
- February 2009
- January 2009
- December 2008
Categories
Category Archives: MSMQ
Write MSMQ Messages from PowerShell
This PowerShell script sends a message to an MSMQ. I did it this particular way because NServiceBus can consume messages sent like this. [Reflection.Assembly]::LoadWithPartialName(“System.Messaging”); $queueName = ‘.\Private$\your.queue.name’; $queue = new-object System.Messaging.MessageQueue $queueName; $utf8 = new-object System.Text.UTF8Encoding; $tran = new-object System.Messaging.MessageQueueTransaction; … Continue reading
Posted in CodeMinder, MSMQ, PowerShell, Programming
9 Comments
Read MSMQ Messages from PowerShell
This script dumps the contents of an MSMQ to the console. This one dumps the Journal contents of a private queue; of course you’ll have to adjust that line for your queue. [Reflection.Assembly]::LoadWithPartialName(“System.Messaging”) $queueName = ‘.\Private$\your.queue.name\Journal$’; $queue = new-object System.Messaging.MessageQueue … Continue reading
Posted in CodeMinder, MSMQ, PowerShell, Programming
Leave a comment