If you're open to PowerShell, you have access to all of the System.Messaging classes in the .Net framework. I believe modern versions of Windows come with PowerShell as part of the operating system, at least according to Wikipedia:
PowerShell v2.0 was completed and released to manufacturing in August
2009, as an integral part of Windows 7 and Windows Server 2008 R2.
This StackOverflow question, for example, while about setting permissions on a queue, also has an example of creating a queue.
Write-Host "... create a new queue"
$q1 = [System.Messaging.MessageQueue]::Create(".\private$\MyQueue")
Write-Host "... create new queue, set FullControl permissions for RBC\BIZTALK"
$qb = [System.Messaging.MessageQueue]::Create(".\private$\BtsQueue")
$qb.SetPermissions("RBC\BIZTALK",
[System.Messaging.MessageQueueAccessRights]::FullControl,
[System.Messaging.AccessControlEntryType]::Set)
I'm not sure what basis you're using to create your queues, but if you're parsing a text file with one queue name per line or something similar, it is quite easy to read it in and create queues based on the text file.
Another useful link might be this SU question, which is about deleting queues from VBScript. I'm not familiar enough with the MSMQApplication
object that is being referenced, but presumably if queues can be deleted, they can be created.
Hi Lodra, I was wondering if you had any feedback, positive or negative, on my proposed solution? – dsolimano – 2012-10-17T13:34:11.657