PowerShell script exchange
Post Reply
davidburke84
Influencer
Posts: 17
Liked: never
Joined: Sep 20, 2016 3:06 pm
Full Name: David
Contact:

Powershell Returns Information Veeam.Backup.Core

Post by davidburke84 »

I'm looking into pulling Veeam data on jobs and performance via Powershell. When I run this command: Get-VBRJob -Name "Remote Backup Copy" | select LinkedJobs, LinkedJobIDS |fl

I get:

LinkedJobs : {Veeam.Backup.Core.CLinkedJobs, Veeam.Backup.Core.CLinkedJobs, Veeam.Backup.Core.CLinkedJobs}
LinkedJobIds : {c40741d0-89f5-475f-816d-5b7ba0f98730, 85b831e7-70c4-4fd7-b4aa-c08fa77c5b4a,
3d61cb2f-2717-402a-b4e6-fce03503ac34}

I would expect LinkedJobs to return the actual names of the jobs instead of "Veeam.Backup.Core.CLinkedJobs". Can someone else confirm they are seeing similar results.

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

Re: Powershell Returns Information Veeam.Backup.Core

Post by tsightler »

If you look at the definition of the LinkedJobs property you will see that it specifically says it will return type Veeam.Backup.Core.CLinkedJobs[], so that's to be expected. The returned CLinkedJobs object includes and Info (which also has the linked job ID) and Order properties as well as information like the creation date of the link. Jobs aren't referenced by name since a job can be renamed, but it's easy to get a job name from a job ID.
davidburke84
Influencer
Posts: 17
Liked: never
Joined: Sep 20, 2016 3:06 pm
Full Name: David
Contact:

Re: Powershell Returns Information Veeam.Backup.Core

Post by davidburke84 »

I see that now. I guess I was assuming that the name would come in for me.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests