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
>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
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:
> .
>
> 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.
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:
> .
>
>Hey Rich, did not fix the problem...
How about using WMI instead?
For example,
http://msdn.microsoft.com/en-us/library/aa143774(EXCHG.65).aspx
or
http://www.tech-archive.net/Archive/Development/microsoft.public.win32.programmer.messaging/2005-11/msg00108.html
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:
> .
>