I am having difficulty in creating a script to list each backup job and the respective VMs in each job.
I know this should be a no-brainer, but I'm struggling.
Any suggestions or script samples?
			
			
									
						
										
						- 
				BHB3805
 - Enthusiast
 - Posts: 33
 - Liked: 1 time
 - Joined: Nov 04, 2011 1:45 pm
 - Full Name: Dan Andryszak
 - Contact:
 
- 
				veremin
 - Product Manager
 - Posts: 20736
 - Liked: 2403 times
 - Joined: Oct 26, 2012 3:28 pm
 - Full Name: Vladimir Eremin
 - Contact:
 
Re: VMs in Job Script Help
Hi, Dan, the following script seems to do everything you're after:
Thanks.
			
			
									
						
										
						Code: Select all
asnp VeeamPSSnapin
Get-VBRJob | ? {$_.jobtype -eq "Backup"} | Select-Object -Property @{N="Job Name";E={$_.name}}, @{N="VMs";E={$_.GetViOijs().name}} | Format-TableWho is online
Users browsing this forum: No registered users and 19 guests