Show file extensions by default

This commit is contained in:
Manuel Thalmann 2023-07-16 12:55:23 +02:00
parent 09d6e3963e
commit b91f919fc0
2 changed files with 13 additions and 0 deletions

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);

View file

@ -10,6 +10,7 @@ function Invoke-WindowsInstallation([Context] $context)
Write-Host "Starting Installation and Restoration of Windows";
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
Update-WindowsInstallation $context;
. "$PSScriptRoot/../Config/Explorer/Install.ps1";
if (-not $context.Get("SoftwarePrerequisitesInstalled")) {
Write-Host "Installing prerequisites for installing software";