Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Export WSB-logs using PowerShell

$
0
0

Hello,

i am trying to find a solution to export the Windows Server 2008r2/2012 Windows-Server-Backup logs WITH content of the message to a .txt

I have found this :

Get-WinEvent -logname "Microsoft-Windows-Backup" | where {$_.timecreated -ge $yesterday} | Format-Table TimeCreated, ID, ProviderName, Message -AutoSize -Wrap

But this is not exporting the messages like "backup cancelled", "backup started" , "backup completed".

Anybody with an option for this?

Thx


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>