Skip to content

Instantly share code, notes, and snippets.

@TheCaptain989
TheCaptain989 / stripwin10.ps1
Created July 28, 2019 17:38
Remove Windows 10 junk and unwanted services from a new install
# Change your computer name
$name = Read-Host -Prompt 'Enter new workstation name'
Rename-Computer -NewName $name
# Don't append "- Shortcut" to new shortcuts
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ -Name NamingTemplates -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\NamingTemplates -Name "ShortcutNameTemplate" -PropertyType "String" -Value '%s.lnk'
# Show filename extensions and hidden files in windows explorer
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'