« Chapter 7 scripts | Main | It's shipping! »
June 21, 2005
Chapter 7 scripts, reloaded
Hold the phone! You can't have a chapter about SMTP configuration without scripts, Though there were fewer scripts in this chapter than I would have liked to see, we still had them. Scripts in this chapter include:
- Create a routing group
- Delete a routing group
- Change the routing group master
- Move a server to a new routing group
- List all the SMTP queues on a virtual server
- Inspect the contents of an SMTP queue
- Delete a message from a queue
Or you can get 'em as a single bundle.
There's one other recipe in this chapter (7.21, Setting IP Address Restrictions for Multiple Servers) that really should have a script, but the command-line tools turns out to be a combination of COM object and VBScript already. Rather than duplicate effort, we figured you could just look at the included script if you need to write your own, since you'll need the COM object from this tool anyway.
Posted by Devin Ganger at June 21, 2005 11:34 AM
Comments
Yeah, the problem was that I never got a copy of the scripts when you wrote the chapter, and I was too busy to read through it again looking for them :) Thanks for the catch!
Posted by: Paul at June 21, 2005 12:27 PM
I am having some problems with the script that is enumerating the SMTP VS's. After putting in my server name and VS instance (1), it is returning:
test.vbs(23, 1) (null): 0x80041010
where 0x80041010 returns WBEM_E_INVALID_CLASS when running it against err.exe. Only thing I changed was setting the below:
' ------ SCRIPT CONFIGURATION -----
' host name of the Exchange server
strHostname = "naexbr01"
' e.g., red-exch02 ' The number of the SMTP virtual server instance
strVSInstance = "1"' e.g., 1 for the default SMTP virtual server
' ------ END CONFIGURATION --------
Any idea what is wrong?
Awesome book btw...got mine today!
Posted by: Steven Presley at June 23, 2005 12:40 PM
Does anyone have a script for cleaning out the badmail and log files within Exhchange server?
Posted by: Kameron Berget at June 30, 2005 09:16 AM