Windows 10: How can i export my Backup Event-Id's for 10 servers to 1 .txt file

Discus and support How can i export my Backup Event-Id's for 10 servers to 1 .txt file in Windows 10 Backup and Restore to solve the problem; Hi all! First of all, i am new to scripting but i want to learn it. We have Server 2012R2 in our organization and Windows Server Backup is running... Discussion in 'Windows 10 Backup and Restore' started by ExclusiveTweety, Aug 13, 2017.

  1. How can i export my Backup Event-Id's for 10 servers to 1 .txt file


    Hi all!

    First of all, i am new to scripting but i want to learn it.
    We have Server 2012R2 in our organization and Windows Server Backup is running on each server daily. I want to automatically write a .txt file every day with the backup result to a destination (C:\Logfiles). I want all servers to write in that same file so i have 1 text-file with 10 server backup results from each one.

    I know i can attach a script to an Event-ID, such as eventid:4 (backup success).

    I am working on this for 2 days now but what am i doing wrong?
    I used powershell and also cmd but can't get it working (wevtutil qe Microsoft-Windows-Backup /f:text /q:"*[System/EventID=4] and *[EventData/Data[@Name='HRESULT']='0']")

    The script is needed for failed backup results and successfull backup results. I know that the failed backup results have a lot of event id's: 5,8,9,17,22 etc.

    Can somebody help me with this?

    :)
     
    ExclusiveTweety, Aug 13, 2017
    #1

  2. Restore from txt file to win phone7

    Restore from txt file

    Hi ,I haven't created backup files store.vol and Primindex.vol I just exported my sms messages on sky drive, is there any way to restore my messages form that file without having store.vol and Primindex.vol or is there any way i can generate store.vol
    and Primindex.vol from my sms txt file?
     
    a.aria2013, Aug 13, 2017
    #2
  3. al_lea Win User
    copy and paste contacts pc suite

    You can press ctrl + A to select all contacts. Then in the File->Export to export the contacts as a .csv file.



    Or you can also backup the contacts as a .nbu file. Then using
    Noki
    to export the contacts as a .txt, .html or an Excel .xls workbook.
     
    al_lea, Aug 13, 2017
    #3
  4. Samuria Win User

    How can i export my Backup Event-Id's for 10 servers to 1 .txt file

    Welcome to the forum. When wrting to a file you can use > to create the file ie dir >test.txt after that to write to same file you append with >> ie dir >>test.txt
     
    Samuria, Aug 13, 2017
    #4
  5. Thanks for that! Is there somebody who can help me with the correct syntax to get the event-id result for every day's backup?
     
    ExclusiveTweety, Aug 13, 2017
    #5
  6. I now used Backup Failed and Backup Success scripts with the following content: $text = "$(Get-Date) CC-server01: Backup failed" $text >> 'C:\Log\Logging.txt'

    Also for the one that is successfull.
    I did this on 2 servers for testing and i have one script for the mailing:

    Send-MailMessage -Attachments 'C:\Log\Logging.txt' -SmtpServer "mail.example.com" -From "backup@example.com" -To "user@example.com" -Subject "Daily Report"
     
    ExclusiveTweety, Apr 5, 2018
    #6
Thema:

How can i export my Backup Event-Id's for 10 servers to 1 .txt file

Loading...
  1. How can i export my Backup Event-Id's for 10 servers to 1 .txt file - Similar Threads - export Backup Event

  2. Can not save a .txt file

    in Windows 10 Customization
    Can not save a .txt file: Trying to "save" or "save as" a .txt file created by someone else received as part of a download. Windows 10 Pro keeps telling me I need Administrator permission to do the save. I am the only person using this computer and I am the Administrator. The only permission I do not...
  3. whea-logger Event ID 1

    in Windows 10 BSOD Crashes and Debugging
    whea-logger Event ID 1: Hi all,My system log are filled with error: whea-logger Event ID 1, it says I have a fatal hardware error, but as far as I know, I have not experienced any BSOD or instability issue. I got no error in windows memory diagnostic tool, also prime95 stress test or cinebench r23...
  4. WHEA Logger Event ID 1

    in Windows 10 BSOD Crashes and Debugging
    WHEA Logger Event ID 1: I recently installed Win10 on my system 03.02.21 and saw that I've gotten two WHEA Logger Errors with Event ID 1. First time was on the 09.02.21, second time on the 12.02.21. Both times the Process ID was 3336, which leads to svchost.exe Diagnostic Policy Service DPS....
  5. Export clipboard history to .txt or .csv

    in Windows 10 Ask Insider
    Export clipboard history to .txt or .csv: Hi, is there a solution to export clipboard history (Win+V) to the text file? Or clipboard manager that has an export option? All I see is export to extension *.db (database). In result I need text file with written line by line clipboard history elements. Help me...
  6. How can I backup my files, I forgot my password

    in Windows 10 Customization
    How can I backup my files, I forgot my password: I used the password in the begining when i was setting up my laptop and i used to login with my pin instead of password these all years and recently the account got signed out and i am not sure how i can back up my files without my password, there were no other sign in...
  7. How can I backup my Windows 10 files?

    in Windows 10 Network and Sharing
    How can I backup my Windows 10 files?: Hi, How can I backup my Windows 10 files? There seems to be something to backup files to the cloud. Please advise. Also, is it better to backup using Windows 10 or using an external backup drive like MyPassport by Western Digital? Thanks, Joe...
  8. Demonstrate how I can backup files on my Computer

    in Windows 10 Software and Apps
    Demonstrate how I can backup files on my Computer: Fills for Backup on this computer https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-winapps-appscat_productivity/demonstrate-how-i-can-backup-files-on-my-computer/73689d31-2f7f-4d0e-b170-1c19398ac93b
  9. Event ID 1 warning & Event ID 2 error

    in Windows 10 Performance & Maintenance
    Event ID 1 warning & Event ID 2 error: Hello, After Fall Creators update I'm seeing 1 error and 1 warning in the Event Viewer which I'm not able to resolve. Event ID 1 The backing-file for the real-time session "DefenderApiLogger" has reached its maximum size. As a result, new events will not be logged to...
  10. Event ID 1 SpeechRuntime

    in Windows 10 Support
    Event ID 1 SpeechRuntime: So I have this odd quirk the past few days. Sometimes on certain windows apps like Netflix or System settings it will hang till I close out but when I go back into them it acts normal and when I check the event log it gives me this. Audio Orchestrator Power Event: Battery...