PowerShell script exchange
btm
Novice
Posts: 4 Liked: never
Joined: Sep 16, 2020 12:04 pm
Contact:
Post
by btm » Sep 16, 2020 12:30 pm
this post
Is it possible to get information about who started a backup to tape session?
I find my sessions with:
Code: Select all
$backupSessions = Get-VBRBackupSession | Where-Object {$_.CreationTime -ge (Get-Date).AddHours(-36)}
$restoreSessions = Get-VBRRestoreSession | Where-Object {$_.CreationTime -ge (Get-Date).AddHours(-36)}
$tapeSessions = (Get-VBRsession -job (Get-VBRTapejob | Select-Object -last 1)) | Where-Object {$_.CreationTime -ge (Get-Date).AddHours(-36)}
For Backup and Restore sessions it can be found by:
Code: Select all
$session.SessionInfo.Initiator.Name
But that doesn't work on the tape Session.
Egor Yakovlev
Product Manager
Posts: 2581 Liked: 708 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:
Post
by Egor Yakovlev » Sep 17, 2020 11:25 am
this post
Greetings.
Fact that Tape Session is missing SessionInfo property does look like a bug to me. Thanks for noticing, we will fix it.
Until then, I guess best way to retrieve Tape Job start account will be to parse backup job log(default C:\ProgramData\Veeam\Backup\JobName).
/Thanks!
btm
Novice
Posts: 4 Liked: never
Joined: Sep 16, 2020 12:04 pm
Contact:
Post
by btm » Sep 17, 2020 11:43 am
this post
Ah, great. It has no high priority for me, so I will just wait until the bug is fixed. Is there some way to get a notification when it is fixed?
Egor Yakovlev
Product Manager
Posts: 2581 Liked: 708 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:
Post
by Egor Yakovlev » Sep 17, 2020 1:16 pm
1 person likes this post
I will do my best to update this thread when it does. Such small fixes usually aren't included into release notes.
/Thanks!
Users browsing this forum: No registered users and 5 guests