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