< Back
Remove-AMScheduleConditionHoliday
Post
NAME Remove-AMScheduleConditionHoliday
SYNOPSIS
Removes a holiday from an AutoMate Enterprise schedule condition using the Holidays interval.
SYNTAX
Remove-AMScheduleConditionHoliday -InputObject <Object> [-Holiday] <String[]> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Remove-AMScheduleConditionHoliday removes a holiday from an AutoMate Enterprise schedule condition using the
Holidays interval.
PARAMETERS
-InputObject <Object>
The schedule condition object to remove the holiday from.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Holiday <String[]>
The holiday categories to remove from the schedule.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
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" | Remove-AMScheduleConditionHoliday -Holiday "United States"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS
SYNOPSIS
Removes a holiday from an AutoMate Enterprise schedule condition using the Holidays interval.
SYNTAX
Remove-AMScheduleConditionHoliday -InputObject <Object> [-Holiday] <String[]> [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Remove-AMScheduleConditionHoliday removes a holiday from an AutoMate Enterprise schedule condition using the
Holidays interval.
PARAMETERS
-InputObject <Object>
The schedule condition object to remove the holiday from.
Required? true
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Holiday <String[]>
The holiday categories to remove from the schedule.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
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" | Remove-AMScheduleConditionHoliday -Holiday "United States"
RELATED LINKS
https://github.com/AutomatePS/AutomatePS