Script - Exchange 2003 "Do Not Mount This Store At Startup"

raju1706
raju1706 used Ask the Experts™
on
I need a script to check whether "Do Not Mount This Store At Startup" is enabled or disabled for a Database in Exchange 2003.

Thank you
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011
Commented:
Try the following.

Set objDB = GetObject _
("LDAP://CN= Mbxs A-C,CN= SG Mbxs A-G,CN=InformationStore,CN=EX001,CN=Servers,CN=USA,CN=Administrative Groups,CN=Contoso,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=contoso,DC=com")
objDb.GetInfo

If objDb.msExchEDBOffline=0 Then
    WScript.Echo "Disabled"  
Else
    WScript.Echo "Enabled"  
End If

Open in new window

Top Expert 2011

Commented:
You require the Database DN from Configuration partition. You can use ADSIedit to get the information.

Author

Commented:
Worked Perfectly..Thank You

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial