PowerShell script exchange
Post Reply
tri_94
Novice
Posts: 8
Liked: 3 times
Joined: Jan 17, 2020 10:22 am
Full Name: Nick
Contact:

Veeam Export to CSV

Post by tri_94 »

Can anyone help me with a script to export the following details to csv. Really new to powershell and veeam too.

Job Name
Description
Amount of VM's
Job Size
VM's in Job
Scheduled
Restore Points to Keep
GFS Monthly Backups
GFS Yearly Backups
Retention Policy Type
Job Type
Target
Schedule Options

Many thanks
Nick
nielsengelen
Product Manager
Posts: 5635
Liked: 1181 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Veeam Export to CSV

Post by nielsengelen »

Hi Nick, I'm sure somebody can help you with your initial post (post355384.html#p355384) however there are many examples on the forums already. A good example is the "Veeam Report": powershell-f26/my-veeam-report-v9-5-1-t47058-30.html
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
duraisingam
Influencer
Posts: 10
Liked: never
Joined: Nov 18, 2022 12:00 pm
Full Name: Durai
Contact:

Re: Veeam Export to CSV

Post by duraisingam »

Please try this below script whether it help.

Get-VBRBackupSession | ?{$_.CreationTime -ge (Get-Date).AddDays(-no of days required)} | Select JobName, JobType, CreationTime, endtime, result, state, @{Name="BackupSize";Expression={$_.BackupStats.BackupSize}} | Sort CreationTime | Export-CSV "D:\BackupJobs_MonthlyReport.csv"

Thanks
Duraisingam
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests