- Windows built-in event notification viewer is not straightforward and is very difficult to navigate through.
- A simple workaround is to have the events emailed to stay up to date. Setting up the email solution is fairly simple.
- You can also have the event emailed to multiple computers. Read more to find out!
Desktop.com is a digital workspace software that's ideal both for individuals and teamwork. Optimize your workflow and remove distractions with customizable desktops populated with every app you require.
- Unified live chat and video conferencing
- App store with tons of integrations
- Password manager
- Launch and manage apps from one central UI
- Secure password manager
When you aren’t using your computer, you may want to know what’s happening on your PC or who’s accessing it. What program is being opened and when, or any activity that happens on your Windows computer, you will want to know about it.
Keeping a log of the events is possible, but unfortunately, it can be a pain to check the log because it is not user-friendly and it can be difficult to sift through the events because they are not straightforward.
But that doesn’t mean there isn’t a workaround!
You can configure the system to send out emails whenever an activity takes place using Windows event viewer email notification, this way you can stay up-to-date.
How can I get email alerts in the Windows Event Viewer?
1. Create a Powershell script
$EventId = 16,20,23,150,219,220
$A = Get-WinEvent -MaxEvents 1 -FilterHashTable @{Logname = "System" ; ID = $EventId}
$Message = $A.Message
$EventID = $A.Id
$MachineName = $A.MachineName
$Source = $A.ProviderName
$EmailFrom = "[email protected]"
$EmailTo = "[email protected]"
$Subject ="Alert From $MachineQ"
$Body = "EventID: $EventIDnSource: $SourcenMachineQ: $MachineQ `nMessage: $Message"
$SMTPServer = "smtp.gmail.com"
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("[email protected]", "[email protected]");
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)
NOTE Once the script is executed, your computer will ask you to send an email to the email address you have specified with the important information.
By setting this up, you will receive an email notification even if you update the Application log file.
Expert Tip: Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.
Install a third-party SMTP service provider and configure the settings properly as instructed by the provider. Also, confirm if you’ve given the correct destination email; otherwise, you won’t receive any email.
Once done, save the script on your computer, for example, C:\ScriptsPowerShell\eventnotification-send-email.ps1
Now follow the below steps to enable email notification for all the events.
Read more about this topic2. Setting up notifications of events using Task Scheduler
Tip
It is better to create and use a dummy account to receive notifications than to use your email address.
C:\ScriptsPowerShell\eventnotification-send-email.ps1
NOTE
If you’re using an antivirus or a firewall, make sure you whitelist Blat. If you don’t whitelist, the antivirus or the firewall may block the webpage of the software.
3. Create a Scheduled Task
C:\Scripts PowerShell\eventnotification-send-email.ps1
4. Automate the deployment
PS C:\> Register-ScheduledTask -Xml (get-content '\\myfileshare\tasks\DataKeeperAlerts.xml' | out-string) -TaskName "DataKeeperAlerts" -User datakeeper\dave -Password [email protected] –Force
If you are an administrator or if you simply want to keep track of all the events that are happening on your system, you could keep track of them using Windows Event Viewer, but the program is not straightforward.
Hence, you can have all the events emailed to you and keep yourself updated. Feel free to share your experience with us by using the comment section found below this guide.
ncG1vNJzZmivmaOxsMPSq5ypp6Kpe6S7zGiuoqaUpMS0ecSvnKesXau2psPEq2SepZGeuW66zq2gn6GTlsGqu81o