Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

aqadclmi Error

3 views
Skip to first unread message

Tinyski

unread,
Nov 20, 2009, 2:06:01 PM11/20/09
to
Hey all,

When I try and run the aqadclmi command in a batch file or from mapped
drive I get this:

"CoCreateInstance failed with 0x80040154"

Not being a programmer don’t have a clue what it means. Goggled it but there
is not a response I can find for this command.

Is there a batch file someone has for doing this?

What we are trying to do is use this command to shutdown the links on our
bridgehead server if we get a spamm out break during the off hours. The last
one cost us about 4 days of heck..and allot of peeved off people...

Thanks john


Rich Matheisen [MVP]

unread,
Nov 20, 2009, 2:43:09 PM11/20/09
to
On Fri, 20 Nov 2009 11:06:01 -0800, Tinyski
<Tin...@discussions.microsoft.com> wrote:

>Hey all,
>
> When I try and run the aqadclmi command in a batch file or from mapped
>drive I get this:
>
>"CoCreateInstance failed with 0x80040154"
>
>Not being a programmer don�t have a clue what it means. Goggled it but there
>is not a response I can find for this command.

I believe this is "Class not registered". Does it work if you run the
tool directly from the command line?
---
Rich Matheisen
MCSE+I, Exchange MVP

Tinyski

unread,
Nov 20, 2009, 3:22:01 PM11/20/09
to
Rich,

Yes it works if I'm on the server from a dos window, but if I try and run
a batch job with the command in it from a mapped drive I get the error....If
I run the batch job from the dos window on the server it works also.

john

"Rich Matheisen [MVP]" wrote:

> .
>

Rich Matheisen [MVP]

unread,
Nov 20, 2009, 4:53:59 PM11/20/09
to
On Fri, 20 Nov 2009 12:22:01 -0800, Tinyski
<Tin...@discussions.microsoft.com> wrote:

> Yes it works if I'm on the server from a dos window, but if I try and run
>a batch job with the command in it from a mapped drive I get the error....If
>I run the batch job from the dos window on the server it works also.

If your use of "mapped drive" means you're trying to run the tool on a
machine that's not the Exchange server whose queues you're trying to
manage, the error you get is because the necessary software isn't
installed on the machine that's trying to run the tool. You can try
installing the Exchange Management Tools on the machine and see if
that fixes your problem.

Tinyski

unread,
Nov 23, 2009, 12:36:01 PM11/23/09
to
Hey Rich, did not fix the problem...

Thank you for the response, here is mapped drive commands that I'm running
from a batch file:

net use q: \\"Exchange Server"\c$ "password" /USER:"userid" /PERSISTENT:NO
q:
q:\temp\mqueue\stopque1.bat

The "Exchange server" is an exchange server, "userid" is a full domain
admin and has full exchange rights.

The batch file I'm testing is on my pc right now and I've loaded the
exchange management admin program on this pc.

I’ve even thought of trying to schedule a task to run this batch job when
the error get tripped but I'm going to have to do some really fancy
programming to get the batch job too add 2 minutes to the at command because
if I try and schedule this when the error gets tripped the at command thinks
I want to run the job tomorrow...like I said I don’t claim to be a
programmer...


"Rich Matheisen [MVP]" wrote:

> .
>

Rich Matheisen [MVP]

unread,
Nov 23, 2009, 7:39:23 PM11/23/09
to

Tinyski

unread,
Nov 23, 2009, 8:38:01 PM11/23/09
to

Rich, that looks like what I want to do but I'm not a programmer would not
know the first thing to do with this... But in the mean time, got the AT
scheduled task to work with this batch file below...now to see if the AT Task
will stop the links...

set h=%TIME:~0,2%
set m=%TIME:~3,2%


set/a m2="m + 1"
set t2=%h%:%m2%
set t2

cd c:\temp\mqueue

at \\cdximc %t2% cmd /c "c:\temp\mqueue\aqadmcli linkinfo >
c:\temp\mqueue\tst.txt"


"Rich Matheisen [MVP]" wrote:

> .
>

0 new messages