Hello-
Wondering if it is possible to provide a VM name and list all the jobs that contain that VM? My goal here is to create a server decommission script that would remove a VM from any jobs it is currently a member of.
-
- Influencer
- Posts: 11
- Liked: never
- Joined: May 05, 2016 10:33 pm
- Contact:
-
- Product Manager
- Posts: 20406
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Get Job name from VM
Is this VM added as individual VM or through container (folder, resource pool, etc.) to backup jobs? Thanks.
-
- Influencer
- Posts: 11
- Liked: never
- Joined: May 05, 2016 10:33 pm
- Contact:
Re: Get Job name from VM
It is added as an individual VM.
-
- Product Manager
- Posts: 20406
- Liked: 2298 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Get Job name from VM
Then, try the following script:
Thanks.
Code: Select all
asnp VeeamPSSnapin
Get-VBRJob | where {$_.GetObjectsInJob().name -eq "Name of your VM"} | select name
-
- Influencer
- Posts: 11
- Liked: never
- Joined: May 05, 2016 10:33 pm
- Contact:
Re: Get Job name from VM
Perfect, thank you!
Who is online
Users browsing this forum: No registered users and 8 guests