Hi,
I have created this code:
#Varibles
$compname = $env:computername
$SourceFile = "C:\Backuplog\BackupFailure.txt"
#If source file does exists delete text file
if (Test-Path $SourceFile) {
Remove-Item $SourceFile
} else {
# Check for event in event log & write last event to file
$log =...
Hi,
I have developed a script that looks for a certain Windows Backup failure attempt.
My issue is the failure event could be anytime from 18:00 to 06:00 the next morning, the script at the moment grabs all the events from the event log & writes it to a text file and emails it out.
Personally...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.