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
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