Tag
logfiles
3 articles
-
PowerShell: How to export Windows Eventlogs with PowerShell
This is a little dirty Windows PowerShell script which exports or backups Windows Eventlogs. The script creates a .evt file which can be used with the Windows Eventlog Viewer. # Config $logFileName = “Application” # Add…
-
PowerShell: Copy Log files with Date and Content
Some days ago I made a blog post about Select-String in PowerShell. I created a “script” or a better a command to check log files for a specific text and copy the log file to another…
-
PowerShell: Delete Files older than
This is a simple PowerShell script which deletes Files older than some days. You can use it to cleanup old logfiles or other things. If you run the script the first time you can add the…


