PowerShell script exchange
-
Rajesh1210
- Influencer
- Posts: 12
- Liked: never
- Joined: Feb 22, 2021 3:31 pm
- Full Name: Rajesh TK
-
Contact:
Post
by Rajesh1210 »
this post
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:
Post
by rennerstefan »
this post
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:
Post
by Rajesh1210 »
this post
Thanks for that Stefan!
But unfortunately it did not return anything.
Users browsing this forum: No registered users and 13 guests