Is there any way to send a notification out when a machine's CPU(s) reach 100% usage? RRS feed

  • Question

  • I am trying to find a way to send out a notification through email and/or text messages when a machine's CPUs reach 100% usage.  What would be the best way to do so?  Is there an application that would be able to do this?  Are there any tools within Windows that would do this?

    Thank you.

    Monday, October 16, 2017 3:57 PM

All replies

  • Hi PHaverson,

    It is possible to send an email or show a message when CPU usage reaches 100%.
    I would like to confirm:
    If it (100%) occurs many times in a short time (e.g. within 5 minutes) intermittingly, what should an application do?
    Do you want to send many emails or show many massages?

    # Refer to the following article in order to get CUP usage:
    How to get CPU usage?



    Tuesday, October 17, 2017 1:34 AM
  • Hi,

    CPU running at 100% will definitely damage your machine, I think you'd better solve the CPU problem firstly.

    You should determine that if it is caused by system or hardware, you can follow these steps to trouble shoot the problem:

    1.Perform a clean boot to kill the process running in the background.

    2.Update the driver in Device Manager

    3.Go to Windows Defender to scan and remove the malware software.

    4.Update your BIOS.

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Tuesday, October 17, 2017 2:54 AM
  • Yeah, we're in the process of troubleshooting the systems impacted.  In fact, the system administrator wants to have an email or text message sent to him as soon as a CPU hits 100% to try and see which applications are causing the high CPU usage.
    Tuesday, October 17, 2017 3:08 PM
  • This issue is occurring intermittently.  The application should send out an email or a text message to our system administrator when the CPU usage reaches 100%.
    Tuesday, October 17, 2017 6:15 PM
  • Hi,

    As I known, there is no such build-in application can help you send e-mail or text message to the system administrator. However, you can contact him/her by phone or mobile SMS.

    Good luck.

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, October 18, 2017 1:18 AM
  • Hi PHaverson,

    I would like to confirm what you want to know.
    If it is how to get CPU usage, please refer to my previous post.
    If it is how to send an email (how to use SMTP), please say so.



    Wednesday, October 18, 2017 3:07 AM
  • Hi, Ashidacchi

    I think PHaverson wants to contact its system administrator to help solve the problem on CPU usage 100%. And he wants to send an e-mail or text message to get in touch with the administrator.

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Wednesday, October 18, 2017 5:23 AM
  • @ vivian_zhou,
        If your idea is right, PHaverson can send an email to the administrator.
        But it requires PHaverson to know his/her mail address.

    @ PHaverson,
        What is your issue? Please explain it more specific.

    I have no idea who the administrator is.



    Wednesday, October 18, 2017 6:12 AM
  • I would like to have an application send an email using SMTP, or a text message to a cell phone, automatically as soon as a machine's CPU usage hits 100%.  Preferably, the application would monitor a machine and as soon as the CPU usage hits 100% the message is sent out.

    Hopefully this clears up any confusion.

    Wednesday, October 18, 2017 5:44 PM
  • Hi PHaverson,

    I know what you want to do, but I'm afraid you do not specify what you do not know.
    I guess it would be how to make code for sending an email (using SMTP).

    Here's my sample [VB.NET]:
    Imports System.Net.Mail     ' -- WebClient クラスを使用(メール送信用)
    Imports System.Net          ' -- WebClient クラスを使用(メール送信用)
    Imports System.Text         ' -- メール Encoding 用
    ' -- add "System.Configuration" to [References]
    Imports System.Runtime.InteropServices	' -- Win32API
    ' --- 北窓舎宛のメール送信(SmtpClientクラスを使用:「参照設定」に「System.Web.dll」を追加)
    Public Sub prc_Send_Mail()
    	Dim mailMsg As New MailMessage()
    	Dim SMTPclient As New SmtpClient()
    	' === Mail ====================================================
    	With mailMsg
    		.From = New MailAddress("from/sender address") ' -- From:メールアドレス、表示名
    		.To.Add("mail address of administrator")  ' -- To:北窓舎(from_user)
    		.CC.Add("Carbon Copy address")      ' -- CC:ユーザーのアドレス
    		.Priority = MailPriority.High       ' -- 優先順位
    		.Subject = "mail subject"       ' -- 件名
    	End With
    	' --- 形式
    	mailMsg.IsBodyHtml = False  ' -- 本文を HTML 形式としない(=プレーンテキスト)
    	' --- メール本文
    	mailMsg.Body =
    		"mail body: 1st line" & Chr(13) _
    		& "mail body: 2nd line" & Chr(13) _
    		& "mail body: 3rd line"
    	' === SMTP server =======================================
    	With SMTPclient
    		.Host = "smtp-server.com"  ' -- SMTP server
    		.Port = 587					' -- port no
    		.EnableSsl = False     ' -- SMTP usosha.com]接続の保護:STARTTLS(EnableSsl=False)
    		.DeliveryMethod = SmtpDeliveryMethod.Network
    		.UseDefaultCredentials = False    ' -- False にするとCredentials プロパティに設定された値が、サーバーに接続する際の資格情報として使用される
    		.Credentials = New NetworkCredential("smtp-admin@smtp-server.com", "password")    ' -- 認証に使用する資格情報
    		.Timeout = 15000      ' -- タイムアウト指定(ミリ秒)
    	End With
    		' --- 後始末
    	End Try
    End Sub

    You should refer to the following information:
    MailMessage Class

    SmtpClient Class


    • Edited by Ashidacchi Wednesday, October 18, 2017 11:13 PM
    Wednesday, October 18, 2017 11:06 PM
  • You can make the CPU go to 100% manually to test the CPU.

    This is how stress testing works.

    Temperatures are monitored and aborting testing is done as a fail/safe method.

    What you are trying to accomplish is notify someone when the CPU goes to 100% and there is little purpose in this.

    Instead what you should do is record the episode which is relatively easy to accomplish.

    Let us know if you want to record the episode and then send the recording to the IT or technician that will troubleshoot the CPU.

    If you want us to troubleshoot the CPU we can make suggestions.

    Thursday, October 19, 2017 2:46 AM
  • @questionsformicrosoftproducts,

    How would I record the episode when the CPU usage hits 100% and send the recording to a technician?


    Thursday, October 19, 2017 6:25 PM
  • Download and install Windows performance recorder (WPR)


    Open administrative command prompt and type:


    When WPR opens change

    detail level from verbose to light

    logging mode from memory to file

    Follow the rest of the steps for the recordings.

    Practice running it a few times until you are comfortable with it.

    Click control + alt + delete > open task manager > reduce its size so you can just see the processes tab with CPU.

    Then launch WPR and while you are using the computer in typical use if you see 100% on task monitor that is remaining at 100% you will have WPR already launched and only need to click start.

    Then you will make the recording and make it available to the technician with a one drive or drop box share link.

    If the technician wants a verbose tracing then you can change it from light to verbose.  The size of the tracing will alter how long it takes to post into a website or enter into the share link.  So start with multiple light tracings.

    Thursday, October 19, 2017 7:01 PM