Welcome, Guest
Please Login or Register.    Lost Password?
vbs check status exchange server store (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: vbs check status exchange server store
#24
vbs check status exchange server store 9 Years, 3 Months ago Karma: 0  
With this vbs script you can check the status of the exchange store. If it's dismounted you can mount the store.

To get the syntax of the script use cscript store.vbs /?
File Attachment:
File Name: store.txt
File Size: 3873


You can use this script in a batch to mount the store if it's dismounted e.g.

@echo off
rem check status mailstore
cscript store.vbs status server01 "First Storage Group" "Mailbox Store (server01)"
if %errorlevel%==0 goto mounted
if %errorlevel%==1 goto unmounted
if %errorlevel%==2 goto mounting
if %errorlevel%==3 goto dismounting
goto end

:mounted
echo The store is mounted
goto end

:unmounted
echo The store is dismounted
cscript store.vbs mount server01 "First Storage Group" "Mailbox Store (server01)"
goto end

:mounting
echo The store is mounting
goto end

:dismounting
echo The store is dismounting
goto end

:end
exit
admin (Admin)
Administrator
Posts: 87
graph
User Offline Click here to see the profile of this user
Logged Logged  
 
Last Edit: 2009/08/22 10:30 By admin.
 
The administrator has disabled public write access.  
Go to top