How to create a Fake Error event under windows event viewer

In case you want to create a fake event error log under Windows Event log follow below procedure .
Note: Tested on Windows 2016+ Server
Open a powershell as adminsitrator

Create a fake source under Application Log or any other Logname you want

New-EventLog -LogName Application -Source “ITSystemLab”

Create a fake event error log with event id 1 (OR change the number) using below command

Write-Eventlog –LogName Application –Source "ITSystemLab" –EntryType Error –EventID 1

A prompt for message will appear, type your message and press enter

Check your windows event viewer under Application Log that error message appeared.

Remove your custom event log by executing below command

Remove-EventLog -source "ITSystemlab"


Fully optimised SSD hosting

Optimised for WordPress & other applications