Change/Set job schedule with Powershell Toolkit

PowerShell script exchange

Change/Set job schedule with Powershell Toolkit

Veeam Logoby afokkema » Wed Dec 15, 2010 4:43 pm

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
afokkema
Veeam Vanguard
 
Posts: 19
Liked: never
Joined: Fri Feb 13, 2009 2:00 pm
Location: Netherlands
Full Name: Arne Fokkema

Re: Change/Set job schedule with Powershell Toolkit

Veeam Logoby Alexey D. » Thu Dec 16, 2010 8:45 am

Hello, please take a look at Set-VBRJobScheduleOptions, this function is designed for scheduling. Thanks!
Alexey D.
 

Re: Change/Set job schedule with Powershell Toolkit

Veeam Logoby afokkema » Thu Dec 16, 2010 1:07 pm

Thanks Alexey. Do you have some examples?
afokkema
Veeam Vanguard
 
Posts: 19
Liked: never
Joined: Fri Feb 13, 2009 2:00 pm
Location: Netherlands
Full Name: Arne Fokkema

Re: Change/Set job schedule with Powershell Toolkit

Veeam Logoby Vitaliy S. » Mon Dec 20, 2010 12:20 pm

For the usage example, please have a look at User Guide (page 176).
Vitaliy S.
Veeam Software
 
Posts: 19564
Liked: 1103 times
Joined: Mon Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 3 guests