I need to create a transactional msmq using vb script. The queue is created
but not as a transactional one. Can anyone help?

On Error Resume Next
Dim Queue
Set Queue = CreateObject("MSMQ.MSMQQueueInfo")

Queue.PathName = ".\private$\MyQ"
Queue.Create IsTransactional = True
queue.label="MyQLabel"

Thank you

Re: Transactional MSMQ by Torgeir

Torgeir
Mon Oct 04 13:06:33 CDT 2004

Frank Ashley wrote:

> I need to create a transactional msmq using vb script. The queue
> is created but not as a transactional one. Can anyone help?
>
> On Error Resume Next
> Dim Queue
> Set Queue = CreateObject("MSMQ.MSMQQueueInfo")
>
> Queue.PathName = ".\private$\MyQ"
> Queue.Create IsTransactional = True

' use this instead:

Queue.Create True


> queue.label="MyQLabel"
>
> Thank you
>


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx