PowerShell script exchange
Post Reply
Rajesh1210
Influencer
Posts: 12
Liked: never
Joined: Feb 22, 2021 3:31 pm
Full Name: Rajesh TK
Contact:

Backup session of Job for a given date

Post by Rajesh1210 »

Hi Team,

I am looking to find the session info of Backup jobs for a specific date. I am trying the below command but it does not return anything.

Code: Select all

$session = Get-VBRBackupSession | Where {$_.jobId -eq $job.Id.Guid}
$session | where {$_.CreationTime -eq 4/16/2022}
Kindly help!
rennerstefan
Veeam Software
Posts: 688
Liked: 150 times
Joined: Jan 22, 2015 2:39 pm
Full Name: Stefan Renner
Location: Germany
Contact:

Re: Backup session of Job for a given date

Post by rennerstefan »

Hi,

already answered it in the other thread.
One option would be:

Code: Select all

$sessions | where {$_.CreationTime.day -eq "20" -and $_.CreationTime.month -eq "4" -and $_.CreationTime.year -eq "2022"}
Thanks
Stefan Renner

Veeam PMA
Rajesh1210
Influencer
Posts: 12
Liked: never
Joined: Feb 22, 2021 3:31 pm
Full Name: Rajesh TK
Contact:

Re: Backup session of Job for a given date

Post by Rajesh1210 »

Thanks for that Stefan!

But unfortunately it did not return anything.
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests