PowerShell script exchange
Post Reply
Manu80
Service Provider
Posts: 23
Liked: 3 times
Joined: Mar 10, 2020 9:05 pm
Full Name: Manu80
Contact:

License report with job name involved

Post by Manu80 »

Hello,
we need to generate license report from VBR, same as html, but on json or csv for manipulate and customize.

With generate-vbrlicenseusagereport (https://helpcenter.veeam.com/docs/backu ... ml?ver=120) with json type I obtain only summary and don't have list of all VM and related job.

I try some methods with powershell and API (also with VEM), but not find at the moment the solution.

Has anyone been able to do something similar ?

Thanks
manu
david.domask
Veeam Software
Posts: 3202
Liked: 743 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: License report with job name involved

Post by david.domask »

Hi manu80,

Currently the cmdlet only outputs the usage counts. What fully needs to be in your report? Each license workload name and job name or what are you hoping to capture?

I would advise export as HTML and use an HTML parsing module like PowerHTML to extract the information. I don't have a ready script for this but I played briefly and it will let you import an HTML file as an object (similar to ConvertFrom-JSON cmdlet) and from there you can walk the HTML nodes to build your report.
David Domask | Product Management: Principal Analyst
Dragonspeed
Lurker
Posts: 1
Liked: never
Joined: Jan 09, 2026 12:29 am
Full Name: Brian Hampson
Contact:

Re: License report with job name involved

Post by Dragonspeed »

Well, I've played a bit with PowerHTML to try to generate a functional output list of machines (their types and how many of what license type they are using).... I did NOT have much luck.
david.domask
Veeam Software
Posts: 3202
Liked: 743 times
Joined: Jun 28, 2016 12:12 pm
Contact:

Re: License report with job name involved

Post by david.domask »

Hi Dragonspeed, welcome to the forums.

Can you share a bit of your code and what you struggled with?

I can give it a shot, but if you have existing code would be great to see what you tried and what didn't work.

Similarly, can you share a bit more on the output you're hoping to get? We can consider improvements to the cmdlet based on feedback.

Also, please consider using the REST API GetLicensedInstances endpoint; you can invoke REST calls with Invoke-WebRequest in your script and parse the resulting data easily in Powershell. Try it out in the Swagger interface for our API from the Remote Console > Menu > Console > Swagger
David Domask | Product Management: Principal Analyst
Post Reply

Who is online

Users browsing this forum: No registered users and 188 guests