12 lines
338 B
PowerShell
12 lines
338 B
PowerShell
#!/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);
|