localscript/stashed/Set-TaskbarShowClock.ps1
function Set-TaskbarShowClock { <# .SYNOPSIS Enables or disables the Taskbar Show Clock .DESCRIPTION The Set-TaskbarShowClock cmdlet is used to switch enable or disable the Taskbar Show Clock .NOTES Written by Jaap Brasser for community usage Twitter: @jaap_brasser GitHub: jaapbrasser .LINK TBD .EXAMPLE Set-TaskbarShowClock -Enable Enables the Taskbar Show Clock .EXAMPLE Set-TaskbarShowClock -Disable -Verbose Disables the Taskbar Show Clock while displaying verbose information #> [CmdletBinding(SupportsShouldProcess = $true)] Param( [Parameter(Mandatory = $true, ParameterSetName='Enable', HelpMessage = 'Enable Taskbar Show Clock')] [switch] $Enable, [Parameter(Mandatory = $true, ParameterSetName='Disable', HelpMessage = 'Disable Taskbar Show Clock')] [switch] $Disable ) Invoke-ConfigurationData -CallingCmdlet $MyInvocation.MyCommand.Name -Parameter $PSBoundParameters } |