Skip to content

Instantly share code, notes, and snippets.

@larsw
Forked from damieng/WinDev.ps1
Last active February 7, 2016 13:35
Show Gist options
  • Save larsw/fceb8d9b13ddd197c2aa to your computer and use it in GitHub Desktop.
Save larsw/fceb8d9b13ddd197c2aa to your computer and use it in GitHub Desktop.
Make Windows 10 more developer workstation oriented
# Run this from Powershell as Administrator with (New-Object System.Net.WebClient).DownloadString("https://gist.github.com/larsw/fceb8d9b13ddd197c2aa/raw") | powershell -command -
Write-Output "Making Windows 10 more developer workstation oriented..."
Set-ExecutionPolicy Unrestricted
Write-Output "Bloatware removing..."
$apps = @(
"Microsoft.3DBuilder"
"Microsoft.Appconnector"
"Microsoft.BingFinance"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingWeather"
"Microsoft.Getstarted"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.Office.OneNote"
"Microsoft.People"
"Microsoft.WindowsAlarms"
"Microsoft.WindowsCamera"
"Microsoft.WindowsMaps"
"Microsoft.WindowsPhone"
"Microsoft.WindowsSoundRecorder"
"Microsoft.XboxApp"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
"microsoft.windowscommunicationsapps"
"Microsoft.MinecraftUWP"
"Microsoft.CommsPhone"
"Microsoft.ConnectivityStore"
"Microsoft.Messaging"
"Microsoft.Office.Sway"
"Flipboard.Flipboard"
"ShazamEntertainmentLtd.Shazam"
"king.com.CandyCrushSaga"
"ClearChannelRadioDigital.iHeartRadio"
)
foreach ($app in $apps) {
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
}
Write-Output "Windows Explorer more system oriented..."
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer'
sp $key ShowFrequent 0
sp $key ShowRecent 0
$key = ($key + '\Advanced')
sp $key Hidden 1
sp $key HideFileExt 0
sp $key ShowSuperHidden 1
sp $key LaunchTo 1
# Remove Videos, Music and Pictures shortcuts from My Computer view
$shortcutKeys = @(
"{A0953C92-50DC-43bf-BE83-3742FED03C9C}"
"{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}"
"{1CF1260C-4DD0-4ebb-811F-33C572699FDE}"
"{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}"
"{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}"
"{24ad3ad4-a569-4530-98e1-ab02f9417aa8}"
)
foreach ($mode in @("", "\Wow6432Node")) {
$key = "HKLM:\SOFTWARE" + $mode + "\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\"
foreach($shortcut in $shortcuts) {
$path = ($key + $shortcut)
echo $path
}
}
Stop-Process -processname explorer
Write-Output "Privacy setting..."
$key = "HKCU:\SOFTWARE\Microsoft\Personalization\Settings"
md -Force $key | Out-Null
sp $key "AcceptedPrivacyPolicy" 0
$key = "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore"
md -Force $key | Out-Null
sp $key "HarvestContacts" 0
$key = 'HKCU:\SOFTWARE\Microsoft\InputPersonalization'
md -Force $key | Out-Null
sp $key "RestrictImplicitInkCollection" 1
sp $key "RestrictImplicitTextCollection" 1
$user = New-Object System.Security.Principal.NTAccount($env:UserName)
$sid = $user.Translate([System.Security.Principal.SecurityIdentifier]).value
$key = "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features\"
$ukey = ($key + $sid)
md -Force $ukey | Out-Null
sp $ukey "FeatureStates" 0x33c
sp $key "WiFiSenseCredShared" 0
sp $key "WiFiSenseOpen" 0
Write-Output "Command Prompt QuickEdit by default..."
sp "HKCU:\Console" -name QuickEdit -value 1
Write-Output "Complete."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment