As suggested by John Breakwell's comment, MSMQ was not installed on my local machine. I followed these steps to enable management of a remote MSMQ application from my local machine
Install MSMQ
At a command prompt, run the command OptionalFeatures
to open the 'Windows Features' dialog.
In the feature tree of the dialog, Check the top-level feature 'Microsoft Message Queue (MSMQ) Server'. This also checks the sub-feature 'Microsoft MessageQueue (MSMQ) Server Core'. The dialog should look like this:
Press OK.
Windows displays a dialog to say "Please wait while Windows makes changes to features. This might take several minutes." Wait until the dialog disappears.
Verify the fix
Run the command to compmgmt.msc locally:
runas /user:DEV\admin_me "mmc compmgmt.msc /computer:\\DEVSERVER"
Navigate to 'Computer Management (Local) > Services and Applications > Message Queueing > Private Queues' and verify that the two private queues used by my application are visible.
Sure, when using the GUI, you would use the 'Windows Features' dialog through the control panel:
To do the same thing in PowerShell you can use the Enable-WindowsOptionalFeature
cmdlet.
You need to know the internal feature names, to get these, run:
Get-WindowsOptionalFeature –Online | ? FeatureName -match "msmq" | select FeatureName
you get something like this:
FeatureName
-----------
MSMQ-Container
MSMQ-Server
MSMQ-Triggers
MSMQ-ADIntegration
MSMQ-HTTP
MSMQ-Multicast
MSMQ-DCOMProxy
WCF-MSMQ-Activation45
Now you can install the features you like:
Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-HTTP
Enable-WindowsOptionalFeature -Online -FeatureName MSMQ-Server
...
Some features have dependencies on other features, to solve them, add the -All
switch, which installs any dependencies automatically.
Best Answer
I don't think this is an option. I believe it's specific to PowerShell 4 on Server 2012 / Windows 8. I couldn't find a separate installation for the MSMQ PowerShell module, but when I selected the MSMQ Server feature on my Server 2012 box and installed it, the MSMQ module became available.
-Joel