0

My VBScript tries to load MSMQ COM Object

Set MSMQQueueInfo = CreateObject("MSMQ.MSMQQueueInfo")

I enabled Messaging DCOM Proxy

enter image description here

Script can't load COM object:

enter image description here

Matt
  • 205
  • 2
  • 7

2 Answers2

0

You need to specify the machine you are creating the queue on.

Using Message Queuing over DCOM

John Breakwell
  • 757
  • 5
  • 11
  • The error I'm getting happens before there's a chance to worry about machine name. I couldn't create the COM object. – Matt Sep 02 '16 at 14:57
  • The object is created using the machine name, not before you specify the machine name. Set qinfo = CreateObject("MSMQ.MSMQQueueInfo", "MyServer.MyDomain.com") – John Breakwell Sep 03 '16 at 10:44
  • As I posted in the question, I'm creating without the name `CreateObject("MSMQ.MSMQQueueInfo")` – Matt Sep 06 '16 at 05:02
  • My assumption (as I can't test it at the moment) is that the proxy needs to know the queue manager to talk to for object creation. If you don't specify then the QM would have to be local. – John Breakwell Sep 07 '16 at 07:56
0

Even though I am not running MSMQ on this server, I still had to install the messaging server to load the COM object:

enter image description here

Matt
  • 205
  • 2
  • 7