PowerShell script exchange
johnny1337
Service Provider
Posts: 6 Liked: never
Joined: Aug 28, 2020 12:53 pm
Full Name: Jonas
Contact:
Post
by johnny1337 » Jan 15, 2021 9:31 am
this post
Hi,
Is it possible to get date for latest restore point per computer?
I modified the script here:
powershell-f26/cloud-connect-report-fro ... 44872.html with the result below:
Code: Select all
$subtenant = Get-VBRCloudSubTenant
$job = @()
foreach ($ct in $subtenant)
{
foreach ($r in $ct.Resources){
$JobName = $ct.Name
$UsedSpace = $r.UsedSpace
$UsedSpacepercent = [string]$r.UsedSpacePercentage + " %"
$FreeSpace = ($r.RepositoryQuota - $r.UsedSpace)
$UsedSpaceGB = [math]::Round(($UsedSpace / 1024), 2)
$FreeSpaceGB = [math]::Round(($FreeSpace / 1024), 2)
$RepositoryFriendlyName = $r.RepositoryFriendlyName
$Enabled = $ct.Enabled
}
$job += [pscustomobject]@{Jobname = $JobName; UsedSpaceInGB = $UsedSpaceGB; UsedSpacePercent = $UsedSpacepercent; FreeSpaceInGB = $FreeSpaceGB; RepositoryFriendlyName = $RepositoryFriendlyName; Enabled =$Enabled}
}
$job | sort Jobname | Format-Table -AutoSize
But I would really like last restore point date.
Vitaliy S.
VP, Product Management
Posts: 27121 Liked: 2722 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:
Post
by Vitaliy S. » Jan 15, 2021 9:44 am
1 person likes this post
Hi Jonas,
It is not exactly what you're asking for, but if you run Veeam Service Provider Console you can get this info via APIs or by simply
exporting the Protected Data tab into CSV/XML.
Thanks!
johnny1337
Service Provider
Posts: 6 Liked: never
Joined: Aug 28, 2020 12:53 pm
Full Name: Jonas
Contact:
Post
by johnny1337 » Jan 15, 2021 10:29 am
this post
Hi Vitaliy,
That was great info. Is it possible to automatically send it as an email or download it via script?
Some computers seems like they are missing.
The only thing missing in that view is the space-values I think.
Thank you!
Vitaliy S.
VP, Product Management
Posts: 27121 Liked: 2722 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:
Post
by Vitaliy S. » Jan 15, 2021 10:37 am
this post
Do you manage these backup agents or they are managed by customers themselves and you're only providing Cloud Connect repository as a service?
johnny1337
Service Provider
Posts: 6 Liked: never
Joined: Aug 28, 2020 12:53 pm
Full Name: Jonas
Contact:
Post
by johnny1337 » Jan 15, 2021 1:15 pm
this post
I am managing the backup agents. Maybe I should look at the api.