Show file extensions by default

This commit is contained in:
Manuel Thalmann 2023-07-16 12:55:23 +02:00
commit ca5913e41b
2 changed files with 13 additions and 0 deletions
scripts/Windows/Config/Explorer

View file

@ -0,0 +1,12 @@
#!/bin/pwsh
param($context)
Write-Host "Configuring file explorer";
$action = {
param([Microsoft.Win32.RegistryKey] $userKey)
$path = $userKey.PSPath;
Set-ItemProperty "$path\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Value 0 -Type "DWord";
}
$context.ProcessDefaultUserKey($action);