Skip to content

Commit b06415d

Browse files
committed
hide recently added apps
1 parent bce1a31 commit b06415d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Initialize-Machine.ps1

+6-3
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,13 @@ Begin
208208
if (!(Test-Path $0)) { New-Item -Path $0 | Out-Null }
209209
Set-ItemProperty $0 -Name 'NoDriveTypeAutoRun' -Type DWord -Value 255
210210

211-
# unlock start menu customization. Some companies may set this to prevent stupid users
212-
# from rearranging the start menu icons.
213211
$0 = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer'
214-
if (Test-Path $0) { Set-ItemProperty $0 -Name 'LockedStartLayout' -Type DWord -Value 0 }
212+
if (!(Test-Path $0)) { New-Item -Path $0 | Out-Null }
213+
# unlock start menu customization. Some companies set this to prevent stupid users
214+
# from rearranging the start menu icons.
215+
Set-ItemProperty $0 -Name 'LockedStartLayout' -Type DWord -Value 0
216+
# hide Recently Added apps sections from Start menu
217+
Set-ItemProperty $0 -Name 'HideRecentlyAddedApps' -Type DWord -Value 1
215218
}
216219

217220
function EnablePhotoViewer

0 commit comments

Comments
 (0)