-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSet-DefaultsWindows10.ps1
34 lines (26 loc) · 1.8 KB
/
Set-DefaultsWindows10.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<#
.SYNOPSIS
This script modifies the default behavior of Window10 to alleviate common annoyances.
.Notes
Version: 1.0
Authors: Nick Ellis
Windows 8.1 and below are not supported.
#>
# Set search to icon from search bar
Set-ItemProperty -path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search' -Name 'SearchboxTaskbarMode' -Value '1'
# Hide people bar
New-Item -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People'
New-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' -Name 'PeopleBand' -value '0'
# Stop OneDrive from starting with Windows
Remove-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run' -Name 'onedrive'
# Turn off Suggested Content
Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SubscribedContent-338389Enabled' -Value 0
Set-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SystemPaneSuggestionsEnabled' -Value 0
New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' -Name 'SubscribedContent-338388Enabled' -Value 0
# Remove Edge from "Open With" dialog for pdf files. Also stops Edge from taking over default file associations for pdf files.
New-ItemProperty -path 'HKCU:\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723' -Name 'NoOpenWith'
New-ItemProperty -path 'HKCU:\Software\Classes\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723' -Name 'NoStaticDefaultVerb'
# Remove Edge Desktop Shortcut
Remove-Item -Path "$env:USERPROFILE\Desktop\Microsoft Edge.lnk"
# Remove Tak View Button from Taskbar
Set-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'ShowTaskViewButton' -value '0' -Type 'DWORD'