Quantcast
Channel: grep Archives - Thomas Maurer
Viewing all articles
Browse latest Browse all 2

PowerShell: Copy Log files with Date and Content

$
0
0

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 place using PowerShell. Get-ChildItem C:\temp -Filter *.log -Recurse | Select-String "Contoso" |  Copy-Item -Destination C:\temp2 Now I added also …

The post PowerShell: Copy Log files with Date and Content appeared first on Thomas Maurer.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images