Add-WssBackupSchedule
Add-WssBackupSchedule
Adds a date and time to a backup policy for use as a backup schedule.
Syntax
Parameter Set: Default
Add-WssBackupSchedule [-BackupPolicy] <ScheduledBackupPolicy> [-BackupTime] <DateTime> [ <CommonParameters>]
Detailed Description
The Add-WssBackupSchedule cmdlet adds a date and time to a backup policy. The backup process uses this date and time as a backup schedule.
Parameters
-BackupPolicy<ScheduledBackupPolicy>
Specifies the backup policy to which to add the backup schedule.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-BackupTime<DateTime>
Specifies the backup date and time to add to the scheduled backup policy.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Add a backup schedule to a backup policy
This example adds a backup schedule to a backup policy.
The first command gets the backup policy for the computer and stores it in the $ContosoBUPolicy25 variable.
The second command adds 5:00 A.M. daily as a backup schedule for the backup policy stored in $ContosoBUPolicy25.
PS C:\> $ContosoBUPolicy25 = Get-WssBackupPolicy
PS C:\> Add-WssBackupSchedule -BackupPolicy $ContosoBUPolicy25 -BackupTime 5:00