locked
Find Exchange servers running POP3/IMAP service RRS feed

  • Question


  • Our management have decided that POP3 and IMAP needs to be turned off on all our Exchange 2007 CAS servers.

    We have quite a few running across multiple AD sites.

    Does anyone know a Powershell command that I can use that will get all the CAS servers and check whether the POP3 or IMAP4 service is running?
    Saturday, January 21, 2012 12:48 PM

Answers

  • On Sat, 21 Jan 2012 12:48:01 +0000, Sheen1990 wrote:
     
    >Our management have decided that POP3 and IMAP needs to be turned off on all our Exchange 2007 CAS servers. We have quite a few running across multiple AD sites. Does anyone know a Powershell command that I can use that will get all the CAS servers and check whether the POP3 or IMAP4 service is running?
     
    Here's an example that checks for a process running on a remote
    machine:
     
    gwmi win32_process -filter
    "name='microsoft.exchange.imap4service.exe'" -comp $SERVER_NAME
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by Sheen1990 Friday, January 27, 2012 5:28 PM
    Saturday, January 21, 2012 5:16 PM
  • Hi
      Get-Service -ComputerName cas2007 msexchangepop3,msexchangeimap4.

    Terence Yu

    TechNet Community Support

    • Marked as answer by Sheen1990 Friday, January 27, 2012 5:29 PM
    Tuesday, January 24, 2012 7:10 AM

All replies

  • On Sat, 21 Jan 2012 12:48:01 +0000, Sheen1990 wrote:
     
    >Our management have decided that POP3 and IMAP needs to be turned off on all our Exchange 2007 CAS servers. We have quite a few running across multiple AD sites. Does anyone know a Powershell command that I can use that will get all the CAS servers and check whether the POP3 or IMAP4 service is running?
     
    Here's an example that checks for a process running on a remote
    machine:
     
    gwmi win32_process -filter
    "name='microsoft.exchange.imap4service.exe'" -comp $SERVER_NAME
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Marked as answer by Sheen1990 Friday, January 27, 2012 5:28 PM
    Saturday, January 21, 2012 5:16 PM
  • Hi
      Get-Service -ComputerName cas2007 msexchangepop3,msexchangeimap4.

    Terence Yu

    TechNet Community Support

    • Marked as answer by Sheen1990 Friday, January 27, 2012 5:29 PM
    Tuesday, January 24, 2012 7:10 AM
  • On Tue, 24 Jan 2012 07:10:11 +0000, Terence Yu wrote:
     
    >Hi Get-Service -ComputerName cas2007 msexchangepop3,msexchangeimap4.
     
    Using Powershell 2.0, sure. But he was asking about Exchange 2007 so I
    reckon that Powershell 1.0 is being used. IAC, WMI works for both.
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Tuesday, January 24, 2012 4:39 PM