< Back
Add-AMScheduleConditionCustomDate
Post
NAME Add-AMScheduleConditionCustomDate
SYNOPSIS
Adds a custom date to an AutoMate Enterprise schedule condition using the Custom interval.
SYNTAX
Add-AMScheduleConditionCustomDate -InputObject <Object> [-CustomLaunchDates] <DateTime[]> [<CommonParameters>]
DESCRIPTION
Add-AMScheduleConditionCustomDate adds a custom date to an AutoMate Enterprise schedule condition using the Custom
interval.
PARAMETERS
-InputObject <Object>
The schedule condition object to add the custom date to.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-CustomLaunchDates <DateTime[]>
The dates to add to the schedule.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
The following AutoMate object types can be modified by this function:
Condition
OUTPUTS
None
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Add a custom run time of 1 hour from now to schedule "On Specified Dates"
Get-AMCondition "On Specified Dates" | Add-AMScheduleConditionCustomDate -CustomLaunchDates (Get-Date).AddHours(1)
RELATED LINKS
https://github.com/AutomatePS/AutomatePS
SYNOPSIS
Adds a custom date to an AutoMate Enterprise schedule condition using the Custom interval.
SYNTAX
Add-AMScheduleConditionCustomDate -InputObject <Object> [-CustomLaunchDates] <DateTime[]> [<CommonParameters>]
DESCRIPTION
Add-AMScheduleConditionCustomDate adds a custom date to an AutoMate Enterprise schedule condition using the Custom
interval.
PARAMETERS
-InputObject <Object>
The schedule condition object to add the custom date to.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-CustomLaunchDates <DateTime[]>
The dates to add to the schedule.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
The following AutoMate object types can be modified by this function:
Condition
OUTPUTS
None
-------------------------- EXAMPLE 1 --------------------------
PS C:\\># Add a custom run time of 1 hour from now to schedule "On Specified Dates"
Get-AMCondition "On Specified Dates" | Add-AMScheduleConditionCustomDate -CustomLaunchDates (Get-Date).AddHours(1)
RELATED LINKS
https://github.com/AutomatePS/AutomatePS