├── README.md ├── Settings_Devices.ps1 ├── Settings_Region.ps1 ├── Settings_Apps.ps1 ├── Variables.ps1 ├── Settings_File_Explorer.ps1 ├── Settings_Personalisation.ps1 ├── Settings_Updates.ps1 ├── Settings_System.ps1 ├── Settings_Interface.ps1 ├── Settings_Browsers.ps1 ├── Settings_Privacy.ps1 ├── All_settings.txt └── LICENSE.md /README.md: -------------------------------------------------------------------------------- 1 | New Machine Settings 2 | ====== 3 | 4 | ###### A set of PowerShell scripts to set up the settings of a new Windows 10 machine. 5 | 6 | 7 | ## The scripts: 8 | | Name | What it does | 9 | | ------------------------ | --------------------- | 10 | | Settings_Apps | Adds the Windows 7 Photo Viewer alongside Photos, enables the F8 boot menu, and installs the Windows Subsystem for Linux | 11 | | Settings_Browsers | Settings for Microsoft Edge and Internet Explorer | 12 | | Settings_Devices | Settings app -> Devices | 13 | | Settings_File_Explorer | Common settings for File Explorer | 14 | | Settings_Interface | Various UI settings | 15 | | Settings_Personalisation | Settings app -> Personalization | 16 | | Settings_Privacy | Settings app -> Privacy | 17 | | Settings_Region | Settings app -> Time & Language | 18 | | Settings_System | Settings app -> System | 19 | | Settings_Updates | Settings app -> Updates | 20 | | Variables | Called by other scripts only. Contains variables and functions. | 21 | 22 | ## Running: 23 | Before the scripts can be run, PowerShell's Execution Policy needs to be changed to `RemoteSigned` or `Unrestricted`. 24 | 1. Open PowerShell with Administrator privileges. 25 | 2. Run one of the following commands: 26 | * `Set-ExecutionPolicy RemoteSigned` 27 | * `Set-ExecutionPolicy Unrestricted` 28 | 3. Open the scripts in PowerShell Integrated Scripting Environment (ISE) and check which settings will be applied. Uncomment the settings you wish to be applied, and comment out the settings you do not wish to be applied. 29 | 4. Run the scripts with Administrator privileges. 30 | 5. Reboot the computer to finalise the changes. 31 | 32 | ## License: 33 | GNU General Public License v3 34 | 35 | You may copy, distribute, and modify the software as long as you track the changes in the source files. Any modifications must also be made available under the GPL-3. 36 | 37 | The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranty of fitness for a particular purpose. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software. 38 | 39 | See the LICENSE.md file for more information. 40 | -------------------------------------------------------------------------------- /Settings_Devices.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ___ ____ _ _ _ ____ ____ ____ 34 | | \ |___ | | | | |___ [__ 35 | |__/ |___ \/ | |___ |___ ___] 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Devices options 67 | Write-Host "`r`n`r`nCHANGING DEVICES OPTIONS" -ForegroundColor "Green" 68 | 69 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 70 | ' Devices -> Printers & scanners -> Let Windows manage my default printer (off)' 71 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\' ` 72 | -Name 'LegacyDefaultPrinterMode' ` 73 | -Value 1 ` 74 | -Type 'DWord' 75 | } 76 | 77 | ' Devices -> Printers & scanners -> Download over metered connections (off)' 78 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceSetup\' ` 79 | -Name 'CostedNetworkPolicy' ` 80 | -Value 0 ` 81 | -Type 'DWord' 82 | 83 | <#' Devices -> Bluetooth (on)' 84 | Set-RegistryValue -Path 'HKLM:SYSTEM\ControlSet001\Services\bthserv\Parameters\BluetoothControlPanelTasks\' ` 85 | -Name 'State' ` 86 | -Value 1 ` 87 | -Type 'DWord'#> 88 | 89 | ' Devices -> Mouse & touchpad -> Scroll inactive windows when I hover over them (on)' 90 | Set-RegistryValue -Path 'HKCU:Control Panel\Desktop\' ` 91 | -Name 'MouseWheelRouting' ` 92 | -Value 2 ` 93 | -Type 'DWord' 94 | 95 | ' Devices -> Typing -> Autocorrect misspelled words (on)' 96 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\TabletTip\1.7\' ` 97 | -Name 'EnableAutocorrection' ` 98 | -Value 1 ` 99 | -Type 'DWord' 100 | 101 | ' Devices -> Typing -> Highlight misspelled words (on)' 102 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\TabletTip\1.7\' ` 103 | -Name 'EnableSpellchecking' ` 104 | -Value 1 ` 105 | -Type 'DWord' 106 | 107 | ' Devices -> Autoplay (off)' 108 | Set-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers' ` 109 | -Name 'DisableAutoplay' ` 110 | -Value 1 ` 111 | -Type 'DWord' 112 | 113 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 114 | ' Devices -> USB -> Notify me if there are issue connecting to USB devices (on)' 115 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Shell\USB\' ` 116 | -Name 'NotifyOnUsbErrors' ` 117 | -Value 1 ` 118 | -Type 'DWord' 119 | } 120 | 121 | #endregion 122 | 123 | 124 | ############################################################ 125 | 126 | 127 | Write-Host "" 128 | Reset-Execution-Policy 129 | Stop-Transcript 130 | Pop-Location 131 | -------------------------------------------------------------------------------- /Settings_Region.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ____ ____ ____ _ ____ _ _ ____ _ _ ___ _ ____ _ _ ____ _ _ ____ ____ ____ 34 | |__/ |___ | __ | | | |\ | |__| |\ | | \ | |__| |\ | | __ | | |__| | __ |___ 35 | | \ |___ |__] | |__| | \| | | | \| |__/ |___ | | | \| |__] |__| | | |__] |___ 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Region & Language 67 | Write-Host "`r`n`r`nCHANGING REGION & LANGUAGE OPTIONS" -ForegroundColor "Green" 68 | 69 | ' Time & Language -> Date & time -> Set time automatically (on)' 70 | Set-RegistryValue -Path 'HKLM:SYSTEM\ControlSet001\Services\W32Time\' ` 71 | -Name 'Start' ` 72 | -Value 3 ` 73 | -Type 'DWord' 74 | Set-RegistryValue -Path 'HKLM:SYSTEM\ControlSet001\Services\W32Time\Parameters' ` 75 | -Name 'Type' ` 76 | -Value NTP 77 | 78 | ' Time & Language -> Date & time -> Set time zone automatically (off)' 79 | Set-RegistryValue -Path 'HKLM:SYSTEM\ControlSet001\Services\tzautoupdate\' ` 80 | -Name 'Start' ` 81 | -Value 4 ` 82 | -Type 'DWord' 83 | 84 | ' Time & Language -> Date & time -> Adjust for daylight saving time automatically (on)' 85 | Set-RegistryValue -Path 'HKLM:SYSTEM\ControlSet001\Control\TimeZoneInformation\' ` 86 | -Name 'DynamicDaylightTimeDisabled' ` 87 | -Value 0 ` 88 | -Type 'DWord' 89 | 90 | # Run this only if "Time & Language -> Region & language -> Country" is not "Australia" 91 | If($(Get-ItemPropertyValue -Path 'HKCU:Control Panel\International\Geo\' -Name 'Nation') -ne 12) 92 | { 93 | ' Time & Language -> Region & language -> Country: "Australia"' 94 | Set-RegistryValue -Path 'HKCU:Control Panel\International\Geo\' ` 95 | -Name 'Nation' ` 96 | -Value 12 97 | 98 | <#' Time & Language -> Region & language -> Languages: en-AU' 99 | --> Not sure which registry settings need to be changed... #> 100 | 101 | ' Time & Language -> Date & time -> Formats -> First day of week: "Monday"' 102 | Set-RegistryValue -Path 'HKCU:Control Panel\International\' ` 103 | -Name 'iFirstDayOfWeek' ` 104 | -Value 0 105 | 106 | ' Time & Language -> Date & time -> Formats -> Short time: "h:mm tt"' 107 | Set-RegistryValue -Path 'HKCU:Control Panel\International\' ` 108 | -Name 'sShortTime' ` 109 | -Value "h:mm tt" 110 | 111 | ' Time & Language -> Date & time -> Formats -> Long time: "h:mm:ss tt"' 112 | Set-RegistryValue -Path 'HKCU:Control Panel\International\' ` 113 | -Name 'sLongTime' ` 114 | -Value "h:mm:ss tt" 115 | 116 | ' Time & Language -> Date & time -> Formats -> Short date: "d/MM/yyyy""' 117 | Set-RegistryValue -Path 'HKCU:Control Panel\International\' ` 118 | -Name 'sShortDate' ` 119 | -Value "d/MM/yyyy" 120 | 121 | ' Time & Language -> Date & time -> Formats -> Long date: "dddd, d MMMM, yyyy"' 122 | Set-RegistryValue -Path 'HKCU:Control Panel\International\' ` 123 | -Name 'sLongDate' ` 124 | -Value "dddd, d MMMM yyyy" 125 | } 126 | 127 | 128 | ############################################################ 129 | 130 | 131 | Write-Host "" 132 | Reset-Execution-Policy 133 | Stop-Transcript 134 | Pop-Location 135 | -------------------------------------------------------------------------------- /Settings_Apps.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ____ ___ ___ ____ 34 | |__| |__] |__] [__ 35 | | | | | ___] 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Apps 67 | Write-Host "`r`n`r`nAPPS" -ForegroundColor "Green" 68 | 69 | ' Setting Photo Viewer as default for bmp, gif, jpg, png, and tif' 70 | If (!(Test-Path "HKCR:")) { 71 | New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null 72 | } 73 | ForEach ($type in @("Paint.Picture", "giffile", "jpegfile", "pngfile")) { 74 | New-Item -Path $("HKCR:\$type\shell\open") -Force | Out-Null 75 | New-Item -Path $("HKCR:\$type\shell\open\command") | Out-Null 76 | Set-ItemProperty -Path $("HKCR:\$type\shell\open") -Name "MuiVerb" -Type ExpandString -Value "@%ProgramFiles%\Windows Photo Viewer\photoviewer.dll,-3043" 77 | Set-ItemProperty -Path $("HKCR:\$type\shell\open\command") -Name "(Default)" -Type ExpandString -Value "%SystemRoot%\System32\rundll32.exe `"%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll`", ImageView_Fullscreen %1" 78 | } 79 | <# TO UNDO: 80 | If (!(Test-Path "HKCR:")) { 81 | New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null 82 | } 83 | Remove-Item -Path "HKCR:\Paint.Picture\shell\open" -Recurse 84 | Remove-ItemProperty -Path "HKCR:\giffile\shell\open" -Name "MuiVerb" 85 | Set-ItemProperty -Path "HKCR:\giffile\shell\open" -Name "CommandId" -Type String -Value "IE.File" 86 | Set-ItemProperty -Path "HKCR:\giffile\shell\open\command" -Name "(Default)" -Type String -Value "`"$env:SystemDrive\Program Files\Internet Explorer\iexplore.exe`" %1" 87 | Set-ItemProperty -Path "HKCR:\giffile\shell\open\command" -Name "DelegateExecute" -Type String -Value "{17FE9752-0B5A-4665-84CD-569794602F5C}" 88 | Remove-Item -Path "HKCR:\jpegfile\shell\open" -Recurse 89 | Remove-Item -Path "HKCR:\pngfile\shell\open" -Recurse 90 | #> 91 | 92 | ' Showing Photo Viewer in `"Open with...`"' 93 | If (!(Test-Path "HKCR:")) { 94 | New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null 95 | } 96 | New-Item -Path "HKCR:\Applications\photoviewer.dll\shell\open\command" -Force | Out-Null 97 | New-Item -Path "HKCR:\Applications\photoviewer.dll\shell\open\DropTarget" -Force | Out-Null 98 | Set-ItemProperty -Path "HKCR:\Applications\photoviewer.dll\shell\open" -Name "MuiVerb" -Type String -Value "@photoviewer.dll,-3043" 99 | Set-ItemProperty -Path "HKCR:\Applications\photoviewer.dll\shell\open\command" -Name "(Default)" -Type ExpandString -Value "%SystemRoot%\System32\rundll32.exe `"%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll`", ImageView_Fullscreen %1" 100 | Set-ItemProperty -Path "HKCR:\Applications\photoviewer.dll\shell\open\DropTarget" -Name "Clsid" -Type String -Value "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" 101 | <# TO UNDO: 102 | If (!(Test-Path "HKCR:")) { 103 | New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null 104 | } 105 | Remove-Item -Path "HKCR:\Applications\photoviewer.dll\shell\open" -Recurse 106 | #> 107 | 108 | ' Enabling F8 boot menu options' 109 | bcdedit /set `{current`} bootmenupolicy Legacy | Out-Null 110 | <# TO UNDO: 111 | bcdedit /set `{current`} bootmenupolicy Standard | Out-Null 112 | #> 113 | 114 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 115 | ' Installing Windows Subsystem for Linux (Beta)' 116 | Write-Host " └-> Run `"bash`" in Command Prompt after reboot" -ForegroundColor "Yellow" 117 | Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" -Name "AllowDevelopmentWithoutDevLicense" -Type DWord -Value 1 118 | Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" -Name "AllowAllTrustedApps" -Type DWord -Value 1 119 | Enable-WindowsOptionalFeature -Online -NoRestart -FeatureName 'Microsoft-Windows-Subsystem-Linux' 120 | <# TO UNDO: 121 | Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" -Name "AllowDevelopmentWithoutDevLicense" -Type DWord -Value 0 122 | Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" -Name "AllowAllTrustedApps" -Type DWord -Value 0 123 | Disable-WindowsOptionalFeature -Online -NoRestart -FeatureName 'Microsoft-Windows-Subsystem-Linux' 124 | #> 125 | } 126 | 127 | #endregion 128 | 129 | 130 | ############################################################ 131 | 132 | 133 | Write-Host "" 134 | Reset-Execution-Policy 135 | Stop-Transcript 136 | Pop-Location 137 | -------------------------------------------------------------------------------- /Variables.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | #region Variables 13 | 14 | ### Set error action 15 | $ErrorActionPreference = 'Continue' 16 | 17 | <# VALUES: 18 | Continue (default): Displays the error message and continues executing. 19 | Stop: Displays the error message and stops executing. 20 | Inquire: Displays the error message and asks you whether you want to continue. 21 | Suspend: Automatically suspends a workflow job to allow for further investigation. After investigation, the workflow can be resumed. 22 | SilentlyContinue: The error message is not displayed and execution continues without interruption. #> 23 | 24 | 25 | 26 | ### Set logo 27 | $logo = @" 28 | _ _ ____ _ _ _ ____ ____ ___ ___ _ _ _ ____ ____ 29 | |\ | |___ | | | [__ |___ | | | |\ | | __ [__ . 30 | | \| |___ |_|_| ___] |___ | | | | \| |__] ___] . 31 | "@ 32 | 33 | 34 | 35 | ### Set description 36 | $desc = @" 37 | DESCRIPTION: 38 | This script changes the settings of Windows 10 by updating the registry values. 39 | "@ 40 | 41 | 42 | 43 | ### Set LEGEND 44 | $txt1 = "COLOUR LEGEND:" 45 | $txt2 = " Grey: information" 46 | $txt3 = " Green: headers" 47 | $txt4 = " White: text" 48 | $txt5 = " Red: errors" 49 | $txt6 = " Yellow: warnings" 50 | 51 | 52 | 53 | ### Copy the output to a log file 54 | $TheDate = Get-Date 55 | $TheDateYear = $TheDate.Year 56 | $TheDateMonth = $TheDate.Month 57 | If($TheDateMonth -lt 10) { 58 | $TheDateMonth = "0$($TheDateMonth)" 59 | } 60 | $TheDateDay = $TheDate.Day 61 | If($TheDateDay -lt 10) { 62 | $TheDateDay = "0$($TheDateDay)" 63 | } 64 | $TheDateHour = $TheDate.Hour 65 | If($TheDateHour -lt 10) { 66 | $TheDateHour = "0$($TheDateHour)" 67 | } 68 | $TheDateMinute = $TheDate.Minute 69 | If($TheDateMinute -lt 10) { 70 | $TheDateMinute = "0$($TheDateMinute)" 71 | } 72 | $TheDateSecond = $TheDate.Second 73 | If($TheDateSecond -lt 10) { 74 | $TheDateSecond = "0$($TheDateSecond)" 75 | } 76 | $TheDateOutput = "$($TheDateYear)$($TheDateMonth)$($TheDateDay)$($TheDateHour)$($TheDateMinute)$($TheDateSecond)" 77 | 78 | #endregion 79 | 80 | 81 | ############################################################ 82 | 83 | 84 | #region Functions 85 | 86 | 87 | ### A function to pause the execution of the script 88 | Function Pause ($message) 89 | { 90 | if (-Not $psISE) # If running Powershell command line 91 | { 92 | Write-Host "$message" -ForegroundColor "Yellow" 93 | $x = $host.ui.RawUI.ReadKey("NoEcho,IncludeKeyDown") 94 | } 95 | } 96 | 97 | 98 | ### A function to print the headers 99 | Function Print-Headers ($function) 100 | { 101 | Write-Host "------------------------" -ForegroundColor "Gray" 102 | Write-Host $logo 103 | Write-Host "" 104 | Write-Host $function 105 | Write-Host "`r`n------------------------" -ForegroundColor "Gray" 106 | Write-Host $desc -ForegroundColor "Gray" 107 | Write-Host "------------------------" -ForegroundColor "Gray" 108 | Write-Host $txt1 -ForegroundColor "Gray" 109 | Write-Host $txt2 -ForegroundColor "Gray" 110 | Write-Host $txt3 -ForegroundColor "Green" 111 | Write-Host $txt4 -ForegroundColor "White" 112 | Write-Host $txt5 -ForegroundColor "Red" 113 | Write-Host $txt6 -ForegroundColor "Yellow" 114 | Write-Host "------------------------`r`n" -ForegroundColor "Gray" 115 | } 116 | 117 | 118 | ### A function to test whether a registry path and value exist 119 | Function Test-RegistryValue { 120 | Param ( 121 | [parameter(Mandatory=$true)] 122 | [ValidateNotNullOrEmpty()] 123 | $Path, # Registry path 124 | 125 | [parameter(Mandatory=$true)] 126 | [ValidateNotNullOrEmpty()] 127 | $Name # Value name 128 | ) 129 | 130 | If (Test-Path $Path) { 131 | Return ((Get-ChildItem $Path | Select-String -Pattern $Name) -ne $null) 132 | } 133 | Else { 134 | Return $false 135 | } 136 | } 137 | 138 | 139 | ### A function to set or create a registry value 140 | Function Set-RegistryValue { 141 | Param ( 142 | [parameter(Mandatory=$true)] 143 | [ValidateNotNullOrEmpty()] 144 | $Path, # Registry path 145 | 146 | [parameter(Mandatory=$true)] 147 | [ValidateNotNullOrEmpty()] 148 | $Name, # Value name 149 | 150 | [parameter(Mandatory=$true)] 151 | [ValidateNotNullOrEmpty()] 152 | $Value, # Value to be added 153 | 154 | [parameter(Mandatory=$false)] 155 | $Type, # Type of value 156 | 157 | [parameter(Mandatory=$false)] 158 | $OnError # ErrorActionPreference 159 | ) 160 | 161 | $useErrorAction = $ErrorActionPreference # No change 162 | If ($OnError -ne $null) { 163 | $useErrorAction = $OnError 164 | } 165 | 166 | $useType = 'String' # Default value is String (REG_SZ) 167 | If ($Type -ne $null) { 168 | $useType = $Type 169 | } 170 | 171 | If (Test-Path $Path) { 172 | Set-ItemProperty -Path $Path -Name $Name -Value $Value -Type $useType -ErrorAction $useErrorAction 173 | } Else { 174 | New-Item -Path $Path -Force | Out-Null 175 | New-ItemProperty -Path $Path -Name $Name -Value $Value -PropertyType $useType -ErrorAction $useErrorAction -Force | Out-Null 176 | } 177 | } 178 | 179 | 180 | ### A function to reset the execution policy to the original value 181 | Function Reset-Execution-Policy { 182 | if ($resetExecutionPolicy -eq 1) 183 | { 184 | Write-Host "`r`nResetting Execution Policy to: $currentExecutionPolicy" -ForegroundColor "Gray" 185 | Set-ExecutionPolicy -ExecutionPolicy $currentExecutionPolicy 186 | } 187 | 188 | Write-Host "`r`n===== DONE =====" -ForegroundColor "Black" -BackgroundColor "yellow" 189 | 'Please reboot the computer to finalise the changes.' 190 | 191 | Pause "`r`nPress any key to quit ..." 192 | 193 | '' 194 | } 195 | 196 | 197 | #endregion 198 | 199 | 200 | ############################################################ 201 | 202 | 203 | #region Validation 204 | 205 | 206 | ### Check OS version 207 | $myOS = (Get-CimInstance Win32_OperatingSystem) 208 | $myOSstring = "Your OS is " + $myOS.Caption + ", build " + $myOS.BuildNumber + "." 209 | If (($myOS.Caption -notlike '*Windows 10*') -and ($myOS.Version -notlike '10.*')) 210 | { 211 | Write-Warning $("Windows 10 or higher is required. " + $myOSstring) 212 | 213 | Echo "No changes made." 214 | Pause "`r`nPress any key to quit ..." 215 | Break 216 | } 217 | 218 | 219 | ### Check for Admin 220 | If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { 221 | Print-Headers 222 | 223 | Echo "This script needs to be run as Admin." 224 | Echo "No changes made." 225 | 226 | Pause "`r`nPress any key to quit ..." 227 | Break 228 | } 229 | 230 | #endregion 231 | -------------------------------------------------------------------------------- /Settings_File_Explorer.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ____ _ _ ____ ____ _ _ ___ _ ____ ____ ____ ____ 34 | |___ | | |___ |___ \/ |__] | | | |__/ |___ |__/ 35 | | | |___ |___ |___ _/\_ | |___ |__| | \ |___ | \ 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: File Explorer 67 | 68 | Write-Host "`r`n`r`nCHANGING FILE EXPLORER OPTIONS" -ForegroundColor "Green" 69 | Write-Host ' └-> NOTE: You will need to restart Windows Explorer (or the whole computer) to see the changes.' -ForegroundColor "Yellow" 70 | Write-Host ' └-> NOTE: This script will place 2 "desktop.ini" files on the desktop (unknown reason). They can be deleted.' -ForegroundColor "Yellow" 71 | 72 | ' Enable CTRL+ALT+DEL at logon' 73 | Set-RegistryValue -Path 'HKLM:Software\Microsoft\Windows NT\CurrentVersion\Winlogon\' ` 74 | -Name 'DisableCAD' ` 75 | -Value 0 ` 76 | -Type 'DWord' 77 | 78 | ' File Explorer: open to "This PC"' 79 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 80 | -Name 'LaunchTo' ` 81 | -Value 1 ` 82 | -Type 'DWord' 83 | 84 | ' File Explorer: use check boxes to select items (on)' 85 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 86 | -Name 'AutoCheckSelect' ` 87 | -Value 1 ` 88 | -Type 'DWord' 89 | 90 | ' File Explorer: show hidden files, folders and drives (on)' 91 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 92 | -Name 'Hidden' ` 93 | -Value 1 ` 94 | -Type 'DWord' 95 | 96 | ' File Explorer: hide extensions for known file types (off)' 97 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 98 | -Name 'HideFileExt' ` 99 | -Value 0 ` 100 | -Type 'DWord' 101 | 102 | ' File Explorer: show status bar (on)' 103 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 104 | -Name 'ShowStatusBar' ` 105 | -Value 1 ` 106 | -Type 'DWord' 107 | 108 | ' File Explorer: use sharing wizard (on)' 109 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 110 | -Name 'SharingWizardOn' ` 111 | -Value 1 ` 112 | -Type 'DWord' 113 | 114 | 115 | ' File Explorer: always show icons, never thumbnails (off)' 116 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 117 | -Name 'IconsOnly' ` 118 | -Value 0 ` 119 | -Type 'DWord' 120 | 121 | ' File Explorer: always show menus (off)' 122 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 123 | -Name 'AlwaysShowMenus' ` 124 | -Value 0 ` 125 | -Type 'DWord' 126 | 127 | ' File Explorer: display file icon on thumbnails (on)' 128 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 129 | -Name 'ShowTypeOverlay' ` 130 | -Value 1 ` 131 | -Type 'DWord' 132 | 133 | ' File Explorer: show pop-up description of folder and desktop items (on)' 134 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 135 | -Name 'ShowInfoTip' ` 136 | -Value 1 ` 137 | -Type 'DWord' 138 | 139 | ' File Explorer: display file size information in folder tips (on)' 140 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 141 | -Name 'FolderContentsInfoTip' ` 142 | -Value 1 ` 143 | -Type 'DWord' 144 | 145 | ' File Explorer: display the full path in the title bar (off)' 146 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState\' ` 147 | -Name 'FullPath' ` 148 | -Value 0 ` 149 | -Type 'DWord' 150 | 151 | ' File Explorer: hide empty drives (on)' 152 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 153 | -Name 'HideDrivesWithNoMedia' ` 154 | -Value 1 ` 155 | -Type 'DWord' 156 | 157 | ' File Explorer: hide folder merge conflicts (off)' 158 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 159 | -Name 'HideMergeConflicts' ` 160 | -Value 0 ` 161 | -Type 'DWord' 162 | 163 | ' File Explorer: hide protected OS files (on)' 164 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 165 | -Name 'ShowSuperHidden' ` 166 | -Value 1 ` 167 | -Type 'DWord' 168 | 169 | ' File Explorer: launch folder windows in a separate process (off)' 170 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 171 | -Name 'SeparateProcess' ` 172 | -Value 0 ` 173 | -Type 'DWord' 174 | 175 | ' File Explorer: restore previous folder windows at logon (off)' 176 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 177 | -Name 'PersistBrowsers' ` 178 | -Value 0 ` 179 | -Type 'DWord' 180 | 181 | ' File Explorer: show drive letters (on)' 182 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\' ` 183 | -Name 'ShowDriveLettersFirst' ` 184 | -Value 1 ` 185 | -Type 'DWord' 186 | 187 | ' File Explorer: show encrypted/compressed NTFS files in colour (on)' 188 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 189 | -Name 'ShowEncryptCompressedColor' ` 190 | -Value 1 ` 191 | -Type 'DWord' 192 | 193 | ' File Explorer: show preview handlers in preview pane (on)' 194 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 195 | -Name 'ShowPreviewHandlers' ` 196 | -Value 1 ` 197 | -Type 'DWord' 198 | 199 | ' File Explorer: show sync provider notifications (on)' 200 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 201 | -Name 'ShowSyncProviderNotifications' ` 202 | -Value 1 ` 203 | -Type 'DWord' 204 | 205 | ' File Explorer: when typing into list view - select the typed item in the view' 206 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 207 | -Name 'TypeAhead' ` 208 | -Value 1 ` 209 | -Type 'DWord' 210 | 211 | ' File Explorer: Navigation Pane -> expand to open folder (off)' 212 | Set-RegistryValue -Path 'HKCU:Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 213 | -Name 'NavPaneExpandToCurrentFolder' ` 214 | -Value 0 ` 215 | -Type 'DWord' 216 | 217 | ' File Explorer: Navigation Pane -> show all folders (off)' 218 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 219 | -Name 'NavPaneShowAllFolders' ` 220 | -Value 0 ` 221 | -Type 'DWord' 222 | 223 | ' File Explorer: Navigation Pane -> show libraries (on)' 224 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\CLSID\{031E4825-7B94-4dc3-B131-E946B44C8DD5}\' ` 225 | -Name 'System.IsPinnedToNameSpaceTree' ` 226 | -Value 1 ` 227 | -Type 'DWord' 228 | 229 | #endregion 230 | 231 | 232 | ############################################################ 233 | 234 | 235 | Write-Host "" 236 | Reset-Execution-Policy 237 | Stop-Transcript 238 | Pop-Location 239 | -------------------------------------------------------------------------------- /Settings_Personalisation.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ___ ____ ____ ____ ____ _ _ ____ _ _ ____ ____ ___ _ ____ _ _ 34 | |__] |___ |__/ [__ | | |\ | |__| | | [__ |__| | | | | |\ | 35 | | |___ | \ ___] |__| | \| | | |___ | ___] | | | | |__| | \| 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Personalisation options 67 | Write-Host "`r`n`r`nCHANGING PERSONALISATION OPTIONS" -ForegroundColor "Green" 68 | 69 | <#' Personalization -> Colors -> Accent color' 70 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\S-1-5-21-1779794566-258786271-1422341266-1001\AnyoneRead\Colors\' ` 71 | -Name 'StartColor' ` 72 | -Value 0xFF9E5A00 73 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\S-1-5-21-1779794566-258786271-1422341266-1001\AnyoneRead\Colors\' ` 74 | -Name 'AccentColor' ` 75 | -Value 0xFFD77800#> 76 | 77 | ' Personalization -> Colors -> Make Start, taskbar, and action center transparent (on)' 78 | Set-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\' ` 79 | -Name 'EnableTransparency' ` 80 | -Value 1 ` 81 | -Type 'DWord' 82 | 83 | ' Personalization -> Colors -> Show color on Start, taskbar, and action center (on)' 84 | Set-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\' ` 85 | -Name 'ColorPrevalence' ` 86 | -Value 1 ` 87 | -Type 'DWord' 88 | 89 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 90 | ' Personalization -> Colors -> Show color on title bar (on)' 91 | Set-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\DWM\' ` 92 | -Name 'ColorPrevalence' ` 93 | -Value 1 ` 94 | -Type 'DWord' 95 | } 96 | 97 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 98 | ' Personalization -> Colors -> App mode: light' 99 | Set-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize\' ` 100 | -Name 'AppsUseLightTheme' ` 101 | -Value 1 ` 102 | -Type 'DWord' 103 | } 104 | 105 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 106 | ' Personalization -> Lock screen -> Get fun facts, tips, tricks, and more on your lock screen (off)' 107 | Set-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\' ` 108 | -Name 'RotatingLockScreenOverlayEnabled' ` 109 | -Value 0 ` 110 | -Type 'DWord' 111 | } 112 | 113 | <#If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 114 | ' Personalization -> Lock screen -> Show lock screen background picture on the sign-in screen (on)' 115 | Set-RegistryValue -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\SystemProtectedUserData\S-1-5-21-1779794566-258786271-1422341266-1001\AnyoneRead\LockScreen\' ` 116 | -Name 'HideLogonBackgroundImage' ` 117 | -Value 0 ` 118 | -Type 'DWord' 119 | }#> 120 | 121 | <# ' Personalization -> Start -> Show more tiles (on)' #> 122 | 123 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 124 | ' Personalization -> Start -> Occasionally show suggestions in Start (off)' 125 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\' ` 126 | -Name 'SystemPaneSuggestionsEnabled' ` 127 | -Value 0 ` 128 | -Type 'DWord' 129 | } 130 | 131 | ' Personalization -> Start -> Show most used apps (on)' 132 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 133 | -Name 'Start_TrackProgs' ` 134 | -Value 1 ` 135 | -Type 'DWord' 136 | 137 | <# ... #> 138 | 139 | ' Personalization -> Taskbar -> Lock the taskbar (on)' 140 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 141 | -Name 'TaskbarSizeMove' ` 142 | -Value 0 ` 143 | -Type 'DWord' 144 | 145 | ' Personalization -> Taskbar -> Use small taskbar buttons (off)' 146 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 147 | -Name 'TaskbarSmallIcons' ` 148 | -Value 0 ` 149 | -Type 'DWord' 150 | 151 | ' Personalization -> Taskbar -> Use peek to preview the desktop (on)' 152 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 153 | -Name 'DisablePreviewDesktop' ` 154 | -Value 0 ` 155 | -Type 'DWord' 156 | 157 | ' Personalization -> Taskbar -> Use Powershell on WIN+X (off)' 158 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 159 | -Name 'DontUsePowerShellOnWinX' ` 160 | -Value 1 ` 161 | -Type 'DWord' 162 | 163 | ' Personalization -> Taskbar -> Show badges on taskbar buttons (on)' 164 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 165 | -Name 'TaskbarBadges' ` 166 | -Value 1 ` 167 | -Type 'DWord' 168 | 169 | ' Personalization -> Taskbar -> Combine taskbar buttons: "Always combine, hide labels"' 170 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 171 | -Name 'TaskbarGlomLevel' ` 172 | -Value 0 ` 173 | -Type 'DWord' 174 | <# OPTIONS: 175 | 0 = Always combine, hide labels 176 | 1 = Combine when taskbar is full 177 | 2 = Never combine 178 | #> 179 | 180 | ' Taskbar -> "Show Task View button" (on)' 181 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 182 | -Name 'ShowTaskViewButton' ` 183 | -Value 1 ` 184 | -Type 'DWord' 185 | <# OPTIONS: 186 | 0 = Off 187 | 1 = On 188 | #> 189 | 190 | ' Taskbar -> "Cortana" (icon)' 191 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Search\' ` 192 | -Name 'SearchboxTaskbarMode' ` 193 | -Value 1 ` 194 | -Type 'DWord' 195 | <# OPTIONS: 196 | 0 = Hidden 197 | 1 = Show Cortana icon 198 | 2 = Show search box 199 | #> 200 | 201 | ' Taskbar -> Windows Search -> My device history (off)' 202 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Search\' ` 203 | -Name 'HistoryViewEnabled' ` 204 | -Value 0 ` 205 | -Type 'DWord' 206 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Search\' ` 207 | -Name 'DeviceHistoryEnabled' ` 208 | -Value 0 ` 209 | -Type 'DWord' 210 | 211 | ' Taskbar -> Increased transperancy (off)' 212 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 213 | -Name 'UseOLEDTaskbarTransparency' ` 214 | -Value 0 ` 215 | -Type 'DWord' 216 | 217 | ' Cortana (off)' 218 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Policies\Microsoft\Windows\Windows Search\' ` 219 | -Name 'AllowCortana' ` 220 | -Value 0 ` 221 | -Type 'DWord' 222 | 223 | ' Bing Search (off)' 224 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Search\' ` 225 | -Name 'BingSearchEnabled' ` 226 | -Value 0 ` 227 | -Type 'DWord' 228 | 229 | #endregion 230 | 231 | 232 | ############################################################ 233 | 234 | 235 | Write-Host "" 236 | Reset-Execution-Policy 237 | Stop-Transcript 238 | Pop-Location 239 | -------------------------------------------------------------------------------- /Settings_Updates.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | _ _ ___ ___ ____ ___ ____ ____ 34 | | | |__] | \ |__| | |___ [__ 35 | |__| | |__/ | | | |___ ___] 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Updates 67 | Write-Host "`r`n`r`nCHANGING UPDATE SETTINGS" -ForegroundColor "Green" 68 | 69 | If ($myOS.Caption -notlike '*Home') { # This does not work on Home editions 70 | ' Update & Security -> Windows Update -> Advanced options -> Choose how updates are installed: "Notify for download and notify for install"' 71 | ' └-> Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Windows Update -> Configure Automatic Updates' 72 | $AutoUpdatePath = "HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\" 73 | 74 | Set-RegistryValue -Path $AutoUpdatePath ` 75 | -Name 'NoAutoUpdate' ` 76 | -Value 0 ` 77 | -Type 'DWord' 78 | # OPTIONS: 79 | # 0 - Change setting in Windows Update app (default) 80 | # 1 - Never check for updates (not recommended) 81 | Set-RegistryValue -Path $AutoUpdatePath ` 82 | -Name 'AUOptions' ` 83 | -Value 2 ` 84 | -Type 'DWord' 85 | # OPTIONS: 86 | # 2 - Notify for download and notify for install 87 | # 3 - Auto download and notify for install (default) 88 | # 4 - Auto download and schedule the install 89 | # 5 - Allow local admin to choose setting - does not work for stand-alone computers 90 | 91 | Set-RegistryValue -Path $AutoUpdatePath ` 92 | -Name 'ScheduledInstallDay' ` 93 | -Value 0 ` 94 | -Type 'DWord' 95 | Set-RegistryValue -Path $AutoUpdatePath ` 96 | -Name 'ScheduledInstallTime' ` 97 | -Value 3 ` 98 | -Type 'DWord' 99 | 100 | Set-RegistryValue -Path $AutoUpdatePath ` 101 | -Name 'NoAutoRebootWithLoggedOnUsers' ` 102 | -Value 1 ` 103 | -Type 'DWord' 104 | } else { 105 | ' Update & Security -> Windows Update -> Advanced options -> Choose how updates are installed: "Notify to schedule restart"' 106 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\WindowsUpdate\UX\Settings\' ` 107 | -Name 'UxOption' ` 108 | -Value 1 ` 109 | -Type 'DWord' 110 | } 111 | 112 | ' Update & Security -> Windows Update -> Advanced options -> Give me updates for other Microsoft products when I update Windows: Yes' 113 | Write-Host ' └-> NOTE: This setting might reset to the default (no). If so, change it manually.' -ForegroundColor "Yellow" 114 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\Pending\7971f918-a847-4430-9279-4a52d1efe18d\' ` 115 | -Name 'RegisterWithAU' ` 116 | -Value 1 ` 117 | -Type 'DWord' 118 | 119 | ' Update & Security -> Windows Update -> Advanced options -> Defer upgrades: Yes' 120 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\WindowsUpdate\UX\Settings\' ` 121 | -Name 'DeferUpgrade' ` 122 | -Value 1 ` 123 | -Type 'DWord' 124 | 125 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 126 | ' Update & Security -> Windows Update -> Advanced options -> Use my sign-in info to automatically finish setting up my device after an update: No' 127 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\' ` 128 | -Name 'ARSOUserConsent' ` 129 | -Value 0 ` 130 | -Type 'DWord' 131 | } 132 | 133 | ' Update & Security -> Windows Update -> Advanced options -> Choose how updates are delivered -> Updates from more than one place (off)' 134 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config\' ` 135 | -Name 'DODownloadMode' ` 136 | -Value 0 ` 137 | -Type 'DWord' 138 | # Value = 1 -> On: Enable the following setting 139 | 140 | <#' Update & Security -> Windows Update -> Advanced options -> Choose how updates are delivered -> Updates from more than one place -> Get updates from and send updates to ...' 141 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config\' ` 142 | -Name 'DODownloadMode' ` 143 | -Value 1 ` # 1 = "PCs on my local network" / 3 = "PCs on my local network, and PCs on the Internet" 144 | -Type 'DWord' 145 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\' ` 146 | -Name 'SystemSettingsDownloadMode' ` 147 | -Value 3 ` # 3 = "PCs on my local network" / 1 = "PCs on my local network, and PCs on the Internet" 148 | -Type 'DWord'#> 149 | 150 | 151 | <# ERROR: "Requested registry access is not allowed." 152 | 153 | ' Update & Security -> Windows Defender -> Real-time protection (on)' 154 | Try { 155 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows Defender\Real-Time Protection\' ` 156 | -Name 'DisableRealtimeMonitoring' ` 157 | -Value 0 ` 158 | -Type 'DWord' ` 159 | -OnError 'Stop' 160 | } 161 | Catch [System.Security.SecurityException] { 162 | Write-Host " └-> An error occurred:" $error[0].Exception.Message -ForegroundColor "Red" 163 | } 164 | 165 | ' Update & Security -> Windows Defender -> Cloud-based protection (off)' 166 | Try { 167 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows Defender\Spynet\' ` 168 | -Name 'SpyNetReporting' ` 169 | -Value 0 ` 170 | -Type 'DWord' ` 171 | -OnError 'Stop' 172 | } 173 | Catch [System.Security.SecurityException] { 174 | Write-Host " └-> An error occurred:" $error[0].Exception.Message -ForegroundColor "Red" 175 | } 176 | 177 | ' Update & Security -> Windows Defender -> Automatic sample submission (off)' 178 | Try { 179 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows Defender\Spynet\' ` 180 | -Name 'SubmitSamplesConsent' ` 181 | -Value 0 ` 182 | -Type 'DWord' ` 183 | -OnError 'Stop' 184 | } 185 | Catch [System.Security.SecurityException] { 186 | Write-Host " └-> An error occurred:" $error[0].Exception.Message -ForegroundColor "Red" 187 | } 188 | 189 | ' Update & Security -> Windows Defender -> Enhanced notifications (off)' 190 | Try { 191 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows Defender\Reporting\' ` 192 | -Name 'DisableEnhancedNotifications' ` 193 | -Value 1 ` 194 | -Type 'DWord' ` 195 | -OnError 'Stop' 196 | } 197 | Catch [System.Security.SecurityException] { 198 | Write-Host " └-> An error occurred:" $error[0].Exception.Message -ForegroundColor "Red" 199 | }#> 200 | 201 | 202 | ' Update & Security -> For developers -> Use developer features: "Developer mode"' 203 | <# OPTIONS: 204 | AllowDevelopmentWithoutDevLicense = 0, AllowAllTrustedApps = 0 -> Windows Store apps - Only install apps from the Windows Store 205 | AllowDevelopmentWithoutDevLicense = 0, AllowAllTrustedApps = 1 -> Sideload apps - Unstall apps from other sources that you trust 206 | AllowDevelopmentWithoutDevLicense = 1, AllowAllTrustedApps = 1 -> Development mode - Install any signed app and use advanced development features #> 207 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\' ` 208 | -Name 'AllowDevelopmentWithoutDevLicense' ` 209 | -Value 1 ` 210 | -Type 'DWord' 211 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock\' ` 212 | -Name 'AllowAllTrustedApps' ` 213 | -Value 1 ` 214 | -Type 'DWord' 215 | 216 | #endregion 217 | 218 | 219 | ############################################################ 220 | 221 | 222 | Write-Host "" 223 | Reset-Execution-Policy 224 | Stop-Transcript 225 | Pop-Location 226 | -------------------------------------------------------------------------------- /Settings_System.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ____ _ _ ____ ___ ____ _ _ 34 | [__ \_/ [__ | |___ |\/| 35 | ___] | ___] | |___ | | 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: System options 67 | Write-Host "`r`n`r`nCHANGING SYSTEM OPTIONS" -ForegroundColor "Green" 68 | 69 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 70 | ' System -> Notifications & actions -> Get notifications from apps and other senders (on)' 71 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\' ` 72 | -Name 'SoftLandingEnabled' ` 73 | -Value 0 ` 74 | -Type 'DWord' 75 | } 76 | 77 | ' System -> Notifications & actions -> Show notifications on the lock screen (on)' 78 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\' ` 79 | -Name 'NOC_GLOBAL_SETTING_ALLOW_TOASTS_ABOVE_LOCK' ` 80 | -Value 1 ` 81 | -Type 'DWord' 82 | 83 | ' System -> Notifications & actions -> Show alarms, reminders, and incoming VoIP calls on the lock screen (on)' 84 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\' ` 85 | -Name 'NOC_GLOBAL_SETTING_ALLOW_CRITICAL_TOASTS_ABOVE_LOCK' ` 86 | -Value 1 ` 87 | -Type 'DWord' 88 | 89 | ' System -> Notifications & actions -> Hide notifications when duplicating the screen (on)' 90 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\' ` 91 | -Name 'NOC_GLOBAL_SETTING_SUPRESS_TOASTS_WHILE_DUPLICATING' ` 92 | -Value 1 ` 93 | -Type 'DWord' 94 | 95 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 96 | ' System -> Notifications & actions -> Get tips, tricks, and suggestions as you use Windows (off)' 97 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\' ` 98 | -Name 'SoftLandingEnabled' ` 99 | -Value 0 ` 100 | -Type 'DWord' 101 | } 102 | 103 | ' System -> Notifications & actions -> Show app notifications (on)' 104 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications\' ` 105 | -Name 'ToastEnabled' ` 106 | -Value 1 ` 107 | -Type 'DWord' 108 | 109 | ' System -> Offline maps -> Metered connections (off)' 110 | Set-RegistryValue -Path 'HKLM:SYSTEM\Maps\' ` 111 | -Name 'UpdateOnlyOnWifi' ` 112 | -Value 1 ` 113 | -Type 'DWord' 114 | 115 | ' System -> Offline maps -> Automatically update maps (on)' 116 | Set-RegistryValue -Path 'HKLM:SYSTEM\Maps\' ` 117 | -Name 'AutoUpdateEnabled' ` 118 | -Value 1 ` 119 | -Type 'DWord' 120 | 121 | ' System -> Tablet mode (off)' 122 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\' ` 123 | -Name 'TabletMode' ` 124 | -Value 0 ` 125 | -Type 'DWord' 126 | 127 | ' System -> Tablet mode -> When I sign in: go to the desktop' 128 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\' ` 129 | -Name 'SignInMode' ` 130 | -Value 1 ` 131 | -Type 'DWord' 132 | <# OPTIONS: 133 | 0 = Use tablet mode 134 | 1 = Use desktop mode 135 | 2 = Use the appropriate mode for my hardware 136 | #> 137 | 138 | ' System -> Tablet mode -> When automatically switching tablet mode on/off (always ask)' 139 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\' ` 140 | -Name 'ConvertibleSlateModePromptPreference' ` 141 | -Value 1 ` 142 | -Type 'DWord' 143 | <# OPTIONS: 144 | 0 = Don't ask and don't switch 145 | 1 = Always ask before switching 146 | 2 = Don't ask and always switch 147 | #> 148 | 149 | ' System -> Tablet mode -> Hide app icons on the taskbar in tablet mode (off)' 150 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 151 | -Name 'TaskbarAppsVisibleInTabletMode' ` 152 | -Value 1 ` 153 | -Type 'DWord' ` 154 | -OnError 'SilentlyContinue' 155 | 156 | ' System -> Tablet mode -> Automatically hide the taskbar in tablet mode (off)' 157 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 158 | -Name 'TaskbarAutoHideInTabletMode' ` 159 | -Value 0 ` 160 | -Type 'DWord' ` 161 | -OnError 'SilentlyContinue' 162 | 163 | ' System -> Multitasking -> Snap (on)' 164 | #Write-Host ' └-> Error.' -ForegroundColor "Red" 165 | Set-RegistryValue -Path 'HKCU:Control Panel\Desktop\' ` 166 | -Name 'WindowArrangementActive' ` 167 | -Value 1 168 | 169 | ' System -> Multitasking -> When I snap a window, automatically size it to fill available space (on)' 170 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 171 | -Name 'SnapFill' ` 172 | -Value 1 ` 173 | -Type 'DWord' 174 | 175 | ' System -> Multitasking -> When I snap a window, show what I can snap next to it (off)' 176 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 177 | -Name 'SnapAssist' ` 178 | -Value 0 ` 179 | -Type 'DWord' 180 | 181 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 182 | ' System -> Multitasking -> When I resize a snapped a window, resize any other snapped windows (on)' 183 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 184 | -Name 'JointResize' ` 185 | -Value 1 ` 186 | -Type 'DWord' 187 | } 188 | 189 | <#' System -> Multitasking -> Virtual desktops -> On the taskbar, show windows that are open on: only the desktop used' 190 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 191 | -Name 'VirtualDesktopTaskbarFilter' ` 192 | -Value 0 ` 193 | -Type 'DWord' 194 | 195 | ' System -> Multitasking -> Virtual desktops -> Pressing ALT+TAB shows windows that are open on: only the desktop used' 196 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 197 | -Name 'VirtualDesktopAltTabFilter' ` 198 | -Value 1 ` 199 | -Type 'DWord'#> 200 | 201 | 202 | ' Enable hidden "System -> Share" page on Settings (on)' 203 | Set-RegistryValue -Path 'HKCU:Control Panel\' ` 204 | -Name 'EnableShareSettings' ` 205 | -Value 1 ` 206 | -Type 'DWord' 207 | 208 | ' System -> Share -> Show apps I use most often at the top of the app list (off)' 209 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 210 | -Name 'Start_TrackShareContractMFU' ` 211 | -Value 0 ` 212 | -Type 'DWord' 213 | 214 | ' System -> Share -> Show a list of how I share most often (on)' 215 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 216 | -Name 'Start_TrackShareContractHistory' ` 217 | -Value 1 ` 218 | -Type 'DWord' 219 | 220 | ' System -> Share -> Items in list: 5' 221 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 222 | -Name 'Start_ShareContractHistoryCount' ` 223 | -Value 5 ` 224 | -Type 'DWord' 225 | <# VALUE is the count in hexadecimal. Examples: 226 | Value = 5 | Count = 5 | works 227 | Value = "A" | Count = 10 | doesn't work 228 | Value = 14 | Count = 20 | works 229 | #> 230 | 231 | #endregion 232 | 233 | 234 | ############################################################ 235 | 236 | 237 | Write-Host "" 238 | Reset-Execution-Policy 239 | Stop-Transcript 240 | Pop-Location 241 | -------------------------------------------------------------------------------- /Settings_Interface.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | _ _ _ ___ ____ ____ ____ ____ ____ ____ 34 | | |\ | | |___ |__/ |___ |__| | |___ 35 | | | \| | |___ | \ | | | |___ |___ 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Interface options 67 | Write-Host "`r`n`r`nCHANGING INTERFACE OPTIONS" -ForegroundColor "Green" 68 | 69 | ' Aero Shake (off)' 70 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\' ` 71 | -Name 'DisallowShaking' ` 72 | -Value 1 ` 73 | -Type 'DWord' 74 | 75 | ' Wi-Fi Sense (off)' 76 | If ($myOS.BuildNumber -le 10586) { # Apply only for version 1507 or 1511 (Threshold 1 or 2) 77 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\config\' ` 78 | -Name 'AutoConnectAllowedOEM' ` 79 | -Value 0 ` 80 | -Type 'DWord' 81 | } else { # Apply only for version 1607 (Redstone 1) or newer 82 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting\' ` 83 | -Name 'Value' ` 84 | -Value 0 ` 85 | -Type 'DWord' 86 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots\' ` 87 | -Name 'Value' ` 88 | -Value 0 ` 89 | -Type 'DWord' 90 | } 91 | 92 | ' Fast Startup (off)' 93 | Set-RegistryValue -Path 'HKLM:SYSTEM\CurrentControlSet\Control\Session Manager\Power\' ` 94 | -Name 'HiberbootEnabled' ` 95 | -Value 0 ` 96 | -Type 'DWord' 97 | 98 | ' Sticky Keys (off)' 99 | Set-RegistryValue -Path 'HKCU:Control Panel\Accessibility\StickyKeys\' ` 100 | -Name 'Flags' ` 101 | -Value 506 102 | 103 | ' Make desktop menus snappier (20ms)' 104 | Set-RegistryValue -Path 'HKCU:\Control Panel\Desktop\' ` 105 | -Name 'MenuShowDelay' ` 106 | -Value 20 # Mininum: 0ms; Maximum: 4000ms; Default: 400ms 107 | 108 | ' User Account Control: Full' 109 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\' ` 110 | -Name 'ConsentPromptBehaviorAdmin' ` 111 | -Value 2 ` 112 | -Type 'DWord' 113 | 114 | ' OneDrive -> Run at startup (off)' 115 | if ((Get-ItemProperty -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Run\' -Name 'OneDrive' -ErrorAction SilentlyContinue) -ne $null) { 116 | Remove-ItemProperty -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Run\' -Name 'OneDrive' -Force 117 | } 118 | 119 | ' UI -> Use Windows 7/8 UAC prompt (off)' 120 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks\' ` 121 | -Name 'XamlCredUIAvailable' ` 122 | -Value 1 ` 123 | -Type 'DWord' 124 | <# OPTIONS: 125 | 0 = Windows 10 Anniversary Update style 126 | 1 = Windows 7/8 style 127 | #> 128 | 129 | ' UI -> Use Windows 7 volume control (off)' 130 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC\' ` 131 | -Name 'EnableMtcUvc' ` 132 | -Value 1 ` 133 | -Type 'DWord' 134 | <# OPTIONS: 135 | 0 = Windows 7 style 136 | 1 = Windows 10 style 137 | #> 138 | 139 | ### Doesn't work 140 | <#' UI -> Use Windows 8 network control (off)' 141 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network\' ` 142 | -Name 'ReplaceVan' ` 143 | -Value 2 ` 144 | -Type 'DWord' 145 | <# OPTIONS: 146 | 0 = Default style 147 | 1 = Windows 8 style 148 | 2 = Windows 10 style 149 | #> 150 | 151 | ### Doesn't work 152 | <#' UI -> Use Windows 7 clock & calendar control (off)' 153 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\' ` 154 | -Name 'UseWin32TrayClockExperience' ` 155 | -Value 0 ` 156 | -Type 'DWord' 157 | <# OPTIONS: 158 | 0 = Windows 10 style 159 | 1 = Windows 7 style 160 | #> 161 | 162 | ### Doesn't work 163 | <#' UI -> Use Windows 7 battery control (off)' 164 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\' ` 165 | -Name 'UseWin32BatteryFlyout' ` 166 | -Value 0 ` 167 | -Type 'DWord' 168 | <# OPTIONS: 169 | 0 = Windows 10 style 170 | 1 = Windows 7 style 171 | #> 172 | 173 | ### Doesn't work 174 | <#' UI -> Use Windows 8 notification center (off)' 175 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\' ` 176 | -Name 'UseActionCenterExperience' ` 177 | -Value 1 ` 178 | -Type 'DWord' 179 | <# OPTIONS: 180 | 0 = Windows 8 style 181 | 1 = Windows 10 style 182 | #> 183 | 184 | ### Doesn't always work 185 | <#' UI -> Show "This PC" shortcut on desktop' 186 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu"\' ` 187 | -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' ` 188 | -Value 0 ` 189 | -Type 'DWord' 190 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel\' ` 191 | -Name '{20D04FE0-3AEA-1069-A2D8-08002B30309D}' ` 192 | -Value 0 ` 193 | -Type 'DWord' 194 | 195 | ' UI -> Show "User Files" shortcut on desktop' 196 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu"\' ` 197 | -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' ` 198 | -Value 0 ` 199 | -Type 'DWord' 200 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"\' ` 201 | -Name '{59031a47-3f72-44a7-89c5-5595fe6b30ee}' ` 202 | -Value 0 ` 203 | -Type 'DWord' 204 | 205 | ' UI -> Show "Control Panel" shortcut on desktop' 206 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu"\' ` 207 | -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' ` 208 | -Value 0 ` 209 | -Type 'DWord' 210 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"\' ` 211 | -Name '{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0}' ` 212 | -Value 0 ` 213 | -Type 'DWord' 214 | 215 | ' UI -> Show "Network" shortcut on desktop' 216 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu"\' ` 217 | -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' ` 218 | -Value 0 ` 219 | -Type 'DWord' 220 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"\' ` 221 | -Name '{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}' ` 222 | -Value 0 ` 223 | -Type 'DWord' 224 | 225 | ' UI -> Show "Recycle Bin" shortcut on desktop' 226 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu"\' ` 227 | -Name '{645FF040-5081-101B-9F08-00AA002F954E}' ` 228 | -Value 0 ` 229 | -Type 'DWord' 230 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"\' ` 231 | -Name '{645FF040-5081-101B-9F08-00AA002F954E}' ` 232 | -Value 0 ` 233 | -Type 'DWord'#> 234 | 235 | ' UI -> Sign-in screen -> Disable the Password Reveal button (off)' 236 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Policies\Microsoft\Windows\CredUI\' ` 237 | -Name 'DisablePasswordReveal' ` 238 | -Value 0 ` 239 | -Type 'DWord' 240 | 241 | ' UI -> Sign-in screen -> Disable the Power button (off)' 242 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Policies\Microsoft\Windows\CredUI\' ` 243 | -Name 'DisablePasswordReveal' ` 244 | -Value 0 ` 245 | -Type 'DWord' 246 | 247 | ' UI -> Lock screen -> Disable the Network button (off)' 248 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Policies\Microsoft\Windows\System\' ` 249 | -Name 'DontDisplayNetworkSelectionUI' ` 250 | -Value 0 ` 251 | -Type 'DWord' 252 | 253 | ' Always show "Open command window here" on right click for folders and background' 254 | New-PSDrive -PSProvider registry -Root HKEY_CLASSES_ROOT -Name HKCR -ErrorAction SilentlyContinue | Out-Null 255 | Remove-ItemProperty -Path "HKCR:\Directory\shell\cmd" -Name "Extended" -ErrorAction SilentlyContinue | Out-Null 256 | Remove-ItemProperty -Path "HKCR:\Directory\Background\shell\cmd" -Name "Extended" -ErrorAction SilentlyContinue | Out-Null 257 | 258 | #endregion 259 | 260 | 261 | ############################################################ 262 | 263 | 264 | Write-Host "" 265 | Reset-Execution-Policy 266 | Stop-Transcript 267 | Pop-Location 268 | -------------------------------------------------------------------------------- /Settings_Browsers.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ___ ____ ____ _ _ _ ____ ____ ____ ____ 34 | |__] |__/ | | | | | [__ |___ |__/ [__ 35 | |__] | \ |__| |_|_| ___] |___ | \ ___] 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Edge 67 | Write-Host "`r`n`r`nCHANGING MICROSOFT EDGE SETTINGS" -ForegroundColor "Green" 68 | 69 | ' Edge -> Settings -> Choose a theme: "Light"' 70 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main\' ` 71 | -Name 'Theme' ` 72 | -Value 0 ` 73 | -Type 'DWord' 74 | <# OPTIONS: 75 | 0 = Light 76 | 1 = Dark 77 | #> 78 | 79 | ' Edge -> Settings -> Open new tabs with: "A blank page"' 80 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ServiceUI\' ` 81 | -Name 'NewTabPageDisplayOption' ` 82 | -Value 2 ` 83 | -Type 'DWord' 84 | 85 | ' Edge -> Settings -> Favorites -> Show the favorites bar (on)' 86 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\LinksBar\' ` 87 | -Name 'Enabled' ` 88 | -Value 1 ` 89 | -Type 'DWord' 90 | 91 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 92 | ' Edge -> Settings -> Favorites -> Show only icons on the favorites bar (off)' 93 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main\' ` 94 | -Name 'FaviconOnlyOnFavBar' ` 95 | -Value 0 ` 96 | -Type 'DWord' 97 | } 98 | 99 | ' Edge -> Settings -> Reading -> Reading view style: "Default"' 100 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ReadingMode\' ` 101 | -Name 'Style' ` 102 | -Value 0 ` 103 | -Type 'DWord' 104 | <# OPTIONS: 105 | 0 = Default 106 | 1 = Light 107 | 2 = Medium 108 | 3 = Dark 109 | #> 110 | 111 | ' Edge -> Settings -> Reading -> Reading view font size: "Medium"' 112 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\ReadingMode\' ` 113 | -Name 'FontSize' ` 114 | -Value 1 ` 115 | -Type 'DWord' 116 | <# OPTIONS: 117 | 0 = Small 118 | 1 = Medium 119 | 2 = Large 120 | 3 = Extra Large 121 | #> 122 | 123 | ' Edge -> Settings -> Advanced settings -> Show the home button (on)' 124 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main\' ` 125 | -Name 'HomeButtonEnabled' ` 126 | -Value 1 ` 127 | -Type 'DWord' 128 | 129 | ' Edge -> Settings -> Advanced settings -> Block pop-ups (on)' 130 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\New Windows\' ` 131 | -Name 'PopupMgr' ` 132 | -Value 'yes' 133 | 134 | ' Edge -> Settings -> Advanced settings -> Use Adobe Flash Player (on)' 135 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Addons\' ` 136 | -Name 'FlashPlayerEnabled' ` 137 | -Value 1 ` 138 | -Type 'DWord' 139 | 140 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Offer to save passwords (off)' 141 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main\' ` 142 | -Name 'FormSuggest Passwords' ` 143 | -Value 'no' 144 | 145 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Save form entries (off)' 146 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main\' ` 147 | -Name 'Use FormSuggest' ` 148 | -Value 'no' 149 | 150 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Send "Do NotTrack" requests (on)' 151 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main\' ` 152 | -Name 'DoNotTrack' ` 153 | -Value 1 ` 154 | -Type 'DWord' 155 | 156 | Write-Host " TO DO ==> Edge -> Settings -> Advanced settings -> Privacy and services -> Have Cortana assist me in Microsoft Edge (off)" -ForegroundColor "Gray" 157 | Write-Host " TO DO ==> Edge -> Settings -> Advanced settings -> Privacy and services -> Search in the address bar with: `"Google`"" -ForegroundColor "Gray" 158 | 159 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Show search and site suggestions as I type (on)' 160 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\User\Default\SearchScopes\' ` 161 | -Name 'ShowSearchSuggestionsGlobal' ` 162 | -Value 1 ` 163 | -Type 'DWord' 164 | 165 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Cookies: "Block only third-party cookies"' 166 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Main\' ` 167 | -Name 'Cookies' ` 168 | -Value 1 ` 169 | -Type 'DWord' 170 | 171 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Let sites save protected media licenses on my device (off)' 172 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\Privacy\' ` 173 | -Name 'EnableEncryptedMediaExtensions' ` 174 | -Value 0 ` 175 | -Type 'DWord' 176 | 177 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Use page prediction (off)' 178 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\FlipAhead\' ` 179 | -Name 'FPEnabled' ` 180 | -Value 0 ` 181 | -Type 'DWord' 182 | 183 | ' Edge -> Settings -> Advanced settings -> Privacy and services -> Use SmartScreen Filter (on)' 184 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter\' ` 185 | -Name 'EnabledV9' ` 186 | -Value 1 ` 187 | -Type 'DWord' 188 | 189 | 190 | ' Edge -> about:flags (on)' 191 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Policies\Microsoft\MicrosoftEdge\Main\' ` 192 | -Name 'PreventAccessToAboutFlagsInMicrosoftEdge' ` 193 | -Value 0 ` 194 | -Type 'DWord' 195 | 196 | ' Edge -> about:flags -> Show "View source" and "Inspect element" in the context menu (on)' 197 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\F12\' ` 198 | -Name 'ShowPageContextMenuEntryPoints' ` 199 | -Value 1 ` 200 | -Type 'DWord' 201 | 202 | #endregion 203 | 204 | 205 | #################### 206 | 207 | 208 | #region Settings: IE 209 | Write-Host "`r`n`r`nCHANGING INTERNET EXPLORER SETTINGS" -ForegroundColor "Green" 210 | 211 | ' Block Advertising in IE' 212 | if (-not (Test-Path -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety')) 213 | { 214 | $null = New-Item -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety' -ItemType Directory 215 | } 216 | if (-not (Test-Path -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE')) 217 | { 218 | $null = New-Item -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE' -ItemType Directory 219 | } 220 | if (-not (Test-Path -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\')) 221 | { 222 | $null = New-Item -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\' -ItemType Directory 223 | } 224 | $null = New-ItemProperty -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE' -Name 'FilteringMode' -PropertyType DWORD -Value 0 -Force 225 | if (-not (Test-Path -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{7C998372-3B89-46E6-9546-1945C711CD0C}')) 226 | { 227 | $null = New-Item -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists\{7C998372-3B89-46E6-9546-1945C711CD0C}' -ItemType Directory 228 | } 229 | $null = New-ItemProperty -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE' -Name 'Enabled' -PropertyType DWORD -Value 1 -Force 230 | $null = New-ItemProperty -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE' -Name 'Name' -PropertyType String -Value 'EasyList' -Force 231 | $null = New-ItemProperty -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE' -Name 'Path' -PropertyType String -Value '%AppDataDir%\Local\Microsoft\Internet Explorer\Tracking Protection\{7C998372-3B89-46E6-9546-1945C711CD0C}.tpl' -Force 232 | $null = New-ItemProperty -Path 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE' -Name 'Url' -PropertyType String -Value 'http://easylist-msie.adblockplus.org/easylist.tpl' -Force 233 | 234 | #endregion 235 | 236 | 237 | ############################################################ 238 | 239 | 240 | Write-Host "" 241 | Reset-Execution-Policy 242 | Stop-Transcript 243 | Pop-Location 244 | -------------------------------------------------------------------------------- /Settings_Privacy.ps1: -------------------------------------------------------------------------------- 1 | ############################################################ 2 | # (c) Daniel Petrescu 3 | ############################################################ 4 | # The software is provided "as is", without warranty of any kind, express or implied, including but 5 | # not limited to the warranty of fitness for a particular purpose. In no event shall the authors or 6 | # copyright holders be liable for any claim, damages or other liability, whether in an action of 7 | # contract or otherwise, arising from, out of, or in connection with the software or the use or 8 | # other dealings in the software. 9 | ############################################################ 10 | 11 | 12 | ### Get variables 13 | $scriptPath = $MyInvocation.MyCommand.Path 14 | $scriptDir = Split-Path $scriptpath 15 | Push-Location $scriptDir 16 | . '.\Variables.ps1' 17 | 18 | 19 | ############################################################ 20 | 21 | 22 | #region Script Init 23 | 24 | ### Copy the output to a log file 25 | $ScriptName = ([io.fileinfo]$MyInvocation.MyCommand.Name).basename 26 | $OutputFileLocation = "$($PSScriptRoot)\logs\$($ScriptName)_output_$($TheDateOutput).txt" 27 | '' 28 | Start-Transcript -path $OutputFileLocation -append 29 | '' 30 | 31 | ### Print headers 32 | $scriptLogo = @" 33 | ___ ____ _ _ _ ____ ____ _ _ 34 | |__] |__/ | | | |__| | \_/ 35 | | | \ | \/ | | |___ | 36 | "@ 37 | Print-Headers "$scriptLogo" 38 | 39 | #endregion 40 | 41 | 42 | ############################## 43 | 44 | 45 | #region Start Script 46 | 47 | Write-Host "`r`n===== START =====" -ForegroundColor "Black" -BackgroundColor "yellow" 48 | 49 | ### Make sure the Execution Policy is 'Unrestricted' 50 | $currentExecutionPolicy = Get-ExecutionPolicy 51 | $resetExecutionPolicy = 0 52 | Write-Host "`r`n$myOSstring" 53 | Write-Host "`r`nThe current Execution Policy is: $currentExecutionPolicy" -ForegroundColor "Gray" 54 | if ($currentExecutionPolicy -ne "Unrestricted") { 55 | $resetExecutionPolicy = 1 56 | Write-Host 'Setting Execution Policy to: Unrestricted. This will be changed back at the end of the script.' -ForegroundColor "Gray" 57 | Set-ExecutionPolicy -ExecutionPolicy Unrestricted 58 | } 59 | 60 | #endregion 61 | 62 | 63 | ############################################################ 64 | 65 | 66 | #region Settings: Privacy 67 | Write-Host "`r`n`r`nCHANGING PRIVACY SETTINGS" -ForegroundColor "Green" 68 | 69 | ' Privacy -> General -> Let apps use my advertising id for experiences across apps (off)' 70 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo\' ` 71 | -Name 'Enabled' ` 72 | -Value 0 ` 73 | -Type 'DWord' 74 | 75 | ' Privacy -> General -> SmartScreen Filter to check web content that Windows Store apps use (on)' 76 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost\' ` 77 | -Name 'EnableWebContentEvaluation' ` 78 | -Value 1 ` 79 | -Type 'DWord' 80 | 81 | ' Privacy -> General -> Send Microsoft info about how I write to help us improve typing and writing in the future (off)' 82 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Input\TIPC\' ` 83 | -Name 'Enabled' ` 84 | -Value 0 85 | 86 | ' Privacy -> General -> Let websites provide locally relevant content by accessing my language list (off)' 87 | if ((Get-ItemProperty -Path 'HKCU:SOFTWARE\Microsoft\Internet Explorer\International\' -Name 'AcceptLanguage' -ErrorAction SilentlyContinue) -ne $null) { 88 | Remove-ItemProperty -Path 'HKCU:SOFTWARE\Microsoft\Internet Explorer\International\' -Name 'AcceptLanguage' -Force 89 | } 90 | Set-RegistryValue -Path 'HKCU:Control Panel\International\User Profile\' ` 91 | -Name 'HttpAcceptLanguageOptOut' ` 92 | -Value 1 93 | 94 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 95 | ' Privacy -> General -> Let apps on my other devices open apps and continue experiences on this device (off)' 96 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\SmartGlass\' ` 97 | -Name 'UserAuthPolicy' ` 98 | -Value 0 99 | } 100 | 101 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 102 | ' Privacy -> General -> Let apps on my other devices use Bluetooth to open apps and continue experiences on this device (off)' 103 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\SmartGlass\' ` 104 | -Name 'BluetoothPolicy' ` 105 | -Value 0 106 | } 107 | 108 | ' Privacy -> Location -> Location (for this account) (off)' 109 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}\' ` 110 | -Name 'Value' ` 111 | -Value 'Deny' 112 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E6AD100E-5F4E-44CD-BE0F-2265D88D14F5\' ` 113 | -Name 'Value' ` 114 | -Value 'Deny' 115 | Set-RegistryValue -Path 'HKCU:SSOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Permissions\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}\' ` 116 | -Name 'SensorPermissionState ' ` 117 | -Value 0 ` 118 | -Type 'DWord' 119 | <#' Privacy -> Location -> Location for this device (for all accounts) (off) [automatically resets]' 120 | Set-RegistryValue -Path 'HKLM:Software\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}\' ` 121 | -Name 'SensorPermissionState' ` 122 | -Value 0 ` 123 | -Type 'DWord'#> 124 | 125 | ' Privacy -> Camera -> Let apps use my camera (off)' 126 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{E5323777-F976-4f5b-9B55-B94699C46E44}\' ` 127 | -Name 'Value' ` 128 | -Value 'Deny' 129 | 130 | ' Privacy -> Microphone -> Let apps use my microphone (off)' 131 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{2EEF81BE-33FA-4800-9670-1CD474972C3F}\' ` 132 | -Name 'Value' ` 133 | -Value 'Deny' 134 | 135 | If ($myOS.BuildNumber -ge 14393) { # Apply only for version 1607 (Redstone 1) or newer 136 | ' Privacy -> Notifications -> Let apps access my notifications (off)' 137 | Write-Host ' └-> NOTE: This setting might reset to the default (on). If so, change it manually.' -ForegroundColor "Yellow" 138 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{52079E78-A92B-413F-B213-E8FE35712E72}\' ` 139 | -Name 'Value' ` 140 | -Value 'Deny' 141 | } 142 | 143 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 144 | ' Privacy -> Speech, inking & typing -> Disable Cortana' 145 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Search\' ` 146 | -Name 'CortanaEnabled' ` 147 | -Value 0 ` 148 | -Type 'DWord' 149 | } 150 | 151 | ' Privacy -> Speech, inking & typing -> Get to know my typing (off)' 152 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Personalization\Settings\' ` 153 | -Name 'AcceptedPrivacyPolicy' ` 154 | -Value 0 ` 155 | -Type 'DWord' 156 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language\' ` 157 | -Name 'Enabled' ` 158 | -Value 0 ` 159 | -Type 'DWord' 160 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\InputPersonalization\' ` 161 | -Name 'RestrictImplicitTextCollection' ` 162 | -Value 1 ` 163 | -Type 'DWord' 164 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\InputPersonalization\' ` 165 | -Name 'RestrictImplicitInkCollection' ` 166 | -Value 1 ` 167 | -Type 'DWord' 168 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore\' ` 169 | -Name 'HarvestContacts' ` 170 | -Value 0 ` 171 | -Type 'DWord' 172 | 173 | ' Privacy -> Account info -> Let apps access my name, picture and other account info (off)' 174 | Write-Host ' └-> NOTE: This setting might reset to the default (on). If so, change it manually.' -ForegroundColor "Yellow" 175 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{C1D23ACC-752B-43E5-8448-8D0E519CD6D6}\' ` 176 | -Name 'Value' ` 177 | -Value 'Deny' 178 | 179 | ' Privacy -> Contacts -> Let apps access my contacts (off)' 180 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{7D7E8402-7C54-4821-A34E-AEEFD62DED93}\' ` 181 | -Name 'Value' ` 182 | -Value 'Deny' 183 | 184 | ' Privacy -> Calendar -> Let apps access my calendar (off)' 185 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{D89823BA-7180-4B81-B50C-7E471E6121A3}\' ` 186 | -Name 'Value' ` 187 | -Value 'Deny' 188 | 189 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 190 | ' Privacy -> Call history -> Let apps access my call history (off)' 191 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{8BC668CF-7728-45BD-93F8-CF2B3B41D7AB}\' ` 192 | -Name 'Value' ` 193 | -Value 'Deny' 194 | } 195 | 196 | If ($myOS.BuildNumber -ge 10586) { # Apply only for version 1511 (Threshold 2) or newer 197 | ' Privacy -> Email -> Let apps access and send email (off)' 198 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{9231CB4C-BF57-4AF3-8C55-FDA7BFCC04C5}\' ` 199 | -Name 'Value' ` 200 | -Value 'Deny' 201 | } 202 | 203 | ' Privacy -> Messaging -> Let apps read or send text/SMS/MMS messages (off)' 204 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{992AFA70-6F47-4148-B3E9-3003349C1548}\' ` 205 | -Name 'Value' ` 206 | -Value 'Deny' 207 | 208 | ' Privacy -> Radios -> Let apps control radios (off)' 209 | Write-Host ' └-> NOTE: This setting might reset to the default (on). If so, change it manually.' -ForegroundColor "Yellow" 210 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{A8804298-2D5F-42E3-9531-9C8C39EB29CE}\' ` 211 | -Name 'Value' ` 212 | -Value 'Deny' 213 | 214 | ' Privacy -> Other devices -> Sync with devices (off)' 215 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\LooselyCoupled\' ` 216 | -Name 'Value' ` 217 | -Value 'Deny' 218 | 219 | ' Privacy -> Feedback & diagnostics -> Windows should ask for my feedback: "Never"' 220 | Set-RegistryValue -Path 'HKCU:SOFTWARE\Microsoft\Siuf\Rules\' ` 221 | -Name 'NumberOfSIUFInPeriod' ` 222 | -Value 0 ` 223 | -Type 'DWord' 224 | 225 | ' Privacy -> Feedback & diagnostics -> Send your device data to Microsoft: "Security"' 226 | If ($myOS.BuildNumber -lt 14393) { # Apply only for version 1511 (Threshold 2) or older 227 | Write-Host ' └-> NOTE: "Update & Security -> Windows Update -> Advanced options -> Get Insider Builds" will be disabled. To enable, set this to "Enhanced".' -ForegroundColor "Yellow" 228 | } else { 229 | Write-Host ' └-> NOTE: "Update & Security -> Windows Insider Program -> Get started" will be disabled. To enable, set this to "Enhanced".' -ForegroundColor "Yellow" 230 | } 231 | <#Set-RegistryValue -Path 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection\' ` 232 | -Name 'AllowTelemetry' ` 233 | -Value 0 ` 234 | -Type 'DWord'#> 235 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Policies\Microsoft\Windows\DataCollection\' ` 236 | -Name 'AllowTelemetry' ` 237 | -Value 0 ` 238 | -Type 'DWord' 239 | <#Set-RegistryValue -Path 'HKLM:SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection\' ` 240 | -Name 'AllowTelemetry' ` 241 | -Value 0 ` 242 | -Type 'DWord'#> 243 | <# OPTIONS: 244 | 0 = "Security" [not available in UI] 245 | 1 = "Basic" - OS version, functioning of Windows, device capabilities 246 | 2 = "Enhanced" - Basic + how you use Windows, which feature you use the most, the most frequently used apps by the users, diagnostic information 247 | 3 = "Full (recommended)" - Enhanced + system files, memory snapshots, part of the document you were working on when the app crashed, etc. 248 | #> 249 | 250 | If ($myOS.Caption -notlike '*Home') { # This does not work on Home editions 251 | ' Privacy -> Turn off Microsoft consumer experience' 252 | ' └-> Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> Cloud Content' 253 | Set-RegistryValue -Path 'HKLM:SOFTWARE\Policies\Microsoft\Windows\CloudContent\' ` 254 | -Name 'DisableWindowsConsumerFeatures' ` 255 | -Value 1 ` 256 | -Type 'DWord' 257 | } 258 | 259 | #endregion 260 | 261 | 262 | ############################################################ 263 | 264 | 265 | Write-Host "" 266 | Reset-Execution-Policy 267 | Stop-Transcript 268 | Pop-Location 269 | -------------------------------------------------------------------------------- /All_settings.txt: -------------------------------------------------------------------------------- 1 | =========================================================================== 2 | 3 | 4 | APPS 5 | 6 | -------------------- 7 | 8 | Setting Photo Viewer as default for bmp, gif, jpg, png, and tif 9 | 10 | Showing Photo Viewer in "Open with..." 11 | 12 | Enabling F8 boot menu options 13 | 14 | Installing Windows Subsystem for Linux (Beta) 15 | └-> version 1607 (Redstone 1) or newer 16 | 17 | 18 | =========================================================================== 19 | 20 | 21 | BROWSERS 22 | 23 | -------------------- 24 | 25 | Edge -> Settings -> Choose a theme: "Light" 26 | 27 | Edge -> Settings -> Open new tabs with: "A blank page" 28 | 29 | Edge -> Settings -> Favorites -> Show the favorites bar (on) 30 | 31 | Edge -> Settings -> Favorites -> Show only icons on the favorites bar (off) 32 | └-> version 1511 (Threshold 2) or newer 33 | 34 | Edge -> Settings -> Reading -> Reading view style: "Default" 35 | 36 | Edge -> Settings -> Reading -> Reading view font size: "Medium" 37 | 38 | Edge -> Settings -> Advanced settings -> Show the home button (on) 39 | 40 | Edge -> Settings -> Advanced settings -> Block pop-ups (on) 41 | 42 | Edge -> Settings -> Advanced settings -> Use Adobe Flash Player (on) 43 | 44 | Edge -> Settings -> Advanced settings -> Privacy and services -> Offer to save passwords (off) 45 | 46 | Edge -> Settings -> Advanced settings -> Privacy and services -> Save form entries (off) 47 | 48 | Edge -> Settings -> Advanced settings -> Privacy and services -> Send "Do NotTrack" requests (on) 49 | 50 | [ Edge -> Settings -> Advanced settings -> Privacy and services -> Have Cortana assist me in Microsoft Edge (off) ] 51 | 52 | [ Edge -> Settings -> Advanced settings -> Privacy and services -> Search in the address bar with: "Google" ] 53 | 54 | Edge -> Settings -> Advanced settings -> Privacy and services -> Show search and site suggestions as I type (on) 55 | 56 | Edge -> Settings -> Advanced settings -> Privacy and services -> Cookies: "Block only third-party cookies" 57 | 58 | Edge -> Settings -> Advanced settings -> Privacy and services -> Let sites save protected media licenses on my device (off) 59 | 60 | Edge -> Settings -> Advanced settings -> Privacy and services -> Use page prediction (off) 61 | 62 | Edge -> Settings -> Advanced settings -> Privacy and services -> Use SmartScreen Filter (on) 63 | 64 | Edge -> about:flags (on) 65 | 66 | Edge -> about:flags -> Show "View source" and "Inspect element" in the context menu (on) 67 | 68 | 69 | Block Advertising in IE 70 | 71 | 72 | =========================================================================== 73 | 74 | 75 | DEVICES 76 | 77 | -------------------- 78 | 79 | Devices -> Printers & scanners -> Let Windows manage my default printer (off) 80 | └-> version 1511 (Threshold 2) or newer 81 | 82 | Devices -> Printers & scanners -> Download over metered connections (off) 83 | 84 | Devices -> Bluetooth (on) 85 | 86 | Devices -> Mouse & touchpad -> Scroll inactive windows when I hover over them (on) 87 | 88 | Devices -> Typing -> Autocorrect misspelled words (on) 89 | 90 | Devices -> Typing -> Highlight misspelled words (on) 91 | 92 | Devices -> Autoplay (off) 93 | 94 | Devices -> USB -> Notify me if there are issue connecting to USB devices (on) 95 | └-> version 1511 (Threshold 2) or newer 96 | 97 | 98 | =========================================================================== 99 | 100 | 101 | FILE EXPLORER 102 | 103 | -------------------- 104 | 105 | Enable CTRL+ALT+DEL at logon 106 | 107 | File Explorer: open to "This PC" 108 | 109 | File Explorer: use check boxes to select items (on) 110 | 111 | File Explorer: show hidden files, folders and drives (on) 112 | 113 | File Explorer: hide extensions for known file types (off) 114 | 115 | File Explorer: show status bar (on) 116 | 117 | File Explorer: use sharing wizard (on) 118 | 119 | File Explorer: always show icons, never thumbnails (off) 120 | 121 | File Explorer: always show menus (off) 122 | 123 | File Explorer: display file icon on thumbnails (on) 124 | 125 | File Explorer: show pop-up description of folder and desktop items (on) 126 | 127 | File Explorer: display file size information in folder tips (on) 128 | 129 | File Explorer: display the full path in the title bar (off) 130 | 131 | File Explorer: hide empty drives (on) 132 | 133 | File Explorer: hide folder merge conflicts (off) 134 | 135 | File Explorer: hide protected OS files (on) 136 | 137 | File Explorer: launch folder windows in a separate process (off) 138 | 139 | File Explorer: restore previous folder windows at logon (off) 140 | 141 | File Explorer: show drive letters (on) 142 | 143 | File Explorer: show encrypted/compressed NTFS files in colour (on) 144 | 145 | File Explorer: show preview handlers in preview pane (on) 146 | 147 | File Explorer: show sync provider notifications (on) 148 | 149 | File Explorer: when typing into list view - select the typed item in the view 150 | 151 | File Explorer: Navigation Pane -> expand to open folder (off) 152 | 153 | File Explorer: Navigation Pane -> show all folders (off) 154 | 155 | File Explorer: Navigation Pane -> show libraries (on) 156 | 157 | 158 | =========================================================================== 159 | 160 | 161 | INTERFACE 162 | 163 | -------------------- 164 | 165 | Aero Shake (off) 166 | 167 | Wi-Fi Sense (off) 168 | 169 | Fast Startup (off) 170 | 171 | Sticky Keys (off) 172 | 173 | Make desktop menus snappier (20ms) 174 | 175 | User Account Control: Full 176 | 177 | OneDrive -> Run at startup (off) 178 | 179 | UI -> Use Windows 7/8 UAC prompt (off) 180 | 181 | UI -> Use Windows 7 volume control (off) 182 | 183 | # UI -> Use Windows 8 network control (off) 184 | 185 | # UI -> Use Windows 7 clock & calendar control (off) 186 | 187 | # UI -> Use Windows 7 battery control (off) 188 | 189 | # UI -> Use Windows 8 notification center (off) 190 | 191 | # UI -> Show "This PC" shortcut on desktop 192 | 193 | # UI -> Show "User Files" shortcut on desktop 194 | 195 | # UI -> Show "Control Panel" shortcut on desktop 196 | 197 | # UI -> Show "Network" shortcut on desktop 198 | 199 | # UI -> Show "Recycle Bin" shortcut on desktop 200 | 201 | UI -> Sign-in screen -> Disable the Password Reveal button (off) 202 | 203 | UI -> Sign-in screen -> Disable the Power button (off) 204 | 205 | UI -> Lock screen -> Disable the Network button (off) 206 | 207 | Always show "Open command window here" on right click for folders and background 208 | 209 | 210 | =========================================================================== 211 | 212 | 213 | PERSONALISATION 214 | 215 | -------------------- 216 | 217 | # Personalization -> Colors -> Accent color 218 | 219 | Personalization -> Colors -> Make Start, taskbar, and action center transparent (on) 220 | 221 | Personalization -> Colors -> Show color on Start, taskbar, and action center (on) 222 | 223 | Personalization -> Colors -> Show color on title bar (on) 224 | └-> version 1511 (Threshold 2) or newer 225 | 226 | Personalization -> Colors -> App mode: light 227 | └-> version 1607 (Redstone 1) or newer 228 | 229 | Personalization -> Lock screen -> Get fun facts, tips, tricks, and more on your lock screen (off) 230 | └-> version 1607 (Redstone 1) or newer 231 | 232 | # Personalization -> Lock screen -> Show lock screen background picture on the sign-in screen (on) 233 | └-> version 1511 (Threshold 2) or newer 234 | 235 | # Personalization -> Start -> Show more tiles (on)' 236 | 237 | Personalization -> Start -> Occasionally show suggestions in Start (off) 238 | └-> version 1511 (Threshold 2) or newer 239 | 240 | Personalization -> Start -> Show most used apps (on) 241 | 242 | <…> 243 | 244 | Personalization -> Taskbar -> Lock the taskbar (on) 245 | 246 | Personalization -> Taskbar -> Use small taskbar buttons (off) 247 | 248 | Personalization -> Taskbar -> Use peek to preview the desktop (on) 249 | 250 | Personalization -> Taskbar -> Use Powershell on WIN+X (off) 251 | 252 | Personalization -> Taskbar -> Show badges on taskbar buttons (on) 253 | 254 | Personalization -> Taskbar -> Combine taskbar buttons: "Always combine, hide labels" 255 | 256 | Taskbar -> "Show Task View button" (on) 257 | 258 | Taskbar -> "Cortana" (icon) 259 | 260 | Taskbar -> Windows Search -> My device history (off) 261 | 262 | Taskbar -> Increased transperancy (off) 263 | 264 | Cortana (off) 265 | 266 | Bing Search (off) 267 | 268 | 269 | =========================================================================== 270 | 271 | 272 | PRIVACY 273 | 274 | -------------------- 275 | 276 | Privacy -> General -> Let apps use my advertising id for experiences across apps (off) 277 | 278 | Privacy -> General -> SmartScreen Filter to check web content that Windows Store apps use (on) 279 | 280 | Privacy -> General -> Send Microsoft info about how I write to help us improve typing and writing in the future (off) 281 | 282 | Privacy -> General -> Let websites provide locally relevant content by accessing my language list (off) 283 | 284 | Privacy -> General -> Let apps on my other devices open apps and continue experiences on this device (off)' 285 | └-> version 1607 (Redstone 1) or newer 286 | 287 | Privacy -> General -> Let apps on my other devices use Bluetooth to open apps and continue experiences on this device (off) 288 | └-> version 1607 (Redstone 1) or newer 289 | 290 | Privacy -> Location -> Location (for this account) (off) 291 | 292 | # Privacy -> Location -> Location for this device (for all accounts) (off) 293 | └-> automatically resets 294 | 295 | Privacy -> Camera -> Let apps use my camera (off) 296 | 297 | Privacy -> Microphone -> Let apps use my microphone (off) 298 | 299 | Privacy -> Notifications -> Let apps access my notifications (off) 300 | └-> version 1607 (Redstone 1) or newer 301 | 302 | Privacy -> Speech, inking & typing -> Disable Cortana 303 | └-> version 1511 (Threshold 2) or newer 304 | 305 | Privacy -> Speech, inking & typing -> Get to know my typing (off) 306 | 307 | Privacy -> Account info -> Let apps access my name, picture and other account info (off) 308 | 309 | Privacy -> Contacts -> Let apps access my contacts (off) 310 | 311 | Privacy -> Calendar -> Let apps access my calendar (off) 312 | 313 | Privacy -> Call history -> Let apps access my call history (off) 314 | └-> version 1511 (Threshold 2) or newer 315 | 316 | Privacy -> Email -> Let apps access and send email (off) 317 | └-> version 1511 (Threshold 2) or newer 318 | 319 | Privacy -> Messaging -> Let apps read or send text/SMS/MMS messages (off) 320 | 321 | Privacy -> Radios -> Let apps control radios (off) 322 | 323 | Privacy -> Other devices -> Sync with devices (off) 324 | 325 | Privacy -> Feedback & diagnostics -> Windows should ask for my feedback: "Never" 326 | 327 | Privacy -> Feedback & diagnostics -> Send your device data to Microsoft: "Security" 328 | 329 | Privacy -> Turn off Microsoft consumer experience 330 | └-> does not work on Home editions 331 | 332 | 333 | =========================================================================== 334 | 335 | 336 | REGION 337 | 338 | -------------------- 339 | 340 | Time & Language -> Date & time -> Set time automatically (on) 341 | 342 | Time & Language -> Date & time -> Set time zone automatically (off) 343 | 344 | Time & Language -> Date & time -> Adjust for daylight saving time automatically (on) 345 | 346 | Time & Language -> Region & language -> Country: "Australia" 347 | 348 | # Time & Language -> Region & language -> Languages: en-AU 349 | 350 | Time & Language -> Date & time -> Formats -> First day of week: "Monday" 351 | 352 | Time & Language -> Date & time -> Formats -> Short time: "h:mm tt" 353 | 354 | Time & Language -> Date & time -> Formats -> Long time: "h:mm:ss tt" 355 | 356 | Time & Language -> Date & time -> Formats -> Short date: "d/MM/yyyy"" 357 | 358 | Time & Language -> Date & time -> Formats -> Long date: "dddd, d MMMM, yyyy" 359 | 360 | 361 | =========================================================================== 362 | 363 | 364 | SYSTEM 365 | 366 | -------------------- 367 | 368 | System -> Notifications & actions -> Get notifications from apps and other senders (on) 369 | └-> version 1607 (Redstone 1) or newer 370 | 371 | System -> Notifications & actions -> Show notifications on the lock screen (on) 372 | 373 | System -> Notifications & actions -> Show alarms, reminders, and incoming VoIP calls on the lock screen (on) 374 | 375 | System -> Notifications & actions -> Hide notifications when duplicating the screen (on) 376 | 377 | System -> Notifications & actions -> Get tips, tricks, and suggestions as you use Windows (off) 378 | └-> version 1511 (Threshold 2) or newer 379 | 380 | System -> Notifications & actions -> Show app notifications (on) 381 | 382 | System -> Offline maps -> Metered connections (off) 383 | 384 | System -> Offline maps -> Automatically update maps (on) 385 | 386 | System -> Tablet mode (off) 387 | 388 | System -> Tablet mode -> When I sign in: go to the desktop 389 | 390 | System -> Tablet mode -> When automatically switching tablet mode on/off (always ask) 391 | 392 | System -> Tablet mode -> Hide app icons on the taskbar in tablet mode (off) 393 | 394 | System -> Tablet mode -> Automatically hide the taskbar in tablet mode (off) 395 | 396 | System -> Multitasking -> Snap (on) 397 | 398 | System -> Multitasking -> When I snap a window, automatically size it to fill available space (on) 399 | 400 | System -> Multitasking -> When I snap a window, show what I can snap next to it (off) 401 | 402 | System -> Multitasking -> When I resize a snapped a window, resize any other snapped windows (on) 403 | └-> version 1511 (Threshold 2) or newer 404 | 405 | # System -> Multitasking -> Virtual desktops -> On the taskbar, show windows that are open on: only the desktop used 406 | 407 | System -> Multitasking -> Virtual desktops -> Pressing ALT+TAB shows windows that are open on: only the desktop used 408 | 409 | Enable hidden "System -> Share" page on Settings (on) 410 | 411 | System -> Share -> Show apps I use most often at the top of the app list (off) 412 | 413 | System -> Share -> Show a list of how I share most often (on) 414 | 415 | System -> Share -> Items in list: 5 416 | 417 | 418 | =========================================================================== 419 | 420 | 421 | UPDATES 422 | 423 | -------------------- 424 | 425 | Update & Security -> Windows Update -> Advanced options -> Choose how updates are installed: "Notify for download and notify for install" 426 | └-> does not work on Home editions 427 | 428 | Update & Security -> Windows Update -> Advanced options -> Give me updates for other Microsoft products when I update Windows: Yes 429 | 430 | Update & Security -> Windows Update -> Advanced options -> Defer upgrades: Yes 431 | 432 | Update & Security -> Windows Update -> Advanced options -> Use my sign-in info to automatically finish setting up my device after an update: No 433 | └-> version 1607 (Redstone 1) or newer 434 | 435 | Update & Security -> Windows Update -> Advanced options -> Choose how updates are delivered -> Updates from more than one place (off) 436 | 437 | # Update & Security -> Windows Update -> Advanced options -> Choose how updates are delivered -> Updates from more than one place -> Get updates from and send updates to ... 438 | └-> "Requested registry access is not allowed." 439 | 440 | Update & Security -> Windows Defender -> Real-time protection (on) 441 | 442 | Update & Security -> Windows Defender -> Cloud-based protection (off) 443 | 444 | Update & Security -> Windows Defender -> Automatic sample submission (off) 445 | 446 | Update & Security -> Windows Defender -> Enhanced notifications (off) 447 | 448 | Update & Security -> For developers -> Use developer features: "Developer mode" 449 | 450 | 451 | =========================================================================== -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | --------------------------------------------------------------------------------