Taskbar größe hinzugefügt

This commit is contained in:
2022-12-05 19:47:05 +01:00
parent 6b3cca19ea
commit 6b3fecb947
2 changed files with 5 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ Hier werden Windows Einstellungen modifiziert.
- Vollständigen Pfad im Explorer anzeigen. - Vollständigen Pfad im Explorer anzeigen.
- Erweitertest Kontextmenü im Explorer. - Erweitertest Kontextmenü im Explorer.
- Optionale Installation eines Powershell CMDlets um Windows Updates zu installieren. - Optionale Installation eines Powershell CMDlets um Windows Updates zu installieren.
- Größe der Taskbar festlegen.
### Update System ### Update System

View File

@@ -95,12 +95,15 @@ do {
Read-Host "Computer muss neugestartet werden!" Read-Host "Computer muss neugestartet werden!"
} }
} '4' { } '4' {
$decision = $Host.UI.PromptForChoice('Explorer', 'Soll das Kontextmenü von Windows 10 wiederhergestellt werden?' , $choices, 1) $decision = $Host.UI.PromptForChoice('Explorer', 'Sollen Explorer und Taskbar Settings eingerichtet werden?' , $choices, 1)
if ($decision -eq 0) { if ($decision -eq 0) {
New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -value '00000001' Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -value '00000001'
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -value '00000000' Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -value '00000000'
Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState' -Name 'FullPath' -value '00000001' Set-Itemproperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CabinetState' -Name 'FullPath' -value '00000001'
# Taskbar größe ändern
Remove-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi'
New-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'TaskbarSi' -value '0000001' -PropertyType DWORD
Write-Host "Starte Explorer neu um änderungen zu übernehmen" Write-Host "Starte Explorer neu um änderungen zu übernehmen"
Get-Process explorer | Stop-Process Get-Process explorer | Stop-Process
} }