Convert-CMSchedule

Converts schedule tokens into and from interval strings.

Syntax

Convert-CMSchedule
       [-InputObject] <IResultObject[]>
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [<CommonParameters>]
Convert-CMSchedule
       [-ScheduleString] <String[]>
       [-DisableWildcardHandling]
       [-ForceWildcardHandling]
       [<CommonParameters>]

Description

The Convert-CMSchedule cmdlet decodes and encodes schedule tokens into and from Microsoft System Center Configuration Manager interval strings.

Examples

Example 1: Convert a schedule string

PS C:\>Convert-CMSchedule -ScheduleString "02C159C0381A200002C159C0381B200002C159C0381C200002C159C0381D200002C159C0381E2000"

This command converts a schedule string into a schedule token.

Required Parameters

-InputObject
Type:IResultObject[]
Aliases:ScheduleToken
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ScheduleString

Specifies an array of interval strings.

Type:String[]
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False