Hey I’m back from vacation and just to get things going here’s a basic post on the stuff I’m working on today. I feel so lazy on my first day after vacation that there’s no way I will manually create 20+ queues. Instead, I will use Powershell to extract the queue names from one server and write a script to automate the creation.
First of all, Powershell does not come with any MSMQ commands out of the box, so go and get PowerShell Community Extensions v1.2 (that’s where the new MSMQ comandlets were added). I assume you have Powershell 1.0 installed and script execution enabled (set-executionpolicy unrestricted). If you run into issues installing the profile, just reinstall w/o the profile, and import profile manually before executing the new comandlets:
& “C:\Program Files\PowerShell Community Extensions\Profile\Profile.ps1″
Then run the following command to extract the list of queues:
Get-MSMQueue -Private | Format-Table -property QueueName
Now that we have the queue names, transform that (manually) to a list of creation commands:
New-MSMQueue -QueueName loadreversalsmodulequeue -Private
That’s it for now!
