Exchange 2003, script for mailbox DB maintenance interval - Please Help
Hi All,I require a vb script which wouldchange the "Maintenance interval" ofall the mailboxDB'sto 6 to 9pm. I googled this and didnot find any which talks about changing the maintenance interval from command line or script. google only talks about steps to change using exchange system manager. One thing i came up is for exchange 2007 for which Exchange Management Shell command was there, its like below. Set-MailboxDatabase -Identity "Server01\MailboxDatabase1" -MaintenanceSchedule "Sun.2:00-Sun.3:00","Wed.2:00-Wed.3:00" But i didnot find any for exchange 2003 (command line or script based). Can anyonepleae help me by giving some pointers of how i can start writing a vbscript or other scriptformodifying maintenance interval for various DB's present in an exchange 2003. I herewith paste the steps available for changing the maintenance interval from Exchange system manager, Set Maintenance Intervals of Data Stores Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager. Expand Servers, and then expand the server that you want to work with. Expand the storage group that you want to work with. In the list of available data stores in the details pane, right-click the store that you want to work with, and then click Properties. In the Store Properties dialog box, click the Database tab. Do one of the following: In the Maintenance interval list, click a new interval. Click Customize to access the Schedule dialog box, and then create a custom interval. Click OK. but all i require is an script to perform the above, Can you pleae hlep me.ThanksRajesh
July 2nd, 2009 10:47pm

I'm not sure if there's a way to script this, but how about a system policy? You can create policies in Exchange 2003 with a specific maintenance interval.Not what you were looking for exactly, I know,but may help for mass modification.-alex
Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2009 1:39am

You can achieve the goal using System Policies no need to go for scripts Right click on Administrative Groups ->New ->System Policy Container Right Click on System Policy Container->Select Mailbox store Policy then Select Database check box give name to policy Then select second tab Database Policy "Maintenance Interval" set your time. Once the policy is created then right click on that new policy and add the required stores for which you want to set the "Maintenance Interval"6 to 9pm. Vinod |CCNA|MCSE 2003 +Messaging|MCTS|ITIL V3|
July 3rd, 2009 10:48am

Hi Alex and Vinod,Thank you so muchfor replying.But withfurther Googling I saw that the maintenance schedule is stored in msExchPrivateMDB class object in AD. I used ADSIEDIT to see this attribute: Go to Configuration Container - CN=Services - CN=Microsoft Exchange - CN=Organization Name - CN=Administrative Groups - CN=Administrative Group Name - CN=Servers - CN=ServerName - CN=Information Store - CN=Stoarge Group Name - CN=Mailbox Store Name - right click properties obtain the attribute called activationSchedule. This activation schedule attribute is of type OctetString and i also found that when i changethe maintenance interval in Exchange system manager it wasreflecting in this attribute value when opened with ADSIEDIT tool...Can you please help me in writing up a vbscript which will result in changing the activationSchedule attribute value of all the mailbox stores present in a particularexchange server to a random time interval. i would require this script to be run in about 13 exchange server present here. Please help me, I am relatively new to vbscript. For example:for firstStorageGroup --> firstMailBoxStore time interval should be at 6am to 9am - 3hrs intervalfor firstStorageGroup --> secondMailBoxStore time interval should be at 9am to 12pm - 3 hrs intervalfor firstStorageGroup --> firstpublicmailboxstore time interval should be at 12pm to 3pm -3hrs interval for secondStorageGroup --> myMailboxStore time interval should be at 3pm to 6pm - 3hrs interval and so on.I do appreciate your time. ThanksRajesh
Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2009 6:14pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics