Browse Source

add view settings to windows explorer optimizer script

pull/9/merge
Alex Hirsch 9 years ago
parent
commit
92041a7707
  1. 8
      scripts/optimize-windows-explorer.ps1

8
scripts/optimize-windows-explorer.ps1

@ -8,6 +8,14 @@ Import-Module -DisableNameChecking $PSScriptRoot\..\lib\reg-helper.psm1
echo "Elevating priviledges for this process"
do {} until (Elevate-Privileges SeTakeOwnershipPrivilege)
echo "Setting view options"
Import-Registry(@"
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"HideFileExt"=dword:00000000
"HideDrivesWithNoMedia"=dword:00000000
"@)
echo "Setting default view to This PC"
Import-Registry(@"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]

Loading…
Cancel
Save