-
Notifications
You must be signed in to change notification settings - Fork 0
/
Show_Fileextensions.ps1
14 lines (10 loc) · 1000 Bytes
/
Show_Fileextensions.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
# Reg2CI https://reg2ps.azurewebsites.net/
#Windows Registry Editor Version 5.00
#[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
#"HideFileExt"=dword:00000000
#"Hidden"=dword:00000001
#"ShowSuperHidden"=dword:00000001
if((Test-Path -LiteralPath "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced") -ne $true) { New-Item "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -force -ea SilentlyContinue };
New-ItemProperty -LiteralPath 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'HideFileExt' -Value 0 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'Hidden' -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowSuperHidden' -Value 1 -PropertyType DWord -Force -ea SilentlyContinue;