public/Set-TaskbarShowOnMultiMonitor.ps1

function Set-TaskbarShowOnMultiMonitor {
<#
    .SYNOPSIS
    Enables or disables the Taskbar Show On Multi Monitor
 
    .DESCRIPTION
    The Set-TaskbarShowOnMultiMonitor cmdlet is used to enable or disable the Taskbar Show On Multi Monitor
 
    .NOTES
    Written by Jaap Brasser for community usage
    Twitter: @jaap_brasser
    GitHub: jaapbrasser
 
    .LINK
    TBD
 
    .EXAMPLE
    Set-TaskbarShowOnMultiMonitor -Enable
 
    Enables the Taskbar Show On Multi Monitor
 
    .EXAMPLE
    Set-TaskbarShowOnMultiMonitor -Disable -Verbose
 
    Disables the Taskbar Show On Multi Monitor while displaying verbose information
#>


    [CmdletBinding(SupportsShouldProcess = $true)]
    Param(
        [Parameter(Mandatory = $true, ParameterSetName='Enable', HelpMessage = 'Enable Taskbar Show On Multi Monitor')]
        [switch] $Enable,
        [Parameter(Mandatory = $true, ParameterSetName='Disable', HelpMessage = 'Disable Taskbar Show On Multi Monitor')]
        [switch] $Disable
    )

    Invoke-ConfigurationData -CallingCmdlet $MyInvocation.MyCommand.Name -Parameter $PSBoundParameters
}