< Back
Add-AMScheduleConditionHoliday
Post
NAME Add-AMScheduleConditionHoliday
SYNOPSIS
Adds a holiday to an AutoMate Enterprise schedule condition using the Holidays interval.
SYNTAX
Add-AMScheduleConditionHoliday -InputObject <Object> [-Holiday] <String[]> [<CommonParameters>]
DESCRIPTION
Add-AMScheduleConditionHoliday adds a holiday to an AutoMate Enterprise schedule condition using the Holidays
interval.
PARAMETERS
-InputObject <Object>
The schedule condition object to add the holiday to.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Holiday <String[]>
The holiday categories 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 holiday category to schedule "On Specified Dates"
Get-AMCondition "On Specified Dates" | Add-AMScheduleConditionHoliday -Holiday "United States"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS
SYNOPSIS
Adds a holiday to an AutoMate Enterprise schedule condition using the Holidays interval.
SYNTAX
Add-AMScheduleConditionHoliday -InputObject <Object> [-Holiday] <String[]> [<CommonParameters>]
DESCRIPTION
Add-AMScheduleConditionHoliday adds a holiday to an AutoMate Enterprise schedule condition using the Holidays
interval.
PARAMETERS
-InputObject <Object>
The schedule condition object to add the holiday to.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Holiday <String[]>
The holiday categories 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 holiday category to schedule "On Specified Dates"
Get-AMCondition "On Specified Dates" | Add-AMScheduleConditionHoliday -Holiday "United States"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS