Kaseya Community

Discover if POP3 is running

  • I am trying to take a census of all servers running Exchange Server, and I would like to also take note of which ones have the POP3 service running, and which ones do not. Here is the problem:
    I wrote the script to check for the service "Microsoft Exchange POP3" and to write a log entry of running or not running. I'm getting a false negative from the test server. I tested the script out for the Messenger service, and it works for that. It just doesn't work for POP3.

    Has anyone else seen this error before?

    Legacy Forum Name: Discover if POP3 is running,
    Legacy Posted By Username: chipscc
  • Can you post the script please?

    Also, is the test server running a 64-bit OS?

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: SMason
  • Thanks for responding. The test server is running Server 2003 Small Business SP2. The script is as follows:

    Script Name: IsPOP3running?
    Script Description:

    IF Service is Running
    Parameter 1 : Microsoft Exchange POP3
    THEN
    Write Script Log Entry
    Parameter 1 : POP3 is running on this server
    OS Type : 0
    ELSE
    Write Script Log Entry
    Parameter 1 : POP3 is not running on this server
    OS Type : 0

    The other script that I wrote which does work is as follows:

    Script Name: IsMessengerRunning?
    Script Description:

    IF Service is Running
    Parameter 1 : Messenger
    THEN
    Write Script Log Entry
    Parameter 1 : Messenger is running
    OS Type : 0
    ELSE
    Write Script Log Entry
    Parameter 1 : messenger is not running
    OS Type : 0

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: chipscc
  • So no, it is not running a 64-bit OS

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: chipscc
  • chipscc
    Thanks for responding. The test server is running Server 2003 Small Business SP2. The script is as follows:

    Script Name: IsPOP3running?
    Script Description:

    IF Service is Running
    Parameter 1 : Microsoft Exchange POP3
    THEN
    Write Script Log Entry
    Parameter 1 : POP3 is running on this server
    OS Type : 0
    ELSE
    Write Script Log Entry
    Parameter 1 : POP3 is not running on this server
    OS Type : 0

    The other script that I wrote which does work is as follows:

    Script Name: IsMessengerRunning?
    Script Description:

    IF Service is Running
    Parameter 1 : Messenger
    THEN
    Write Script Log Entry
    Parameter 1 : Messenger is running
    OS Type : 0
    ELSE
    Write Script Log Entry
    Parameter 1 : messenger is not running
    OS Type : 0


    Try putting quotes around "Microsoft Exchange POP3" or use the service name POP3Svc instead.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: pcmnetmanage
  • POP3Svc worked

    Thanks Greg!

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: chipscc