SHOW:
|
|
- or go back to the newest paste.
| 1 | $param = (Test-Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskbar_cleaned) | |
| 2 | if ($param -eq "True") {exit}
| |
| 3 | else {
| |
| 4 | Start-Sleep -s 30 | |
| 5 | New-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name SearchboxTaskbarMode -PropertyType DWORD -Value 0 | |
| 6 | New-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name ShowTaskViewButton -PropertyType DWORD -Value 0 | |
| 7 | New-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarGlomLevel -PropertyType DWORD -Value 2 | |
| 8 | Remove-Item "$env:USERPROFILE\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar" -Recurse -Force | |
| 9 | Remove-Item HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband -Recurse -Force | |
| 10 | New-Item HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskbar_cleaned | |
| 11 | Stop-Process -ProcessName Explorer -WarningAction SilentlyContinue -ErrorAction SilentlyContinue | |
| 12 | exit} |