Skip to content

Commit

Permalink
v4.11.0
Browse files Browse the repository at this point in the history
- Added recommended section function in start menu
  • Loading branch information
caglaryalcin committed Sep 1, 2024
1 parent 0067ca9 commit 32bf904
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions set.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,21 @@ Function SystemSettings {

HideRecentlyAddedApps

Function HideRecommendedSection {
Write-Host "Hiding 'Recommended Section' List from the Start Menu..." -NoNewline
try {
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "HideRecommendedSettings" -Type DWord -Value 1
}
catch {
Write-Host "[WARNING] $_" -ForegroundColor Red -BackgroundColor Black
}
}

HideRecommendedSection

Function Disable-Services {
param (
[string[]]$disableservices
Expand Down

0 comments on commit 32bf904

Please sign in to comment.