RE: fast way to delete an Exchange Queue

2008-02-04 Thread Neil Hobson
Err, yes indeed.  William has such a way with words.  J

 

From: Michael B. Smith [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2008 01:25
To: MS-Exchange Admin Issues
Subject: RE: fast way to delete an Exchange Queue

 

 

*cough*

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: William Lefkovics [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 8:24 PM
To: MS-Exchange Admin Issues
Subject: RE: fast way to delete an Exchange Queue

 

 

I dated a wonderful black girl just like that.

 

 

From: Neil Hobson [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 9:11 AM
To: MS-Exchange Admin Issues
Subject: RE: fast way to delete an Exchange Queue

 

 

I can never remember how to use it.  Just go careful 'cos it can whack stuff
in a big way.  J

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2008 17:05
To: MS-Exchange Admin Issues
Subject: Re: fast way to delete an Exchange Queue

 

NM i found it at:

 

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/

 

now to figure out how to use it :P

 

-Ben

On Fri, Feb 1, 2008 at 8:46 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

any idea where to get it?

 

it isn't available here:

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmc
li.exe



 

On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:

 

 

 

 

 

 


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: fast way to delete an Exchange Queue

2008-02-01 Thread Neil Hobson
If you can get your hands on it, aqadmcli.exe should do the trick.

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: 31 January 2008 18:17
To: MS-Exchange Admin Issues
Subject: fast way to delete an Exchange Queue

 

I have a bunch of emails backed up due to a failed archive/journeling
system. at this point i just want to delete everything that it was trying to
deliver to my email archive system.

 

In my exchange 2003 server the queue name is SMTP -
mailarchive.mydomain.net (SMTP Connector).

 

any of you have a script that could clear this queue up? I already deleted
the SMTP Connector in 'Routing Groups -- Connectors

 

any help, i'd be happy! 

 

-Ben

 


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-02-01 Thread Ben Nordlander
any idea where to get it?

it isn't available here:
ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe



On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:



  If you can get your hands on it, aqadmcli.exe should do the trick.



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* 31 January 2008 18:17
 *To:* MS-Exchange Admin Issues
 *Subject:* fast way to delete an Exchange Queue



 I have a bunch of emails backed up due to a failed archive/journeling
 system. at this point i just want to delete everything that it was trying to
 deliver to my email archive system.



 In my exchange 2003 server the queue name is SMTP -
 mailarchive.mydomain.net (SMTP Connector).



 any of you have a script that could clear this queue up? I already deleted
 the SMTP Connector in 'Routing Groups -- Connectors



 any help, i'd be happy!



 -Ben







~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-02-01 Thread Ben Nordlander
NM i found it at:

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/

now to figure out how to use it :P

-Ben

On Fri, Feb 1, 2008 at 8:46 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

  any idea where to get it?

 it isn't available here:

 ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe



  On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:

 
 
   If you can get your hands on it, aqadmcli.exe should do the trick.
 
 
 
  *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
  *Sent:* 31 January 2008 18:17
  *To:* MS-Exchange Admin Issues
  *Subject:* fast way to delete an Exchange Queue
 
 
 
  I have a bunch of emails backed up due to a failed archive/journeling
  system. at this point i just want to delete everything that it was trying to
  deliver to my email archive system.
 
 
 
  In my exchange 2003 server the queue name is SMTP -
  mailarchive.mydomain.net (SMTP Connector).
 
 
 
  any of you have a script that could clear this queue up? I already
  deleted the SMTP Connector in 'Routing Groups -- Connectors
 
 
 
  any help, i'd be happy!
 
 
 
  -Ben
 
 
 
 
 
 



~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: fast way to delete an Exchange Queue

2008-02-01 Thread Neil Hobson
I can never remember how to use it.  Just go careful 'cos it can whack stuff
in a big way.  J

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2008 17:05
To: MS-Exchange Admin Issues
Subject: Re: fast way to delete an Exchange Queue

 

NM i found it at:

 

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/

 

now to figure out how to use it :P

 

-Ben

On Fri, Feb 1, 2008 at 8:46 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

any idea where to get it?

 

it isn't available here:

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmc
li.exe



 

On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:

 

If you can get your hands on it, aqadmcli.exe should do the trick.

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: 31 January 2008 18:17 


To: MS-Exchange Admin Issues
Subject: fast way to delete an Exchange Queue

 

I have a bunch of emails backed up due to a failed archive/journeling
system. at this point i just want to delete everything that it was trying to
deliver to my email archive system.

 

In my exchange 2003 server the queue name is SMTP -
mailarchive.mydomain.net http://mailarchive.mydomain.net/  (SMTP
Connector).

 

any of you have a script that could clear this queue up? I already deleted
the SMTP Connector in 'Routing Groups -- Connectors

 

any help, i'd be happy! 

 

-Ben

 

 

 

 

 

 

 

 


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-02-01 Thread Ben Nordlander
yeah, no doubt. i have a test server i try things out first.. but i'm using
it on my production server now.

I just didnt' realize it was a line by line tool like nslookup or adsutil.

This is what i have typed in to help fix my problem:

C:
cd \
C:\aqadmcli.exe
setserver myexchangeserver
delmsg flags=rcpt,[EMAIL PROTECTED]

and it goes through each queue deleting emails with that recipient.

for sender it is

delmsg flags=sender,[EMAIL PROTECTED]

or blank senders would be

delmsg flags=sender,sender=



anyways.. nice tool! i just wish there was better documentation on it.

-Ben

On Fri, Feb 1, 2008 at 9:10 AM, Neil Hobson [EMAIL PROTECTED] wrote:



  I can never remember how to use it.  Just go careful 'cos it can whack
 stuff in a big way.  J



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* 01 February 2008 17:05
 *To:* MS-Exchange Admin Issues
 *Subject:* Re: fast way to delete an Exchange Queue



 NM i found it at:



 ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/



 now to figure out how to use it :P



 -Ben

 On Fri, Feb 1, 2008 at 8:46 AM, Ben Nordlander [EMAIL PROTECTED]
 wrote:

 any idea where to get it?



 it isn't available here:


 ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe





 On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:



 If you can get your hands on it, aqadmcli.exe should do the trick.



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* 31 January 2008 18:17


 *To:* MS-Exchange Admin Issues
 *Subject:* fast way to delete an Exchange Queue



 I have a bunch of emails backed up due to a failed archive/journeling
 system. at this point i just want to delete everything that it was trying to
 deliver to my email archive system.



 In my exchange 2003 server the queue name is SMTP -
 mailarchive.mydomain.net (SMTP Connector).



 any of you have a script that could clear this queue up? I already deleted
 the SMTP Connector in 'Routing Groups -- Connectors



 any help, i'd be happy!



 -Ben





















~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-02-01 Thread Ben Nordlander
apparently this command will delete a queue.. i haven't risked it yet
though..  i need to further testing.


If you want to delete an entire queue, you need to do it differently:
queueaction externaldomain.com, qa=MSGACTION,ma=DEL,flags=ALL


maybe this will help someon in the group later on.


-Ben

On Fri, Feb 1, 2008 at 9:46 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

  yeah, no doubt. i have a test server i try things out first.. but i'm
 using it on my production server now.

 I just didnt' realize it was a line by line tool like nslookup or adsutil.

 This is what i have typed in to help fix my problem:

 C:
 cd \
 C:\aqadmcli.exe
 setserver myexchangeserver
 delmsg flags=rcpt,[EMAIL PROTECTED]

 and it goes through each queue deleting emails with that recipient.

 for sender it is

 delmsg flags=sender,[EMAIL PROTECTED]

 or blank senders would be

 delmsg flags=sender,sender=



 anyways.. nice tool! i just wish there was better documentation on it.

 -Ben

   On Fri, Feb 1, 2008 at 9:10 AM, Neil Hobson [EMAIL PROTECTED] wrote:

 
 
   I can never remember how to use it.  Just go careful 'cos it can whack
  stuff in a big way.  J
 
 
 
  *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
  *Sent:* 01 February 2008 17:05
  *To:* MS-Exchange Admin Issues
  *Subject:* Re: fast way to delete an Exchange Queue
 
 
 
  NM i found it at:
 
 
 
  ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/
 
 
 
  now to figure out how to use it :P
 
 
 
  -Ben
 
  On Fri, Feb 1, 2008 at 8:46 AM, Ben Nordlander [EMAIL PROTECTED]
  wrote:
 
  any idea where to get it?
 
 
 
  it isn't available here:
 
 
  ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmcli.exe
 
 
 
 
 
  On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:
 
 
 
  If you can get your hands on it, aqadmcli.exe should do the trick.
 
 
 
  *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
  *Sent:* 31 January 2008 18:17
 
 
  *To:* MS-Exchange Admin Issues
  *Subject:* fast way to delete an Exchange Queue
 
 
 
  I have a bunch of emails backed up due to a failed archive/journeling
  system. at this point i just want to delete everything that it was trying to
  deliver to my email archive system.
 
 
 
  In my exchange 2003 server the queue name is SMTP -
  mailarchive.mydomain.net (SMTP Connector).
 
 
 
  any of you have a script that could clear this queue up? I already
  deleted the SMTP Connector in 'Routing Groups -- Connectors
 
 
 
  any help, i'd be happy!
 
 
 
  -Ben
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: fast way to delete an Exchange Queue

2008-02-01 Thread Michael B. Smith
*cough*

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: William Lefkovics [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 8:24 PM
To: MS-Exchange Admin Issues
Subject: RE: fast way to delete an Exchange Queue

 

 

I dated a wonderful black girl just like that.

 

 

From: Neil Hobson [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 9:11 AM
To: MS-Exchange Admin Issues
Subject: RE: fast way to delete an Exchange Queue

 

 

I can never remember how to use it.  Just go careful 'cos it can whack stuff
in a big way.  J

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2008 17:05
To: MS-Exchange Admin Issues
Subject: Re: fast way to delete an Exchange Queue

 

NM i found it at:

 

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/

 

now to figure out how to use it :P

 

-Ben

On Fri, Feb 1, 2008 at 8:46 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

any idea where to get it?

 

it isn't available here:

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmc
li.exe



 

On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:

 

 

 


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: fast way to delete an Exchange Queue

2008-02-01 Thread William Lefkovics
I dated a wonderful black girl just like that.

 

 

From: Neil Hobson [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 01, 2008 9:11 AM
To: MS-Exchange Admin Issues
Subject: RE: fast way to delete an Exchange Queue

 

 

I can never remember how to use it.  Just go careful 'cos it can whack stuff
in a big way.  J

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: 01 February 2008 17:05
To: MS-Exchange Admin Issues
Subject: Re: fast way to delete an Exchange Queue

 

NM i found it at:

 

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/

 

now to figure out how to use it :P

 

-Ben

On Fri, Feb 1, 2008 at 8:46 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

any idea where to get it?

 

it isn't available here:

ftp://ftp.microsoft.com/pss/Tools/Exchange%20Support%20Tools/Aqadmcli/aqadmc
li.exe



 

On Fri, Feb 1, 2008 at 12:31 AM, Neil Hobson [EMAIL PROTECTED] wrote:


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-01-31 Thread Ben Nordlander
yes, i found this too.. but it isnt' sticking out to me how best to edit
this..

-Ben

On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith 
[EMAIL PROTECTED] wrote:



  http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt



 You'll have to remove the specific message selection logic, but this
 shows you the path to follow…



 Regards,



 Michael B. Smith

 MCSE/Exchange MVP

 http://TheEssentialExchange.com http://theessentialexchange.com/



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 1:17 PM
 *To:* MS-Exchange Admin Issues
 *Subject:* fast way to delete an Exchange Queue



 I have a bunch of emails backed up due to a failed archive/journeling
 system. at this point i just want to delete everything that it was trying to
 deliver to my email archive system.



 In my exchange 2003 server the queue name is SMTP -
 mailarchive.mydomain.net (SMTP Connector).



 any of you have a script that could clear this queue up? I already deleted
 the SMTP Connector in 'Routing Groups -- Connectors



 any help, i'd be happy!



 -Ben







~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-01-31 Thread Ben Nordlander
w00t thanks Michael. i will give that a try! thanks a ton, and i'll be back
with results.

-Ben

On Thu, Jan 31, 2008 at 10:43 AM, Michael B. Smith 
[EMAIL PROTECTED] wrote:



  Take this statement:



   Set objMsgsList = objWMIExch.ExecQuery (Select * From  _

  Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId=' 
 _

  objQueueInst.LinkID  ' And LinkName=' _

  objQueueInst.LinkName  ' And QueueId=' _

  objQueueInst.QueueID  ' And QueueName=' _

  objQueueInst.QueueName ' And VirtualMachine=' _

  objQueueInst.VirtualMachine  ' And VirtualServerName=' _

  objQueueInst.VirtualServerName  ' And MessageID =' _

  strMessageID  ')



 And turn it into this:



   Set objMsgsList = objWMIExch.ExecQuery (Select * From  _

  Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId=' 
 _

  objQueueInst.LinkID  ' And LinkName=' _

  objQueueInst.LinkName  ' And QueueId=' _

  objQueueInst.QueueID  ' And QueueName=' _

  objQueueInst.QueueName ' And VirtualMachine=' _

  objQueueInst.VirtualMachine  ' And VirtualServerName=' _

  objQueueInst.VirtualServerName  ')



 Note the two line change that removes the MessageID from the SELECT
 statement.



 Regards,



 Michael B. Smith

 MCSE/Exchange MVP

 http://TheEssentialExchange.com http://theessentialexchange.com/



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 1:37 PM
 *To:* MS-Exchange Admin Issues
 *Subject:* Re: fast way to delete an Exchange Queue



 yes, i found this too.. but it isnt' sticking out to me how best to edit
 this..



 -Ben

 On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith 
 [EMAIL PROTECTED] wrote:



 http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt



 You'll have to remove the specific message selection logic, but this
 shows you the path to follow…



 Regards,



 Michael B. Smith

 MCSE/Exchange MVP

 http://TheEssentialExchange.com http://theessentialexchange.com/



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 1:17 PM
 *To:* MS-Exchange Admin Issues
 *Subject:* fast way to delete an Exchange Queue



 I have a bunch of emails backed up due to a failed archive/journeling
 system. at this point i just want to delete everything that it was trying to
 deliver to my email archive system.



 In my exchange 2003 server the queue name is SMTP -
 mailarchive.mydomain.net (SMTP Connector).



 any of you have a script that could clear this queue up? I already deleted
 the SMTP Connector in 'Routing Groups -- Connectors



 any help, i'd be happy!



 -Ben

















~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-01-31 Thread Ben Nordlander
i'm trying this out on my test server.. and it doesn't seem to work. i sent
an email to [EMAIL PROTECTED] which is now queued for retry on my test exchange
server. and i put in attbi.com in the script config part and run cscript
thatscript.vbs and it finishes with no error or output really beyond the
script host version. hmm.. do you think i'd need to put in the entire name
as it is displayed in ESM?

-Ben

On Thu, Jan 31, 2008 at 10:56 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

  w00t thanks Michael. i will give that a try! thanks a ton, and i'll be
 back with results.

 -Ben

   On Thu, Jan 31, 2008 at 10:43 AM, Michael B. Smith 
 [EMAIL PROTECTED] wrote:

 
 
   Take this statement:
 
 
 
Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
 
   Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And 
  LinkId=' _
 
   objQueueInst.LinkID  ' And LinkName=' _
 
   objQueueInst.LinkName  ' And QueueId=' _
 
   objQueueInst.QueueID  ' And QueueName=' _
 
   objQueueInst.QueueName ' And VirtualMachine=' _
 
   objQueueInst.VirtualMachine  ' And VirtualServerName=' _
 
   objQueueInst.VirtualServerName  ' And MessageID =' _
 
   strMessageID  ')
 
 
 
  And turn it into this:
 
 
 
Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
 
   Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And 
  LinkId=' _
 
   objQueueInst.LinkID  ' And LinkName=' _
 
   objQueueInst.LinkName  ' And QueueId=' _
 
   objQueueInst.QueueID  ' And QueueName=' _
 
   objQueueInst.QueueName ' And VirtualMachine=' _
 
   objQueueInst.VirtualMachine  ' And VirtualServerName=' _
 
   objQueueInst.VirtualServerName  ')
 
 
 
  Note the two line change that removes the MessageID from the SELECT
  statement.
 
 
 
  Regards,
 
 
 
  Michael B. Smith
 
  MCSE/Exchange MVP
 
  http://TheEssentialExchange.com http://theessentialexchange.com/
 
 
 
  *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
  *Sent:* Thursday, January 31, 2008 1:37 PM
  *To:* MS-Exchange Admin Issues
  *Subject:* Re: fast way to delete an Exchange Queue
 
 
 
  yes, i found this too.. but it isnt' sticking out to me how best to edit
  this..
 
 
 
  -Ben
 
  On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith 
  [EMAIL PROTECTED] wrote:
 
 
 
 
  http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt
 
 
 
  You'll have to remove the specific message selection logic, but this
  shows you the path to follow…
 
 
 
  Regards,
 
 
 
  Michael B. Smith
 
  MCSE/Exchange MVP
 
  http://TheEssentialExchange.com http://theessentialexchange.com/
 
 
 
  *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
  *Sent:* Thursday, January 31, 2008 1:17 PM
  *To:* MS-Exchange Admin Issues
  *Subject:* fast way to delete an Exchange Queue
 
 
 
  I have a bunch of emails backed up due to a failed archive/journeling
  system. at this point i just want to delete everything that it was trying to
  deliver to my email archive system.
 
 
 
  In my exchange 2003 server the queue name is SMTP -
  mailarchive.mydomain.net (SMTP Connector).
 
 
 
  any of you have a script that could clear this queue up? I already
  deleted the SMTP Connector in 'Routing Groups -- Connectors
 
 
 
  any help, i'd be happy!
 
 
 
  -Ben
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 



~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-01-31 Thread Ben Nordlander
nevermind it worked.. for some reason just saving the vbs file in notepad
and running it wasn't saving my changes.. or something. i closed it and ran
it on my test server.. and it worked. i just tried it on my production
server for hotmai.com that had one email in it.. and it cleared that right
up.. so here i go on my 85,000 queue :)

-Ben

On Thu, Jan 31, 2008 at 11:39 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

  i'm trying this out on my test server.. and it doesn't seem to work. i
 sent an email to [EMAIL PROTECTED] which is now queued for retry on my test
 exchange server. and i put in attbi.com in the script config part and run
 cscript thatscript.vbs and it finishes with no error or output really
 beyond the script host version. hmm.. do you think i'd need to put in the
 entire name as it is displayed in ESM?

 -Ben

  On Thu, Jan 31, 2008 at 10:56 AM, Ben Nordlander [EMAIL PROTECTED]
 wrote:

   w00t thanks Michael. i will give that a try! thanks a ton, and i'll be
  back with results.
 
  -Ben
 
On Thu, Jan 31, 2008 at 10:43 AM, Michael B. Smith 
  [EMAIL PROTECTED] wrote:
 
  
  
Take this statement:
  
  
  
 Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
  
Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And 
   LinkId=' _
  
objQueueInst.LinkID  ' And LinkName=' _
  
objQueueInst.LinkName  ' And QueueId=' _
  
objQueueInst.QueueID  ' And QueueName=' _
  
objQueueInst.QueueName ' And VirtualMachine=' _
  
objQueueInst.VirtualMachine  ' And VirtualServerName=' _
  
objQueueInst.VirtualServerName  ' And MessageID =' _
  
strMessageID  ')
  
  
  
   And turn it into this:
  
  
  
 Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
  
Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And 
   LinkId=' _
  
objQueueInst.LinkID  ' And LinkName=' _
  
objQueueInst.LinkName  ' And QueueId=' _
  
objQueueInst.QueueID  ' And QueueName=' _
  
objQueueInst.QueueName ' And VirtualMachine=' _
  
objQueueInst.VirtualMachine  ' And VirtualServerName=' _
  
objQueueInst.VirtualServerName  ')
  
  
  
   Note the two line change that removes the MessageID from the SELECT
   statement.
  
  
  
   Regards,
  
  
  
   Michael B. Smith
  
   MCSE/Exchange MVP
  
   http://TheEssentialExchange.com http://theessentialexchange.com/
  
  
  
   *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
   *Sent:* Thursday, January 31, 2008 1:37 PM
   *To:* MS-Exchange Admin Issues
   *Subject:* Re: fast way to delete an Exchange Queue
  
  
  
   yes, i found this too.. but it isnt' sticking out to me how best to
   edit this..
  
  
  
   -Ben
  
   On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith 
   [EMAIL PROTECTED] wrote:
  
  
  
  
   http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt
  
  
  
   You'll have to remove the specific message selection logic, but this
   shows you the path to follow…
  
  
  
   Regards,
  
  
  
   Michael B. Smith
  
   MCSE/Exchange MVP
  
   http://TheEssentialExchange.com http://theessentialexchange.com/
  
  
  
   *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
   *Sent:* Thursday, January 31, 2008 1:17 PM
   *To:* MS-Exchange Admin Issues
   *Subject:* fast way to delete an Exchange Queue
  
  
  
   I have a bunch of emails backed up due to a failed archive/journeling
   system. at this point i just want to delete everything that it was trying 
   to
   deliver to my email archive system.
  
  
  
   In my exchange 2003 server the queue name is SMTP -
   mailarchive.mydomain.net (SMTP Connector).
  
  
  
   any of you have a script that could clear this queue up? I already
   deleted the SMTP Connector in 'Routing Groups -- Connectors
  
  
  
   any help, i'd be happy!
  
  
  
   -Ben
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
 




~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-01-31 Thread Ben Nordlander
Well that sucks. I let this script run and after about 3 hours of running,
and it fails with this error...

C:\exchange-queue-delete.vbs(39, 10) SWbemObjectEx: Not found

/sigh

-Ben

On Thu, Jan 31, 2008 at 12:06 PM, Ben Nordlander [EMAIL PROTECTED]
wrote:

  nevermind it worked.. for some reason just saving the vbs file in notepad
 and running it wasn't saving my changes.. or something. i closed it and ran
 it on my test server.. and it worked. i just tried it on my production
 server for hotmai.com that had one email in it.. and it cleared that right
 up.. so here i go on my 85,000 queue :)

 -Ben

   On Thu, Jan 31, 2008 at 11:39 AM, Ben Nordlander 
 [EMAIL PROTECTED] wrote:

   i'm trying this out on my test server.. and it doesn't seem to work. i
  sent an email to [EMAIL PROTECTED] which is now queued for retry on my test
  exchange server. and i put in attbi.com in the script config part and
  run cscript thatscript.vbs and it finishes with no error or output
  really beyond the script host version. hmm.. do you think i'd need to put in
  the entire name as it is displayed in ESM?
 
  -Ben
 
   On Thu, Jan 31, 2008 at 10:56 AM, Ben Nordlander 
  [EMAIL PROTECTED] wrote:
 
w00t thanks Michael. i will give that a try! thanks a ton, and i'll
   be back with results.
  
   -Ben
  
 On Thu, Jan 31, 2008 at 10:43 AM, Michael B. Smith 
   [EMAIL PROTECTED] wrote:
  
   
   
 Take this statement:
   
   
   
  Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
   
 Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And 
LinkId=' _
   
 objQueueInst.LinkID  ' And LinkName=' _
   
 objQueueInst.LinkName  ' And QueueId=' _
   
 objQueueInst.QueueID  ' And QueueName=' _
   
 objQueueInst.QueueName ' And VirtualMachine=' _
   
 objQueueInst.VirtualMachine  ' And VirtualServerName=' _
   
 objQueueInst.VirtualServerName  ' And MessageID =' _
   
 strMessageID  ')
   
   
   
And turn it into this:
   
   
   
  Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
   
 Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And 
LinkId=' _
   
 objQueueInst.LinkID  ' And LinkName=' _
   
 objQueueInst.LinkName  ' And QueueId=' _
   
 objQueueInst.QueueID  ' And QueueName=' _
   
 objQueueInst.QueueName ' And VirtualMachine=' _
   
 objQueueInst.VirtualMachine  ' And VirtualServerName=' _
   
 objQueueInst.VirtualServerName  ')
   
   
   
Note the two line change that removes the MessageID from the SELECT
statement.
   
   
   
Regards,
   
   
   
Michael B. Smith
   
MCSE/Exchange MVP
   
http://TheEssentialExchange.com http://theessentialexchange.com/
   
   
   
*From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 31, 2008 1:37 PM
*To:* MS-Exchange Admin Issues
*Subject:* Re: fast way to delete an Exchange Queue
   
   
   
yes, i found this too.. but it isnt' sticking out to me how best to
edit this..
   
   
   
-Ben
   
On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith 
[EMAIL PROTECTED] wrote:
   
   
   
   
http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt
   
   
   
You'll have to remove the specific message selection logic, but
this shows you the path to follow…
   
   
   
Regards,
   
   
   
Michael B. Smith
   
MCSE/Exchange MVP
   
http://TheEssentialExchange.com http://theessentialexchange.com/
   
   
   
*From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, January 31, 2008 1:17 PM
*To:* MS-Exchange Admin Issues
*Subject:* fast way to delete an Exchange Queue
   
   
   
I have a bunch of emails backed up due to a failed
archive/journeling system. at this point i just want to delete 
everything
that it was trying to deliver to my email archive system.
   
   
   
In my exchange 2003 server the queue name is SMTP -
mailarchive.mydomain.net (SMTP Connector).
   
   
   
any of you have a script that could clear this queue up? I already
deleted the SMTP Connector in 'Routing Groups -- Connectors
   
   
   
any help, i'd be happy!
   
   
   
-Ben
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
  
  
 
 
 




~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-01-31 Thread Ben Nordlander
/



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 1:37 PM
 *To:* MS-Exchange Admin Issues
 *Subject:* Re: fast way to delete an Exchange Queue



 yes, i found this too.. but it isnt' sticking out to me how best
 to edit this..



 -Ben

 On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith 
 [EMAIL PROTECTED] wrote:




 http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt



 You'll have to remove the specific message selection logic, but
 this shows you the path to follow…



 Regards,



 Michael B. Smith

 MCSE/Exchange MVP

 http://TheEssentialExchange.com http://theessentialexchange.com/



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 1:17 PM
 *To:* MS-Exchange Admin Issues
 *Subject:* fast way to delete an Exchange Queue



 I have a bunch of emails backed up due to a failed
 archive/journeling system. at this point i just want to delete 
 everything
 that it was trying to deliver to my email archive system.



 In my exchange 2003 server the queue name is SMTP -
 mailarchive.mydomain.net (SMTP Connector).



 any of you have a script that could clear this queue up? I already
 deleted the SMTP Connector in 'Routing Groups -- Connectors



 any help, i'd be happy!



 -Ben
















   
   
  
  
  
 
 
 




~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

RE: fast way to delete an Exchange Queue

2008-01-31 Thread Michael B. Smith
Did it produce any output whatsoever?

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 6:18 PM
To: MS-Exchange Admin Issues
Subject: Re: fast way to delete an Exchange Queue

 

Well that sucks. I let this script run and after about 3 hours of running,
and it fails with this error...

 

C:\exchange-queue-delete.vbs(39, 10) SWbemObjectEx: Not found

 

/sigh

 

-Ben

On Thu, Jan 31, 2008 at 12:06 PM, Ben Nordlander [EMAIL PROTECTED]
wrote:

nevermind it worked.. for some reason just saving the vbs file in notepad
and running it wasn't saving my changes.. or something. i closed it and ran
it on my test server.. and it worked. i just tried it on my production
server for hotmai.com http://hotmai.com/  that had one email in it.. and
it cleared that right up.. so here i go on my 85,000 queue :)

 

-Ben

On Thu, Jan 31, 2008 at 11:39 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

i'm trying this out on my test server.. and it doesn't seem to work. i sent
an email to [EMAIL PROTECTED] which is now queued for retry on my test exchange
server. and i put in attbi.com http://attbi.com/  in the script config
part and run cscript thatscript.vbs and it finishes with no error or output
really beyond the script host version. hmm.. do you think i'd need to put in
the entire name as it is displayed in ESM?

 

-Ben

On Thu, Jan 31, 2008 at 10:56 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

w00t thanks Michael. i will give that a try! thanks a ton, and i'll be back
with results.

 

-Ben

On Thu, Jan 31, 2008 at 10:43 AM, Michael B. Smith
[EMAIL PROTECTED] wrote:

 

Take this statement:

 

  Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
 Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId='
_
 objQueueInst.LinkID  ' And LinkName=' _
 objQueueInst.LinkName  ' And QueueId=' _
 objQueueInst.QueueID  ' And QueueName=' _
 objQueueInst.QueueName ' And VirtualMachine=' _
 objQueueInst.VirtualMachine  ' And VirtualServerName=' _
 objQueueInst.VirtualServerName  ' And MessageID =' _
 strMessageID  ')

 

And turn it into this:

 

  Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
 Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId='
_
 objQueueInst.LinkID  ' And LinkName=' _
 objQueueInst.LinkName  ' And QueueId=' _
 objQueueInst.QueueID  ' And QueueName=' _
 objQueueInst.QueueName ' And VirtualMachine=' _
 objQueueInst.VirtualMachine  ' And VirtualServerName=' _
 objQueueInst.VirtualServerName  ')

 

Note the two line change that removes the MessageID from the SELECT
statement.

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com http://theessentialexchange.com/ 

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 1:37 PM 


To: MS-Exchange Admin Issues

Subject: Re: fast way to delete an Exchange Queue 

 

yes, i found this too.. but it isnt' sticking out to me how best to edit
this.. 

 

-Ben

On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith
[EMAIL PROTECTED] wrote:

 

http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt

 

You'll have to remove the specific message selection logic, but this shows
you the path to follow.

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com http://theessentialexchange.com/ 

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 1:17 PM
To: MS-Exchange Admin Issues
Subject: fast way to delete an Exchange Queue

 

I have a bunch of emails backed up due to a failed archive/journeling
system. at this point i just want to delete everything that it was trying to
deliver to my email archive system.

 

In my exchange 2003 server the queue name is SMTP -
mailarchive.mydomain.net http://mailarchive.mydomain.net/  (SMTP
Connector).

 

any of you have a script that could clear this queue up? I already deleted
the SMTP Connector in 'Routing Groups -- Connectors

 

any help, i'd be happy! 

 

-Ben

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~ http://www.sunbeltsoftware.com/Ninja~

Re: fast way to delete an Exchange Queue

2008-01-31 Thread Ben Nordlander
sorry, i should have been more specific on the outcome which was nothing. It
never deleted any email in the queue. It must have timed-out somewhere after
3 hours. granted there are 80,000 emails in this queue. I have looked all
over the file system and can't find if these emails are stored somewhere...
i checked all the usual suspects ( or so i think ). like C:\Program
Files\Exchsrvr\Mailroot\vsi 1\Queue and the one in C:\inetpub\mailroot...

5 minute break...

you know.. these emails are starting to shift into the deferred queue and
now i'm finding them i think on the default exchange queue folder now..
hmmm. Yes they are shifting from delay to NDRs.. good! maybe i'll just wait
for that to fill up and then delete them outta there. Unless anyone else has
a better idea. Thanks for being curious in my efforts.

-Ben
On Thu, Jan 31, 2008 at 4:01 PM, Don Andrews [EMAIL PROTECTED]
wrote:



  Is it not found 'cause it finished?


  --

 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 3:18 PM
 *To:* MS-Exchange Admin Issues
 *Subject:* Re: fast way to delete an Exchange Queue



 Well that sucks. I let this script run and after about 3 hours of running,
 and it fails with this error...



 C:\exchange-queue-delete.vbs(39, 10) SWbemObjectEx: Not found



 /sigh



 -Ben

 On Thu, Jan 31, 2008 at 12:06 PM, Ben Nordlander [EMAIL PROTECTED]
 wrote:

 nevermind it worked.. for some reason just saving the vbs file in notepad
 and running it wasn't saving my changes.. or something. i closed it and ran
 it on my test server.. and it worked. i just tried it on my production
 server for hotmai.com that had one email in it.. and it cleared that right
 up.. so here i go on my 85,000 queue :)



 -Ben

 On Thu, Jan 31, 2008 at 11:39 AM, Ben Nordlander [EMAIL PROTECTED]
 wrote:

 i'm trying this out on my test server.. and it doesn't seem to work. i
 sent an email to [EMAIL PROTECTED] which is now queued for retry on my test
 exchange server. and i put in attbi.com in the script config part and run
 cscript thatscript.vbs and it finishes with no error or output really
 beyond the script host version. hmm.. do you think i'd need to put in the
 entire name as it is displayed in ESM?



 -Ben

 On Thu, Jan 31, 2008 at 10:56 AM, Ben Nordlander [EMAIL PROTECTED]
 wrote:

  w00t thanks Michael. i will give that a try! thanks a ton, and i'll be
 back with results.



 -Ben

 On Thu, Jan 31, 2008 at 10:43 AM, Michael B. Smith 
 [EMAIL PROTECTED] wrote:



 Take this statement:



   Set objMsgsList = objWMIExch.ExecQuery (Select * From  _

  Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId=' 
 _

  objQueueInst.LinkID  ' And LinkName=' _

  objQueueInst.LinkName  ' And QueueId=' _

  objQueueInst.QueueID  ' And QueueName=' _

  objQueueInst.QueueName ' And VirtualMachine=' _

  objQueueInst.VirtualMachine  ' And VirtualServerName=' _

  objQueueInst.VirtualServerName  ' And MessageID =' _

  strMessageID  ')



 And turn it into this:



   Set objMsgsList = objWMIExch.ExecQuery (Select * From  _

  Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId=' 
 _

  objQueueInst.LinkID  ' And LinkName=' _

  objQueueInst.LinkName  ' And QueueId=' _

  objQueueInst.QueueID  ' And QueueName=' _

  objQueueInst.QueueName ' And VirtualMachine=' _

  objQueueInst.VirtualMachine  ' And VirtualServerName=' _

  objQueueInst.VirtualServerName  ')



 Note the two line change that removes the MessageID from the SELECT
 statement.



 Regards,



 Michael B. Smith

 MCSE/Exchange MVP

 http://TheEssentialExchange.com http://theessentialexchange.com/



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 1:37 PM


 *To:* MS-Exchange Admin Issues

 *Subject:* Re: fast way to delete an Exchange Queue



 yes, i found this too.. but it isnt' sticking out to me how best to edit
 this..



 -Ben

 On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith 
 [EMAIL PROTECTED] wrote:



 http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt



 You'll have to remove the specific message selection logic, but this
 shows you the path to follow…



 Regards,



 Michael B. Smith

 MCSE/Exchange MVP

 http://TheEssentialExchange.com http://theessentialexchange.com/



 *From:* Ben Nordlander [mailto:[EMAIL PROTECTED]
 *Sent:* Thursday, January 31, 2008 1:17 PM
 *To:* MS-Exchange Admin Issues
 *Subject:* fast way to delete an Exchange Queue



 I have a bunch of emails backed up due to a failed archive/journeling
 system. at this point i just want to delete everything that it was trying to
 deliver to my email archive system.



 In my exchange 2003 server the queue name is SMTP -
 mailarchive.mydomain.net (SMTP Connector).



 any of you have a script that could clear this queue up? I already deleted

RE: fast way to delete an Exchange Queue

2008-01-31 Thread Michael B. Smith
You ran outta memory.

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 8:19 PM
To: MS-Exchange Admin Issues
Subject: Re: fast way to delete an Exchange Queue

 

sorry, i should have been more specific on the outcome which was nothing. It
never deleted any email in the queue. It must have timed-out somewhere after
3 hours. granted there are 80,000 emails in this queue. I have looked all
over the file system and can't find if these emails are stored somewhere...
i checked all the usual suspects ( or so i think ). like C:\Program
Files\Exchsrvr\Mailroot\vsi 1\Queue and the one in C:\inetpub\mailroot... 

 

5 minute break...

 

you know.. these emails are starting to shift into the deferred queue and
now i'm finding them i think on the default exchange queue folder now..
hmmm. Yes they are shifting from delay to NDRs.. good! maybe i'll just wait
for that to fill up and then delete them outta there. Unless anyone else has
a better idea. Thanks for being curious in my efforts.

 

-Ben

On Thu, Jan 31, 2008 at 4:01 PM, Don Andrews [EMAIL PROTECTED]
wrote:

 

Is it not found 'cause it finished?

 

  _  

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 3:18 PM
To: MS-Exchange Admin Issues
Subject: Re: fast way to delete an Exchange Queue

 

Well that sucks. I let this script run and after about 3 hours of running,
and it fails with this error...

 

C:\exchange-queue-delete.vbs(39, 10) SWbemObjectEx: Not found

 

/sigh

 

-Ben

On Thu, Jan 31, 2008 at 12:06 PM, Ben Nordlander [EMAIL PROTECTED]
wrote:

nevermind it worked.. for some reason just saving the vbs file in notepad
and running it wasn't saving my changes.. or something. i closed it and ran
it on my test server.. and it worked. i just tried it on my production
server for hotmai.com http://hotmai.com/  that had one email in it.. and
it cleared that right up.. so here i go on my 85,000 queue :)

 

-Ben

On Thu, Jan 31, 2008 at 11:39 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

i'm trying this out on my test server.. and it doesn't seem to work. i sent
an email to [EMAIL PROTECTED] which is now queued for retry on my test exchange
server. and i put in attbi.com http://attbi.com/  in the script config
part and run cscript thatscript.vbs and it finishes with no error or output
really beyond the script host version. hmm.. do you think i'd need to put in
the entire name as it is displayed in ESM?

 

-Ben

On Thu, Jan 31, 2008 at 10:56 AM, Ben Nordlander [EMAIL PROTECTED]
wrote:

w00t thanks Michael. i will give that a try! thanks a ton, and i'll be back
with results.

 

-Ben

On Thu, Jan 31, 2008 at 10:43 AM, Michael B. Smith
[EMAIL PROTECTED] wrote:

 

Take this statement:

 

  Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
 Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId='
_
 objQueueInst.LinkID  ' And LinkName=' _
 objQueueInst.LinkName  ' And QueueId=' _
 objQueueInst.QueueID  ' And QueueName=' _
 objQueueInst.QueueName ' And VirtualMachine=' _
 objQueueInst.VirtualMachine  ' And VirtualServerName=' _
 objQueueInst.VirtualServerName  ' And MessageID =' _
 strMessageID  ')

 

And turn it into this:

 

  Set objMsgsList = objWMIExch.ExecQuery (Select * From  _
 Exchange_QueuedSMTPMessage Where ProtocolName='SMTP' And LinkId='
_
 objQueueInst.LinkID  ' And LinkName=' _
 objQueueInst.LinkName  ' And QueueId=' _
 objQueueInst.QueueID  ' And QueueName=' _
 objQueueInst.QueueName ' And VirtualMachine=' _
 objQueueInst.VirtualMachine  ' And VirtualServerName=' _
 objQueueInst.VirtualServerName  ')

 

Note the two line change that removes the MessageID from the SELECT
statement.

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com http://theessentialexchange.com/ 

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 1:37 PM 


To: MS-Exchange Admin Issues

Subject: Re: fast way to delete an Exchange Queue 

 

yes, i found this too.. but it isnt' sticking out to me how best to edit
this.. 

 

-Ben

On Thu, Jan 31, 2008 at 10:28 AM, Michael B. Smith
[EMAIL PROTECTED] wrote:

 

http://www.exchangecookbook.com/files/07-14-delete-message-from-queue.txt

 

You'll have to remove the specific message selection logic, but this shows
you the path to follow.

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com http://theessentialexchange.com/ 

 

From: Ben Nordlander [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 31, 2008 1:17 PM
To: MS-Exchange Admin Issues
Subject: fast way to delete an Exchange Queue

 

I have a bunch of emails backed up due to a failed archive/journeling
system. at this point i just want to delete everything that it was trying