PowerShell script exchange
Post Reply
jgreenback
Enthusiast
Posts: 32
Liked: 11 times
Joined: Sep 19, 2013 9:26 pm
Full Name: Jason Greenback
Contact:

List out Folders in a backup job

Post by jgreenback »

Is there a way to get a list of folders from a backup job? We add folders to backup jobs using VMs and Templates view.
I've searched through the forums a bit but have yet to find something.

Thanks
tsightler
VP, Product Management
Posts: 6035
Liked: 2860 times
Joined: Jun 05, 2009 12:57 pm
Full Name: Tom Sightler
Contact:

Re: List out Folders in a backup job

Post by tsightler » 1 person likes this post

If you just want the name/path of objects in the jobs something like this should work:

Code: Select all

((Get-VBRJob -Name "<Name_of_Job>").GetObjectsinJob() | ? {$_.Role -eq "EInclude"}).Location
jgreenback
Enthusiast
Posts: 32
Liked: 11 times
Joined: Sep 19, 2013 9:26 pm
Full Name: Jason Greenback
Contact:

Re: List out Folders in a backup job

Post by jgreenback »

Perfect!!! Thanks for the help.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests