Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Win10.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ $tweaks = @(
"DisableThumbsDB", # "EnableThumbsDB",
# "AddENKeyboard", # "RemoveENKeyboard",
# "EnableNumlock", # "DisableNumlock",
"EnableClassicControlPanel", # "DisableClassicControlPanel",

### Application Tweaks ###
"DisableOneDrive", # "EnableOneDrive",
Expand Down Expand Up @@ -1365,6 +1366,20 @@ Function DisableNumlock {
$wsh.SendKeys('{NUMLOCK}')
}
}
# Enable Classic Control Panel (Windows 7 style)
Function EnableClassicControlPanel {
Write-Host "Enabling Classic Control Panel (Windows 7 style)..."
If (!(Test-Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) {
New-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" | Out-Null
}
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "ForceClassicControlPanel" -Type DWord -Value 1
}

# Disable Classic Control Panel (Windows 7 style)
Function DisableClassicControlPanel {
Write-Host "Disabling Classic Control Panel (Windows 7 style)..."
Remove-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "ForceClassicControlPanel" -ErrorAction SilentlyContinue
}



Expand Down