external help file | Module Name | online version | schema |
---|---|---|---|
PSDates-help.xml |
PSDates |
2.0.0 |
Returns the second Tuesday of the month
Get-PatchTuesday [-Date <DateTime>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Get-PatchTuesday [-Month <Int32>] [-ProgressAction <ActionPreference>] [-Year <Int32>] [<CommonParameters>]
This function allow you to pass a date, or a month/year combination to find the second Tuesday (aka Patch Tuesday) of any month
Get-PatchTuesday
Returns the second Tuesday for the current month
Get-PatchTuesday -Date "11/17/2021"
Returns the second Tuesday for November 2021
Get-PatchTuesday -Month 6 -Year 2020
Returns the second Tuesday for June 2020
Get-PatchTuesday -Month 4
Returns the second Tuesday for April of the current year
The datetime value to return the second Tuesday for the month
Type: DateTime
Parameter Sets: Date
Aliases:
Accepted values:
Required: True (None) False (Date)
Position: Named
Default value: $(Get-Date)
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
The month to return the second Tuesday for. Enter a value from 1 to 12.
Type: Int32
Parameter Sets: MonthYear
Aliases:
Accepted values:
Required: True (None) False (MonthYear)
Position: Named
Default value: $(Get-Date).Month
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Accepted values:
Required: True (None) False (All)
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
The year to return the second Tuesday for. Enter a value from 1 to 9999
Type: Int32
Parameter Sets: MonthYear
Aliases:
Accepted values:
Required: True (None) False (MonthYear)
Position: Named
Default value: $(Get-Date).Year
Accept pipeline input: False
Accept wildcard characters: False
DontShow: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Fill Related Links Here