< Back

Show-GuiCalendar

Sun Jan 19, 2020 6:18 pm

NAME Show-GuiCalendar



SYNOPSIS

Display a WPF-based calendar





SYNTAX

Show-GuiCalendar [[-Start] <DateTime>] [[-End] <DateTime>] [-Font {Segoi UI | QuickType | Tahoma | Lucida Console

| Century Gothic}] [-FontStyle {Normal | Italic | Oblique}] [-FontWeight {Normal | DemiBold | Light | Bold}]

[-HighlightDate <DateTime[]>] [<CommonParameters>]





DESCRIPTION

If you are running Windows PowerShell, you can display a graphical calendar. You can specify up to 3 months. There

are also parameters to fine tune the calendar style. The calendar form is transparent. But you should be able to

click on it to drag it around your screen. You can also use the + and - keys to increase or decrease the

calendar's opacity. You may have to click on a calendar before making any adjustments.



This command launches the calendar in a separate runspace so that it doesn't block your prompt. However, if you

close the PowerShell session that launched the calendar, the calendar will also automatically close.





PARAMETERS

-End <DateTime>

Enter the last month to display by date, like 3/1/2019. You cannot display more than 3 months.



Required? false

Position? 2

Default value current month

Accept pipeline input? False

Accept wildcard characters? false



-Font <String>

Select a font family for your calendar.



Required? false

Position? named

Default value Segoi UI

Accept pipeline input? False

Accept wildcard characters? false



-FontStyle <String>

Select a font style for your calendar.



Required? false

Position? named

Default value Normal

Accept pipeline input? False

Accept wildcard characters? false



-FontWeight <String>

Select a font weight for your calendar.



Required? false

Position? named

Default value Normal

Accept pipeline input? False

Accept wildcard characters? false



-HighlightDate <DateTime[]>

Enter an array of dates to highlight like 12/25/2019.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Start <DateTime>

Enter the first month to display by date, like 1/1/2019.



Required? false

Position? 1

Default value current month

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

None







OUTPUTS

None







NOTES





This command should have an alias of gcal.



Learn more about PowerShell: http://jdhitsolutions.com/blog/essentia ... resources/



-------------------------- Example 1 --------------------------



PS C:\\> Show-GuiCalendar



Display the current month as a graphical calendar.

-------------------------- Example 2 --------------------------



PS C:\\> Show-GuiCalendar -start 12/2018 -end 2/2019 -highlight 12/24/18,12/25/18,12/31/18,1/1/19,2/14/19 -font

'Century Gothic' -FontStyle italic



Display 3 months with selected dates highlighted and style the calendar to font settings.



RELATED LINKS

Online Version: http://bit.ly/2KLup3R

Show-Calendar

Get-Calendar