Skip to content

Commit

Permalink
added show desktop button
Browse files Browse the repository at this point in the history
  • Loading branch information
caglaryalcin committed Feb 18, 2024
1 parent 4e2ed2f commit 6edadf4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions w11.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ Function SystemSettings {

TaskbarAlignLeft

# Disable Gallery for Windows 11
Function DisableGallery {
Write-Host "Disabling gallery folder..." -NoNewline
try {
Expand All @@ -393,6 +394,20 @@ Function SystemSettings {

DisableGallery

# Enable Show Desktop Button for Windows 11
Function EnableShowDesktop {
Write-Host "Enabling Show Desktop Button..." -NoNewline
try {
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSd" -Value 1 -ErrorAction SilentlyContinue
Write-Host "[DONE]" -ForegroundColor Green -BackgroundColor Black
}
catch {
Write-Host "[WARNING]: Show Desktop could not be enabled. $_" -ForegroundColor Red
}
}

EnableShowDesktop

# Disable Sync your settings
Function DisableSync {
Write-Host "Disabling Sync your settings..." -NoNewline
Expand Down

0 comments on commit 6edadf4

Please sign in to comment.