PowerShell script exchange
Post Reply
MonahovAA
Lurker
Posts: 2
Liked: never
Joined: Aug 05, 2013 9:28 am
Full Name: Alex Monahov
Contact:

Checking open session guest files restore

Post by MonahovAA »

Good afternoon.

We have a problem with backup job because often dont close session "guest files restore".
So we want script which can check open session and send about this e-mail before start backup job.
Thanks.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Checking open session guest files restore

Post by veremin »

Unfortunately, for now you cannot get FLR restore sessions via PowerShell. At least I'm not aware of a way to achieve that goal. Thanks.
tsightler
VP, Product Management
Posts: 6009
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Checking open session guest files restore

Post by tsightler »

Hmm, I have a few ideas about this but I need to go prove them out first.
tsightler
VP, Product Management
Posts: 6009
Liked: 2843 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: Checking open session guest files restore

Post by tsightler »

With v9 (and I think v8 as well) the following should return the active File/Application level restore sessions:

Code: Select all

Get-VBRRestoreSession | ?{$_.JobType -like "*LevelRestore" -and $_.State -eq "Working"}
The job types are:
FileLevelRestore
LinuxFileLevelRestore
ApplicationLevelRestore

So you can just change the -like comparison if you want to only return those session types. Then you can grab the session information and send your email.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Checking open session guest files restore

Post by veremin »

It must have been added in version 8, indeed. And this fact has slipped from my mind.

I apologize for misguidance.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests