PowerShell script exchange
Post Reply
btm
Novice
Posts: 4
Liked: never
Joined: Sep 16, 2020 12:04 pm
Contact:

View who started a backup-to-tape session

Post by btm »

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
Veeam Software
Posts: 1526
Liked: 346 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Contact:

Re: View who started a backup-to-tape session

Post by Egor Yakovlev »

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:

Re: View who started a backup-to-tape session

Post by btm »

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
Veeam Software
Posts: 1526
Liked: 346 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Contact:

Re: View who started a backup-to-tape session

Post by Egor Yakovlev » 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!

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests