01-19-2024 04:27 PM
Hi,
Is their any command lines (command prompt) I can run to see the status/history of backups for System Recovery Desktop?
01-22-2024 04:51 AM
No directly afaik, but you can use powershell to achive that.
01-22-2024 09:01 AM
Are their powershell commands for me to generate reports or get backup status and info?
01-23-2024 02:21 AM
In the product ZIP file there is a folder called Docs\Automation\PowershellScripts. Take a look there.
01-23-2024 05:08 AM - edited 01-23-2024 05:13 AM
Query_History.ps1 is available. It is in \Docs\Automation\PowershellScripts in the VSR install media. Copy Query_History.ps1 to your local disk.
To run it, open a powershell window or run "powershell" on Command Prompt.
After that, run below.
powershell -executionpolicy bypass <path>\Query_History.ps1
Note: <path> is a path where you put Query_History.ps1.
The latest backup history is popped up.
Also, if you would like to change the output from the popup message to the message in powershell, please add "#" at the beginning of 45th and 46th lines in Query_History.ps1, and add "write-host $Msg" in 47th line, and save the file. And run "powershell -executionpolicy bypass <path>\Query_History.ps1".
If you would like to save the message as a file, run "powershell -executionpolicy bypass <path>\Query_History.ps1 > C:\temp\history.txt".
history.txt is created in C:\temp, and the latest backup history is stored in it.