Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » How to monitor Windows Server backup via PowerShell

How to monitor Windows Server backup via PowerShell

Posted on 04/04/202118/04/2023 Christian By Christian No Comments on How to monitor Windows Server backup via PowerShell
email

Task Scheduler enables you to automatically perform routine tasks on a chosen computer. Task Scheduler does this by monitoring whatever criteria you choose. This is referred to as “triggers” and then executing the tasks when those criteria are met. You can use the Task Scheduler to execute tasks such as starting an application, sending an email message, etc. Tasks can be scheduled to execute in response to these events, or triggers.  In this article, you will learn how to monitor Windows server backup via PowerShell script. Here are some interesting articles: Run Python Script via Windows Task Scheduler, and how to schedule Windows Defender Antivirus to scan on Windows, and how to fix Windows Task Scheduler Service Greyed Out in Services MMC.

Create a Script for Email Alerts to Monitor Windows Server Backup

An email notification is an email sent to inform your subscribers about changes or updates to a website or service. Email and push notifications are both powerful ways by which you can deliver your message to your users. All you need to do is modify the from address, to address, and the SMTP address. You may want to see how to configure SMTP on a Windows server.

$From = "techdarchiveDC@techdirectarchive.com"
$To = "contact@techdirectarchive.com"
$Subject = "techdarchiveDC Backup SUCCESSFUL"
$Body = "techdarchiveDC backup successful. No further action is required"
$SMTPServer = "smtp.xxxxxxx.com"
$SMTPPort = "25"
Send-MailMessage -From $From -to $To -Subject $Subject -Body $Body -SmtpServer $SMTPServer -port $SMTPPort

Ensure you save this file with the PowerShell extension “.ps1”

Screenshot-2021-04-04-at-23.11.40

Here are some related articles on Windows Task Scheduler: How to create an advanced scheduled task on Windows Server with Windows Task Scheduler, how to export and import scheduled tasks on Windows Server with the Task scheduler and PowerShell, how to run, edit, and delete a task using Task Scheduler GUI (taskschd.msc), how to automate Windows Update with PowerShell and Task Scheduler, and how to create a scheduled task with Windows Admin Center.

Setup Scheduled Task

From the Start menu, select Administrative Tools and then Task Scheduler.

Screenshot-2021-04-04-at-21.54.00

This will open up the task scheduler Tool, right-click on Task Scheduler or “under Actions”, and select “Create Task”

Screenshot-2021-04-04-at-21.55.42

From the Create Task dialog window as shown below. On the General Tab, Enter the Task Name. Enter a description for others to understand what you are doing, and select “run with the highest privilege”

Screenshot-2021-04-04-at-22.03.24

Navigate to the Trigger Tab as shown below. Click on New, This will open a window where the trigger can be defined.

Trigger-Creation
Create-New-Trigger
New-Windows-Scheduler-Task

On the Actions window, click on New and enter the following. Then Click on Ok. The setup is complete because we do not need to set conditions and settings.

Program/script: C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe
Argument is path to script: C:\Users\Christian\Documents\Emailbackupalert.ps1 
Screenshot-2021-04-04-at-22.19.46
Screenshot 2021 04 04 at 22.19.46
Windows-Task-Scheduler-Create-New-Action
Screenshot-2021-04-04-at-22.24.07
Screenshot 2021 04 04 at 22.24.07

To test this task, since the date we have configured this task to run is still in the future, we will manually run the task as shown below. For more information on how to run, edit, and delete a task using Task Scheduler GUI (taskschd.msc), see the following link.

Screenshot-2021-04-04-at-22.27.17

I hope you found this blog post helpful on how to monitor Windows server backup via PowerShell script. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:email, Microsoft Windows, PowerShell, PowerShell version 7, TaskScheduler, Windows 10, Windows 11, Windows Server 2016

Post navigation

Previous Post: Wbadmin: How to stop Windows backup job via the Windows Server Backup utility
Next Post: Perform System State Restore of Active Directory via Windows Server backup utility

Related Posts

  • Windows 11 taskbar features remove 1
    How to modify Windows 11 Taskbar via Intune and GPO Windows
  • addanewlang
    How to change or add another keyboard language in Windows Server Windows Server
  • c
    Action cannot be complete because the computer is open in Wimserv Windows Server
  • powershell commands lede 1024x276 1
    PowerShell Remoting: Guide to Windows Management Instrumentation Scripts
  • maxresdefault 1
    DriveLock Components: Important DriveLock components to master Windows Server
  • banner 1
    How to use the Program Compatibility Troubleshooter to Test Application Compatibility on Windows 11 Windows

More Related Articles

Windows 11 taskbar features remove 1 How to modify Windows 11 Taskbar via Intune and GPO Windows
addanewlang How to change or add another keyboard language in Windows Server Windows Server
c Action cannot be complete because the computer is open in Wimserv Windows Server
powershell commands lede 1024x276 1 PowerShell Remoting: Guide to Windows Management Instrumentation Scripts
maxresdefault 1 DriveLock Components: Important DriveLock components to master Windows Server
banner 1 How to use the Program Compatibility Troubleshooter to Test Application Compatibility on Windows 11 Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • WAMPServer Virtual Host
    How to create Virtual Hosts in a WAMPserver Web Server
  • Feature image .msixbundle
     How to Bundle MSIX Packages Windows
  • Use PowerShell to View and Change BIOS Settings
    Use PowerShell to View and Change BIOS Settings Windows
  • azure 1
    Fix SSO sign-in and non-routable domain issues AWS/Azure/OpenShift
  • Screenshot 2021 04 08 at 01.11.20
    How to export a certificate in PFX format in Windows Windows Server
  • AZMFeature
    Performance and Diagnostics in Microsoft Cloud with Azure Monitor AWS/Azure/OpenShift
  • KIOSK AssignedAccess
    Windows Single or Multi App Kiosks Windows
  • RE4ncJa
    How to configure favorites on Microsoft Edge via Group Policy Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,819 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.