CDSoftware/Taskbar.ps1
function Set-TaskbarCortanaButtonVisibility { <# .SYNOPSIS ���������� Cortana ��ť�Ŀɼ��� .DESCRIPTION ���������� Cortana ��ť�Ŀɼ��� .PARAMETER Value ֵ .EXAMPLE Set-TaskbarCortanaButtonVisibility $true .OUTPUTS void #> [CmdletBinding()] PARAM( [parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [String] $Value ) PROCESS { $v = 0 if ($Value) { $v = 1 } Set-ItemProperty Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ -Name ShowCortanaButton -Value $v } } function Set-TaskbarTaskViewButtonVisibility { <# .SYNOPSIS ���������� TaskView ��ť�Ŀɼ��� .DESCRIPTION ���������� TaskView ��ť�Ŀɼ��� .PARAMETER Value ֵ .EXAMPLE Set-TaskbarTaskViewButtonVisibility $true .OUTPUTS void #> [CmdletBinding()] PARAM( [parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [String] $Value ) PROCESS { $v = 0 if ($Value) { $v = 1 } Set-ItemProperty Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ -Name ShowTaskViewButton -Value $v } } function Set-TaskbarFeedsButtonVisibility { <# .SYNOPSIS ���������� ��Ѷ����Ȥ ��ť�Ŀɼ��� .DESCRIPTION ���������� ��Ѷ����Ȥ ��ť�Ŀɼ��� .PARAMETER Value ֵ .EXAMPLE Set-TaskbarFeedsButtonVisibility $true .OUTPUTS void #> [CmdletBinding()] PARAM( [parameter(Mandatory=$true, ValueFromPipelineByPropertyName=$true)] [String] $Value ) PROCESS { $v = 2 if ($Value) { $v = 0 } Set-ItemProperty Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Feeds -Name ShellFeedsTaskbarViewMode -Value $v $v = 0 if ($Value) { $v = 1 } Set-ItemProperty Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Feeds -Name IsFeedsAvailable -Value $v } } |