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