Tag Archives: event viewer

How to Add event log source in eventViewer with check of if not exists usingPowerShell

I recently used this PowerShell script for my project , in order to create Windows event log source in event viewer. hope it can be useful for other too. $logFileExists = Get-EventLog -list | Where-Object {$_.logdisplayname -eq “My_Logs”} if (! … Continue reading

Posted in Powershell | Tagged , , | Leave a comment