UDP Port test -email if down?

Welcome Forums General PowerShell Q&A UDP Port test -email if down?

This topic contains 1 reply, has 2 voices, and was last updated by

4 years, 5 months ago.

  • Author
  • #14838

    Points: 0
    Rank: Member

    I am attempting to monitor a port status for up/down.

    I found a useful script on the technet site and get back valid results. But I am not at all sure as to how to email the result if the port is down.

    The script I am trying to use is here: http://gallery.technet.microsoft.com/scriptcenter/97119ed6-6fb2-446d-98d8-32d823867131#content

    When the port is up the result in the powershell window is:
    Server : CATSRV01
    Port : 52311
    TypePort : UDP
    Open : True

    If this were to be OPEN: False, then how can I send an alert email?

  • #18812

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    I'm not sure I would use PowerShell as a monitoring tool myself, but Send-MailMessage can send an email.

The topic ‘UDP Port test -email if down?’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort