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 Configuration Manager interval strings.

In Configuration Manager, scheduling information is configured by using schedule tokens. The interval strings can be used to set schedule properties when defining or modifying objects.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1: Convert a schedule string

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

This command converts a schedule string into a schedule token.

Parameters

-DisableWildcardHandling

This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.

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

-ForceWildcardHandling

This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.

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

-InputObject

Type:IResultObject[]
Aliases:ScheduleToken
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ScheduleString

Specifies an array of interval strings.

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

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject[]

Outputs

IResultObject

System.String

System.String[]