PortValhalla/scripts/Windows/Config/Explorer/Install.ps1

13 lines
338 B
PowerShell
Raw Normal View History

2023-07-16 10:55:23 +00:00
#!/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);