PowerShell script exchange
Post Reply
afokkema
Service Provider
Posts: 23
Liked: 3 times
Joined: Feb 13, 2009 2:00 pm
Full Name: Arne Fokkema
Location: Netherlands
Contact:

Change/Set job schedule with Powershell Toolkit

Post by afokkema »

I can't find the SetScheduleOptions method in the Veeam Powershell toolkit.

Code: Select all

PS C:\Documents and Settings\Administrator>$vbrjob = Get-VBRJob | Where {$_.Name -eq "<jobName>"}
PS C:\Documents and Settings\Administrator> $vbrjob |gm


   TypeName: Veeam.Backup.Core.CBackupJob

Name               MemberType Definition
----               ---------- ----------
Delete             Method     System.Void Delete()
DisableScheduler   Method     System.Void DisableScheduler()
EnableScheduler    Method     System.Void EnableScheduler()
Equals             Method     bool Equals(System.Object obj)
FindLastSession    Method     Veeam.Backup.Core.CBackupSession FindLastSessi...
GetHashCode        Method     int GetHashCode()
GetLastResult      Method     Veeam.Backup.Model.CBaseSessionInfo+EResult Ge...
GetLastState       Method     Veeam.Backup.Model.CBaseSessionInfo+EState Get...
GetObjectsInJob    Method     Veeam.Backup.Core.CObjectInJob[] GetObjectsInJ...
GetOptions         Method     Veeam.Backup.Model.BackupJobOptions GetOptions()
GetScheduleOptions Method     Veeam.Backup.Model.ScheduleOptions GetSchedule...
GetTargetHost      Method     Veeam.Backup.Core.CHost GetTargetHost()
GetType            Method     type GetType()
GetVssOptions      Method     Veeam.Backup.Model.CVssOptions GetVssOptions()
IsStopped          Method     bool IsStopped()
SetOptions         Method     System.Void SetOptions(Veeam.Backup.Model.Back...
SetVssOptions      Method     System.Void SetVssOptions(Veeam.Backup.Model.C...
ToString           Method     string ToString()
Description        Property   System.String Description {get;}
Id                 Property   System.Guid Id {get;}
Info               Property   Veeam.Backup.Model.CDbBackupJobInfo Info {get;}
IsScheduleEnabled  Property   System.Boolean IsScheduleEnabled {get;}
JobTargetType      Property   Veeam.Backup.Model.EDbJobType JobTargetType {g...
Name               Property   System.String Name {get;}


PS C:\Documents and Settings\Administrator>
How can I change/set a job schedule?
I am using the latest build of Veeam Backup & Replication: 5.0.1.198
Alexey D.

Re: Change/Set job schedule with Powershell Toolkit

Post by Alexey D. »

Hello, please take a look at Set-VBRJobScheduleOptions, this function is designed for scheduling. Thanks!
afokkema
Service Provider
Posts: 23
Liked: 3 times
Joined: Feb 13, 2009 2:00 pm
Full Name: Arne Fokkema
Location: Netherlands
Contact:

Re: Change/Set job schedule with Powershell Toolkit

Post by afokkema »

Thanks Alexey. Do you have some examples?
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Change/Set job schedule with Powershell Toolkit

Post by Vitaliy S. »

For the usage example, please have a look at User Guide (page 176).
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests