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

0

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

Using Message Queuing over DCOM

  • 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 2 '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 3 '16 at 10:44
  • As I posted in the question, I'm creating without the name CreateObject("MSMQ.MSMQQueueInfo") – Matt Sep 6 '16 at 5: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 7 '16 at 7: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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.