Show file extensions by default
This commit is contained in:
parent
dae4c35c2a
commit
ca5913e41b
2 changed files with 13 additions and 0 deletions
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);
|
|
@ -10,6 +10,7 @@ function Invoke-WindowsInstallation([Context] $context)
|
|||
Write-Host "Starting Installation and Restoration of Windows";
|
||||
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
|
||||
Update-WindowsInstallation $context;
|
||||
. "$PSScriptRoot/../Config/Explorer/Install.ps1";
|
||||
|
||||
if (-not $context.Get("SoftwarePrerequisitesInstalled")) {
|
||||
Write-Host "Installing prerequisites for installing software";
|
||||
|
|
Loading…
Reference in a new issue