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