Hi,
I have 75+ jobs that have Local in the job name. Ex: abclocal-job11, xzylocal-job21, yxzlocal_VMs_job11
I need to get a report of all VMs from the jobs that have DEV or TEST in the VM name.
Does anyone have a script that does exactly that or maybe a script that partially does what I am looking for?
Thanks
-
- Expert
- Posts: 158
- Liked: 18 times
- Joined: Feb 08, 2018 3:47 am
- Full Name: Kazz Beck
- Contact:
-
- Product Manager
- Posts: 10086
- Liked: 2688 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: get VMs from multiple jobs
Hi Kazz
A simple query to get all vm with such names:
Best,
Fabian
A simple query to get all vm with such names:
Code: Select all
Get-VBRJob | where {$_.name -like "*local*"} | Get-VBRJobObject | Where-Object {$_.Name -like "*DEV*" -or $_.name -like "*TEST*"}
Fabian
Product Management Analyst @ Veeam Software
-
- Expert
- Posts: 158
- Liked: 18 times
- Joined: Feb 08, 2018 3:47 am
- Full Name: Kazz Beck
- Contact:
Re: get VMs from multiple jobs
Exactly what I needed
Thank you!
Thank you!
Who is online
Users browsing this forum: No registered users and 14 guests