Windows 10 Backup check

go127001

Commendable
Jun 30, 2016
16
0
1,520
I made this Script to check when my windows 10 machine is backing up and when the last time it backed up was. I'm just posting it on here in case anyone wants to use it.
Code:
Set-Location '\your\path'
$var = Get-WinEvent microsoft-windows-filehistory-core/whc -MaxEvents 1 -ComputerName #Your computer name
$var = [xml]$var[0].ToXml()
$var = $var.Event.EventData.Data | Where-Object {$_.name-eq "ProtectedUpToTime"}
ECHO $var Yournamehere | Out-File -Append output.txt