Getting Exchange Protocol Virtual Server Status (Start,Stop,
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Getting Exchange Protocol Virtual Server Status (Start,Stop,

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Manu
Guest





Posted: Thu Sep 22, 2005 8:58 am    Post subject: Getting Exchange Protocol Virtual Server Status (Start,Stop, Reply with quote

Hi All,



We can see Virtual servers for every protocols on 'Exchange System Manager'.
By right clicking the each virtual severs we can see the status as (Start,
stop or Paused). But I like to get status information programmatically. Can
any one can provide a snap or code or any link that will help me to get the
above information.



Thanks in Advance
Manu

Back to top
Glen Scales [MVP]
Guest





Posted: Fri Sep 23, 2005 8:58 am    Post subject: Re: Getting Exchange Protocol Virtual Server Status (Start,S Reply with quote

I believe this information is only stored in the Metabase on the Exchange
server in the serverstate property
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/4f4711c8-14a2-49c6-8d95-fe3936eafdd6.asp .
To use this in some code it would look like

Set SMTPVSS = GetObject("IIS://Servername/SMTPSVC")
for each SMTPVS in SMTPVSS
if SMTPVS.KeyType = "IIsSmtpServer" then
wscript.echo "SMTP Server : " & SMTPVS.ServerComment
select case SMTPVS.ServerState
case 1 Wscript.echo "Current State: Starting"
case 2 Wscript.echo "Current State: Started"
case 3 Wscript.echo "Current State: Stopping"
case 4 Wscript.echo "Current State: Stopped"
case 5 Wscript.echo "Current State: Pausing"
case 6 Wscript.echo "Current State: Paused"
case 7 Wscript.echo "Current State: Continuing"
case else Wscript.echo "unknown"
end select
wscript.echo
end if
next

Cheers
Glen

"Manu" <dinil_kv@hotmail.com> wrote in message
news:%23Qf$c8zvFHA.3124@TK2MSFTNGP12.phx.gbl...
Quote:
Hi All,



We can see Virtual servers for every protocols on 'Exchange System
Manager'.
By right clicking the each virtual severs we can see the status as (Start,
stop or Paused). But I like to get status information programmatically.
Can
any one can provide a snap or code or any link that will help me to get
the
above information.



Thanks in Advance
Manu

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB