Skip to content

Instantly share code, notes, and snippets.

@ktnjared
Last active September 6, 2019 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ktnjared/0d6a3506348521fb91d92849b807488d to your computer and use it in GitHub Desktop.
Save ktnjared/0d6a3506348521fb91d92849b807488d to your computer and use it in GitHub Desktop.
Windows 10 Setup Script for Myyah
# Myyah Setup Script
#############################################################################
# Rename the Computer (requires a reboot to take effect)
$computername = "Myyah" # Notebook
if ($env:computername -ne $computername) {
Rename-Computer -NewName $computername
}
#############################################################################
# Set Time Zone
Set-TimeZone "Eastern Standard Time"
net start w32time
w32tm /resync /force
#############################################################################
# Install Chocolatey: https://chocolatey.org/install
Set-ExecutionPolicy AllSigned; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Enable Chocolatey Autoconfirm
choco feature enable -n allowGlobalConfirmation
# Install Boxstarter: http://boxstarter.org/InstallBoxstarter
choco install -y boxstarter
# Refresh the shell environment
C:\ProgramData\chocolatey\bin\RefreshEnv.cmd
# Schedule updates to applications with chocolatey at 22:00
schtasks.exe `
/create `
/s "localhost" `
/ru "System" `
/tn "Update Chocolatey packages" `
/tr "%ChocolateyInstall%\bin\cup all" `
/sc DAILY `
/st 22:00 `
/F
#############################################################################
# Check for and Install all availavle Windows Updates
Install-WindowsUpdate -acceptEula -getUpdatesFromMS -SuppressReboots
#############################################################################
# Configure Power Settings (dc = battery; ac = plugged in; values = minutes)
# Screen
powercfg -change -monitor-timeout-dc 4
powercfg -change -monitor-timeout-ac 0
# Sleep (Machine)
powercfg -change -standby-timeout-dc 4
powercfg -change -standby-timeout-ac 0
# Disk Drives
powercfg -change -disk-timeout-dc 0
powercfg -change -disk-timeout-ac 0
# Turn off Hibernation
powercfg -h off
#############################################################################
# Disable Windows Features
# Disable Diagnostics Tracking
$services = @(
# Connected User Experiences and Telemetry
"DiagTrack",
# Data Usage
"DusmSvc",
# SSDP Discovery
"SSDPSRV"
)
Get-Service -Name $services | Stop-Service -Force
Get-Service -Name $services | Set-Service -StartupType Disabled
# Turn off the SQMLogger session at the next computer restart
Update-AutologgerConfig -Name SQMLogger -Start 0
# Set Telementry to Basic
# https://docs.microsoft.com/en-us/windows/privacy/configure-windows-diagnostic-data-in-your-organization
Set-ItemProperty `
-Path "HKLM:SOFTWARE\Policies\Microsoft\Windows\DataCollection" `
-Name "AllowTelemetry"-Type DWord -Value 0
# Disable-BingSearch # Do NOT use in 1903 or later; bug in KB4512941 breaks Start Menu Search + causes 100% CPU from Cortana process
Disable-GameBarTips
Disable-WindowsOptionalFeature -FeatureName Printing-XPSServices-Features -Online
Disable-WindowsOptionalFeature -FeatureName FaxServicesClientPackage -Online -NoRestart
Disable-WindowsOptionalFeature -FeatureName Printing-Foundation-InternetPrinting-Client -Online -NoRestart
# # Change Windows Feedback frequency to "Never"
# # Not needed since Feedback Hub app is removed below.
# If (-Not (Test-Path -Path "HKCU:\Software\Microsoft\Siuf\Rules")) {
# New-Item -Path "HKCU:\Software\Microsoft\Siuf\Rules" | Out-Null
# }
# New-ItemProperty `
# -Path "HKCU:\Software\Microsoft\Siuf\Rules" `
# -Name "NumberOfSIUFInPeriod" -Value 0 -Force
#############################################################################
# Enable Windows Features
Enable-RemoteDesktop
Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online -NoRestart
Enable-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online -NoRestart
Enable-WindowsOptionalFeature -FeatureName Containers -Online -NoRestart
# Turn on Windows Defender PUA Protection
Set-MpPreference -PUAProtection Enabled
# Turn on firewall & network protection
Set-NetFirewallProfile -Enabled True
#############################################################################
# Group Policy Configuration
# gpedit.msc > Computer Configuration > Administrative Templates > Windows Components > ...
# Cloud Content
# Turn off Microsoft consumer experiences = enable
If (-Not (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" | Out-Null
}
Set-ItemProperty `
-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" `
-Name "DisableWindowsConsumerFeatures" -Value 1
# Do not show Windows tips = enable
If (-Not (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" | Out-Null
}
Set-ItemProperty `
-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" `
-Name "DisableSoftLanding" -Value 1
# Search
# Allow Cortana = disabled
If (-Not (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" | Out-Null
}
Set-ItemProperty `
-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" `
-Name "AllowCortana" -Value 0
# # Don't search the web or display web results in Search = enabled
# If (-Not (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
# New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" | Out-Null
# }
# Set-ItemProperty `
# -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" `
# -Name "ConnectedSearchUseWeb" -Value 0
# # Don't search the web or display web results in Search over metered connections = enable
# If (-Not (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
# New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" | Out-Null
# }
# Set-ItemProperty `
# -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" `
# -Name "ConnectedSearchUseWebOverMeteredConnections" -Value 0
# Text Input
# Improve inking and typing recognition = disabled
If (-Not (Test-Path "HKCU:\Software\Microsoft\InputPersonalization")) {
New-Item -Path "HKCU:\Software\Microsoft\InputPersonalization" | Out-Null
}
Set-ItemProperty `
-Path "HKCU:\Software\Microsoft\InputPersonalization" `
-Name "RestrictImplicitInkCollection" -Value 0
Set-ItemProperty `
-Path "HKCU:\Software\Microsoft\InputPersonalization" `
-Name "RestrictImplicitTextCollection" -Value 0
#############################################################################
# Registry Updates
# Privacy: Let apps use my advertising ID: Disable
If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) {
New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" | Out-Null
}
Set-ItemProperty `
-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo"
-Name "Enabled" -Value 0
# WiFi Sense: HotSpot Sharing: Disable
If (-Not (Test-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting")) {
New-Item -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" | Out-Null
}
Set-ItemProperty `
-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting"
-Name "value" -Value 0
# WiFi Sense: Shared HotSpot Auto-Connect: Disable
If (-Not (Test-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots")) {
New-Item -Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" | Out-Null
}
Set-ItemProperty `
-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" `
-Name "value" -Value 0
# # Disable search for app in store for unknown extensions
# If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer")) {
# New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" | Out-Null
# }
# Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" "NoUseStoreOpenWith" 1
# Hide System Volume Icon (using EarTrumpet to replace this)
If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer")) {
New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" | Out-Null
}
Set-ItemProperty `
-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" `
-Name "HideSCAVolume" -Type DWord -Value 1
# Disbale Cortana (User)
If (-Not (Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search")) {
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" | Out-Null
}
Set-ItemProperty `
-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" `
-Name "CortanaConsent" -Type DWord -Value 0
Set-ItemProperty `
-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" `
-Name "CanCortanaBeEnabled" -Type DWord -Value 0
# Disable Bing/Edge Search in Start Menu Search
# This is the same as the Disable-BingSearch boxstarter script.
# Do NOT use in 1903 or later; bug in KB4512941 breaks Start Menu Search & causes 100% CPU from Cortana process.
# If (-Not (Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search")) {
# New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" | Out-Null
# }
# Set-ItemProperty `
# -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" `
# -Name "BingSearchEnabled" -Type DWord -Value 0
#############################################################################
# Remove Pre-installed Microsoft Software
# Many items in this list are no longer included in Windows 10 but are kept
# for historical purposes. Including them does not hurt anything.
#
# Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage # 3D Builder
Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage # Alarms & Clock
# Get-AppxPackage Microsoft.Appconnector | Remove-AppxPackage # App Connector
# Get-AppxPackage Microsoft.WindowsCalculator | Remove-AppxPackage # Calculator
Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage # Calendar and Mail
Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage # Camera
# Get-AppxPackage WindowsFeedbackHub | Remove-AppxPackage # Feedback Hub
Get-AppxPackage Microsoft.BingFoodAndDrink | Remove-AppxPackage # Food & Drink
Get-AppxPackage Microsoft.FreshPaint | Remove-AppxPackage # Fresh Paint
Get-AppxPackage Microsoft.GetHelp | Remove-AppxPackage # Get Help
Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage # Get Skype
Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage # Get Office
Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage # Groove Music
Get-AppxPackage Microsoft.BingHealthAndFitness | Remove-AppxPackage # Health & Fitness
Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage # Maps
# Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage # Messaging
Get-AppxPackage Microsoft.MicrosoftPowerBIForWindows | Remove-AppxPackage # Microsoft Power BI Desktop
# Get-AppxPackage Microsoft.WindowsStore | Remove-AppxPackage # Microsoft Store + Updates (BE CAREFUL REMOVING THIS!)
# Get-AppxPackage Microsoft.StorePurchaseApp | Remove-AppxPackage # Microsoft Store + Updates (BE CAREFUL REMOVING THIS!)
Get-AppxPackage Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage # Microsoft Solitaire Collectio
Get-AppxPackage Microsoft.Wallet | Remove-AppxPackage # Microsoft Wallet
Get-AppxPackage Microsoft.ConnectivityStore | Remove-AppxPackage # Microsoft Wi-Fi
# Get-AppxPackage Microsoft.MinecraftUWP | Remove-AppxPackage # Minecraft for Windows 10
Get-AppxPackage Microsoft.MixedReality.Portal | Remove-AppxPackage # Mixed Reality Portal
Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage # Money
# Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage # Movies & TV (Required for Projecting to Xbox One)
Get-AppxPackage Microsoft.NetworkSpeedTest | Remove-AppxPackage # Network Speed Test
Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage # News
# Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage # OneNote UWP
Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage # Paid Wi-Fi & Cellular
# Get-AppxPackage Microsoft.MSPaint | Remove-AppxPackage # Paint 3D
Get-AppxPackage Microsoft.People | Remove-AppxPackage # People
Get-AppxPackage Microsoft.CommsPhone | Remove-AppxPackage # Phone
Get-AppxPackage WindowsPhone | Remove-AppxPackage # Phone Companion
# Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage # Photos
# Get-AppxPackage Microsoft.Print3D | Remove-AppxPackage # Print 3D
# Get-AppxPackage Microsoft.ScreenSketch | Remove-AppxPackage # Snip & Sketch
Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage # Sports
Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage # Sticky Notes
Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage # Sway
Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage # Tips (Get Started)
# Get-AppxPackage Microsoft.BingTranslator | Remove-AppxPackage # Translator
Get-AppxPackage Microsoft.BingTravel | Remove-AppxPackage # Travel
# Get-AppxPackage Microsoft.Microsoft3DViewer | Remove-AppxPackage # View 3D
Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage # Voice Recorder
Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage # Weather
Get-AppxPackage Microsoft.WindowsReadingList | Remove-AppxPackage # Windows Reading List
# Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage # Xbox
# Get-AppxPackage Microsoft.XboxGameOverlay | Remove-AppxPackage # Game Bar
# Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage # Game Bar
# Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage # Xbox Live Login Provider for Programs/Games
# Get-AppxPackage Microsoft.XboxSpeechToTextOverlay | Remove-AppxPackage # Xbox Speech-to-Text On-Screen Overlay
# Get-AppxPackage Microsoft.Xbox.TCUI | Remove-AppxPackage # Xbox TCUI
Get-AppxPackage Microsoft.YourPhone | Remove-AppxPackage # Your Phone
#############################################################################
# Remove Pre-installed Third-Party Software
# Many items in this list are no longer included in Windows 10 but are kept
# for historical purposes. Including them does not hurt anything.
#
Get-AppxPackage -AllUsers *ActiproSoftwareLLC* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Autodesk* | Remove-AppxPackage
Get-AppxPackage -AllUsers *BubbleWitch* | Remove-AppxPackage
Get-AppxPackage -AllUsers *CaesarsSlotsFreeCasino* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Candy* | Remove-AppxPackage
Get-AppxPackage -AllUsers *CandyCrush* | Remove-AppxPackage
Get-AppxPackage -AllUsers *CandyCrushSaga* | Remove-AppxPackage
Get-AppxPackage -AllUsers *CandyCrushSoda* | Remove-AppxPackage
Get-AppxPackage -AllUsers *CandyCrushSodaSaga* | Remove-AppxPackage
Get-AppxPackage -AllUsers *CyberLink* | Remove-AppxPackage
Get-AppxPackage -AllUsers *DisneyMagicKingdoms* | Remove-AppxPackage
Get-AppxPackage -AllUsers *DolbyLaboratories* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Drawboard* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Dropbox* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Duolingo* | Remove-AppxPackage
Get-AppxPackage -AllUsers *EclipseManager* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Facebook* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Fallout* | Remove-AppxPackage
Get-AppxPackage -AllUsers *FarmVille* | Remove-AppxPackage
Get-AppxPackage -AllUsers *flaregamesGmbH* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Flipboard* | Remove-AppxPackage
Get-AppxPackage -AllUsers *GAMELOFTSA* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Hidden*City* | Remove-AppxPackage
Get-AppxPackage -AllUsers *iHeartRadio* | Remove-AppxPackage
Get-AppxPackage -AllUsers *KeeperSecurityInc* | Remove-AppxPackage
Get-AppxPackage -AllUsers king.com* | Remove-AppxPackage
Get-AppxPackage -AllUsers *MarchofEmpires* | Remove-AppxPackage
Get-AppxPackage -AllUsers *McAfee* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Netflix* | Remove-AppxPackage
Get-AppxPackage -AllUsers *NYTCrossword* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Pandora* | Remove-AppxPackage
Get-AppxPackage -AllUsers *PhotoStudio* | Remove-AppxPackage
Get-AppxPackage -AllUsers *PhototasticCollage* | Remove-AppxPackage
Get-AppxPackage -AllUsers *PicsArt* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Playtika* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Plex* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Shazam* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Solitaire* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Spotify* | Remove-AppxPackage
Get-AppxPackage -AllUsers *TheNewYorkTimes* | Remove-AppxPackage
Get-AppxPackage -AllUsers *ThumbmunkeysLtd* | Remove-AppxPackage
Get-AppxPackage -AllUsers *TuneIn* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Twitter* | Remove-AppxPackage
Get-AppxPackage -AllUsers *WinZipComputing* | Remove-AppxPackage
Get-AppxPackage -AllUsers *WinZipUniversal* | Remove-AppxPackage
Get-AppxPackage -AllUsers *Wunderlist* | Remove-AppxPackage
Get-AppxPackage -AllUsers *XING* | Remove-AppxPackage
#############################################################################
# Check for and Install all availavle Windows Updates (again)
Install-WindowsUpdate -acceptEula -getUpdatesFromMS -SuppressReboots
#############################################################################
# Software
# NuGet https://www.nuget.org/
Install-PackageProvider -Name NuGet
refreshenv
Import-PackageProvider -Name NuGet
refreshenv
Install-Module PowerShellGet -Force
refreshenv
# 7-zip https://www.7-zip.org/
choco install -y 7zip
# Git
choco install -y git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"'
# GitKraken https://www.gitkraken.com/
choco install -y gitkraken
# Visual Studio Code https://code.visualstudio.com/
choco install -y vscode
# Docker for Windows https://docs.docker.com/docker-for-windows/install/
# choco install -y docker-for-windows
# Docker Compose https://docs.docker.com/compose/
# choco install -y docker-compose
# PrivateInternetAccess client https://www.privateinternetaccess.com/
choco install -y pia
# Teamviewer https://www.teamviewer.com/
choco install -y teamviewer
# Firefox https://getfirefox.com/
choco install -y firefox
# Krita https://krita.org/
choco install -y krita
# Discord https://discordapp.com/
choco install -y discord
# Signal Messenger https://signal.org/
choco install -y signal
# Telegram Desktop https://telegram.org/
choco install -y telegram
# VLC https://www.videolan.org/
choco install -y vlc
# Ultimaker Cura https://ultimaker.com/en/products/ultimaker-cura-software
# choco install cura -y
# OBS Studio https://obsproject.com/
# choco install obs-studio -y
# Fira Code https://github.com/tonsky/FiraCode
choco install -y firacode
#############################################################################
# Configure Desktop
Set-WindowsExplorerOptions `
-DisableExpandToOpenFolder `
-DisableOpenFileExplorerToQuickAccess `
-DisableShowFrequentFoldersInQuickAccess `
-DisableShowRecentFilesInQuickAccess `
-EnableShowFileExtensions `
-EnableShowFullPathInTitleBar
Set-TaskbarOptions `
-AlwaysShowIconsOff `
-Combine Always `
-Dock Bottom `
-Size Large
# Turn off the "- Shortcut" name extension for new shortcuts
New-ItemProperty `
-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" `
-Name "link" -PropertyType Binary -Value ([byte[]](00, 00, 00, 00)) -Force
# Turn off F1 Help key
If (-Not (Test-Path -Path "HKCU:\Software\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64")) {
New-Item -Path "HKCU:\Software\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" -Force
}
New-ItemProperty `
-Path "HKCU:\Software\Classes\Typelib\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\1.0\0\win64" `
-Name "(default)" -PropertyType String -Value "" -Force
# Save screenshots to the Desktop by pressing Win+PrtScr
$value = Get-ItemPropertyValue -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Desktop"
New-ItemProperty `
-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{b7bede81-df94-4682-a7d8-57a52620b86f}"
-Name "RelativePath" -PropertyType String -Value $value -Force
# Show accent color on the title bars and window borders
New-ItemProperty `
-Path "HKCU:\Software\Microsoft\Windows\DWM" `
-Name "ColorPrevalence" -Value 1 -Force
# Install Powershell-Lumos https://github.com/markwragg/powershell-lumos
Install-Module Lumos
#############################################################################
# Microsoft Store
# If it ever becomes possible to automate this, do it.
# AV1 Video Extension
# Bitwarden
# Dell SupportAssist for PCs
# EarTrumpet
# HEVC Video Extensions
# Intel Graphics Command Center
# Intel Graphics Control Panel
# Killer Control Center
# MPEG-2 Video Extension
# Pengwin
# Plex
# Python 3.7
# Slack
# Ubuntu
# VP9 Video Extensions
# Windows Terminal (Preview)
# X410
# Xbox (Beta)
# Xbox Dev Mode Companion (Preview)
#############################################################################
# Refresh the shell environment
refreshenv
#############################################################################
# Manual Downloads
# Set Downloads environment variable
$downloads = "$env:HOMEPATH\Downloads"
# WinAmp 5.8 http://www.winamp.com/
$winamp_file = "winamp58_3660_beta_full_en-us.exe"
$winamp_url = "https://download.nullsoft.com/winamp/client/" + $winamp_file
Invoke-WebRequest `
-UseBasicParsing $winamp_url `
-OutFile $downloads\$winamp_file
# Start-Process $downloads\$winamp_file
# Final Fantasy XIV https://www.finalfantasyxiv.com/
$ffxiv_file = "ffxivsetup.exe"
$ffxiv_url = "http://gdl.square-enix.com/ffxiv/inst/" + $ffxiv_file
Invoke-WebRequest `
-UseBasicParsing $ffxiv_url `
-OutFile $downloads\$ffxiv_file
# Start-Process $downloads\$ffxiv_file
# Battle.net Desktop https://www.blizzard.com/en-us/apps/battle.net/desktop
$bnet_file = "Battle.net-Setup.exe"
$bnet_url = "https://us.battle.net/download/getInstaller?os=win&installer=Battle.net-Setup.exe"
Invoke-WebRequest `
-UseBasicParsing $bnet_url `
-OutFile $downloads\$bnet_file
# Start-Process $downloads\$bnet_file
#############################################################################
# Clean up OS Drive
# Remove "$env:SystemDrive\Intel"
Remove-Item $env:SystemDrive\Intel -Recurse -Force -ErrorAction SilentlyContinue
# Remove "$env:SystemDrive\PerfLogs"
Remove-Item $env:SystemDrive\PerfLogs -Recurse -Force -ErrorAction SilentlyContinue
# Optimize Disk
Optimize-Volume -DriveLetter C
#############################################################################
# Check for and Install all availavle Windows Updates (again)
Install-WindowsUpdate -acceptEula -getUpdatesFromMS -SuppressReboots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment