Announcement

Collapse
No announcement yet.

Script for CPU & Memory Threshold

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script for CPU & Memory Threshold

    Dear All,
    am a basic user of PowerShell and do not really know how I can achieve the following and be grateful for any guidance/assistance:

    Have a list of Windows Server 2008 / 2012 R2
    Would like to be informed via email when one of the Serverīs CPU and/or Memory Usage reaches a threshold of 85%

    I have seen there are some scripts which provide a current usage of CPU or Memory but not both and when they reach a certain threshold.

    Hope someone can point me in the right direction.

    Thanks,

    Mak

  • #2
    You could do it with WMI queries in PowerShell, but as an alternative, consider using PerfMon alerts, which can either run a script or (IIRC) send an email.
    This should get you started: https://support.microsoft.com/en-gb/...when-the-alert
    Tom Jones
    MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
    PhD, MSc, FIAP, MIITT
    IT Trainer / Consultant
    Ossian Ltd
    Scotland

    ** Remember to give credit where credit is due and leave reputation points where appropriate **

    Comment


    • #3
      Thanks Ossian!!!

      Will try the link you sent.

      Thanks again.

      Comment

      Working...
      X