Hi,
currently I am writing a script to get all recoveries made and document them at a central place for compliance reasons.
I already got AD, Mail and File recoveries with all information I need. My last information that is missing is the value that is entered in the reason field when performing a VM recovery. It is not stated in the Options property of the return value of Get-VbrRestoreSession as it is for the other types. I also cannot find it somewhere in the logs. Does anybody knows how I can get this information using PowerShell?
Regards,
Kristian
-
Hunv
- Lurker
- Posts: 2
- Liked: never
- Joined: Dec 04, 2025 7:08 am
- Full Name: Kristian
- Contact:
-
david.domask
- Product Manager
- Posts: 3668
- Liked: 891 times
- Joined: Jun 28, 2016 12:12 pm
- Contact:
Re: Get restore reason for VM restores
Hi Kristian,
It's under the Info property on CRestoreSession objects:
Hint: Use Export-CliXml to export the object and all its properties to file, and you can use any text editor to search / explore all properties on an object
Most advance text editors will have some feature / plugin to pretty up XML for easier reading.
It's under the Info property on CRestoreSession objects:
Code: Select all
$restoreSess = Get-VBRRestoreSession | sort -Property CreationTime -Descending | Select -First 1
$restoreSess.info.reason
powershell reason test
Code: Select all
$restoreSess | Export-CliXml ~/Downlaods/restoreSess.log; start ~/DownloadsDavid Domask | Product Management: Principal Analyst
Who is online
Users browsing this forum: No registered users and 92 guests