Skip to content

Commit

Permalink
Add Windows Explorer display options script
Browse files Browse the repository at this point in the history
Added Explorer.ps1 to scripts: configures Windows Explorer display options and included in Clean Setup package.
  • Loading branch information
aisgbnok committed Jan 21, 2024
1 parent 8171231 commit 04f5a2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/clean_setup/clean_setup_customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<CommandFiles>
<CommandFile Name="Core_Assets">..\scripts\core_assets\Core_Assets.bat</CommandFile>
<CommandFile Name="Core_Assets">..\scripts\core_assets\Core_Assets.cab</CommandFile>
<CommandFile Name="Explorer">..\scripts\Explorer.ps1</CommandFile>
</CommandFiles>
<CommandLine>cmd /c "core_assets.bat"</CommandLine>
</DeviceContext>
Expand Down
9 changes: 9 additions & 0 deletions scripts/Explorer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Set Windows Explorer display options
New-Item -Path REGISTRY::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Force | Out-Null
Set-ItemProperty -Path REGISTRY::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ -Name "HideFileExt" -Value 0 # Show file extensions
Set-ItemProperty -Path REGISTRY::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ -Name "HideDrivesWithNoMedia" -Value 0 # Show empty drives
Set-ItemProperty -Path REGISTRY::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ -Name "Hidden" -Value 1 # Show hidden files
Set-ItemProperty -Path REGISTRY::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ -Name "LaunchTo" -Value 1 # Open File Explorer to This PC

Set-ItemProperty -Path REGISTRY::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\ -Name "ShowRecent" -Value 0 # Remove recent files
Set-ItemProperty -Path REGISTRY::HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\ -Name "ShowFrequemt" -Value 0 # Remove frequent folders

0 comments on commit 04f5a2f

Please sign in to comment.