I need to get the schedule for each job in a format easy ro be read, for example:
--> At 20:00 PM every Monday, Friday and Saturday
or
--> At 5:30 AM Everyday
or
--> After job "Other_backup_job"
How can I get such information via PowerShell and format it in a readable way?
Is there any saplne I can start from?
Regards
-
- Veteran
- Posts: 459
- Liked: 5 times
- Joined: Feb 01, 2012 12:04 pm
- Full Name: Mario
- Contact:
-
- Product Manager
- Posts: 20271
- Liked: 2252 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Getting detailed schedule for jobs
As a first step I'd recommend taking a look at this script that I've created before; might be helpful. Thanks.
-
- Veteran
- Posts: 459
- Liked: 5 times
- Joined: Feb 01, 2012 12:04 pm
- Full Name: Mario
- Contact:
Re: Getting detailed schedule for jobs
Thank you, but...
Information
You are not authorised to read this forum.
Regards
Marius
Information
You are not authorised to read this forum.
Regards
Marius
-
- Product Manager
- Posts: 20271
- Liked: 2252 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Getting detailed schedule for jobs
Didn't realize that I'd posted the script on our internal forum. That's it:
Thanks.
Code: Select all
Asnp VeeamPSSnapin
function Set-Culture([System.Globalization.CultureInfo] $culture)
{
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
[System.Threading.Thread]::CurrentThread.CurrentCulture = $culture
}
Set-Culture "en-US"
Get-VBRJob | ?{($_.ScheduleOptions.NextRun | Get-Date -Format "dd.MM.yyyy") -eq (Get-Date -Format "dd.MM.yyyy")} | Sort-Object {$_.ScheduleOptions.NextRun} | Select {$_.ScheduleOptions.NextRun}, name
-
- Veteran
- Posts: 459
- Liked: 5 times
- Joined: Feb 01, 2012 12:04 pm
- Full Name: Mario
- Contact:
Re: Getting detailed schedule for jobs
Many thanks!
marius
marius
Who is online
Users browsing this forum: No registered users and 28 guests