Show file extensions by default
This commit is contained in:
parent
dae4c35c2a
commit
ca5913e41b
2 changed files with 13 additions and 0 deletions
scripts/Windows/Config/Explorer
12
scripts/Windows/Config/Explorer/Install.ps1
Normal file
12
scripts/Windows/Config/Explorer/Install.ps1
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue