Hi,
I letting my users us a script to do a Start-VBRQuickBackup. The only problem I have with it is that the output in the end showes to much information. I only need it to state the result
Result : Failed
but not the whole attributes like:
.
.
WillBeRetried
IsManuallyStopped
IsTransformLaunched
LastProgressSaveTime
.
.
and so on.
I'm a beginner PS user, so please bear with me if this is just something very simple. The code I'm using is plain and simple.
$vm_to_backup = Find-VBRViEntity -Server $vcenter -Name $vm
Start-VBRQuickBackup -VM $vm_to_backup -Wait
How can I get a simple output from the script that just tells my users if the backup was successful or not?
Regards,
Jóhannes
-
- Expert
- Posts: 159
- Liked: 37 times
- Joined: Jan 19, 2016 1:28 pm
- Full Name: Jóhannes Karl Karlsson
- Contact:
-
- Veeam Vanguard
- Posts: 282
- Liked: 113 times
- Joined: Apr 20, 2017 4:19 pm
- Full Name: Joe Houghes
- Location: Castle Rock, CO
- Contact:
Re: Simple output from Start-VBRQuickBackup
Add this to the end of your Start-VBRQuickBackup line:
Code: Select all
| Select-Object Result
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
-
- Expert
- Posts: 159
- Liked: 37 times
- Joined: Jan 19, 2016 1:28 pm
- Full Name: Jóhannes Karl Karlsson
- Contact:
Re: Simple output from Start-VBRQuickBackup
Thanks Joe, exactly what I needed.
Who is online
Users browsing this forum: No registered users and 9 guests