From 4ca43170f927da27c6ce2eb9178b4d420cba601c Mon Sep 17 00:00:00 2001 From: farag2 Date: Sun, 3 May 2020 21:23:07 +0300 Subject: [PATCH] v4.1 03.05.2020 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Updated - The "Turn off Windows features" and "Uninstall all UWP apps from all accounts" sections moved from CLI to GUI! - GUI made by [oz-zo](https://github.com/oz-zo), fixes by [westlife](http://forum.ru-board.com/profile.cgi?action=show&member=westlife) - Minor changes; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) ## Обновлено - Разделы "Отключить компоненты Windows" и "Удалить все UWP-приложения из всех учетных записей" переведены с CLI на GUI! - GUI сделал [oz-zo](https://github.com/oz-zo), исправления от [westlife](http://forum.ru-board.com/profile.cgi?action=show&member=westlife) - Незначительные изменения; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765) --- Win 10.ps1 | 639 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 491 insertions(+), 148 deletions(-) diff --git a/Win 10.ps1 b/Win 10.ps1 index db4def99..046bb834 100644 --- a/Win 10.ps1 +++ b/Win 10.ps1 @@ -1,9 +1,9 @@ <# .SYNOPSIS - The PowerShell script is a set of tweaks for fine-tuning Windows 10 and automating the routine tasks. + "Windows 10 Setup Script" is a set of tweaks for OS fine-tuning and automating the routine tasks. .DESCRIPTION Supported Windows versions: - Windows 10 18362/18363 (1903/1909) x64 only. Tested on Pro/Enterprise editions. + Windows 10 1903/1909 (19H1/19H2), 18362/18363 build, x64 only. Tested on Pro/Enterprise editions. Check whether file is encoded in UTF-8 with BOM. PowerShell must be run with elevated privileges; @@ -18,13 +18,14 @@ .EXAMPLE PS C:\> & '.\Win 10.ps1' .NOTES - Version: v4.0.34 - Date: 28.04.2020 + Version: v4.1 + Date: 03.05.2020 Written by: farag Thanks to all http://forum.ru-board.com members involved Ask a question on - http://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15 - https://habr.com/en/post/465365/ + - https://4pda.ru/forum/index.php?s=&showtopic=523489&view=findpost&p=95909388 - https://forums.mydigitallife.net/threads/powershell-script-setup-windows-10.80139/ - https://www.reddit.com/r/Windows10/comments/ctg8jw/powershell_script_setup_windows_10/ Copyright (c) 2020 farag @@ -35,8 +36,7 @@ #Requires -RunAsAdministrator #Requires -Version 5 -#region Preparation -Set-StrictMode -Version Latest +#region Check Clear-Host # Get information about the current culture settings @@ -79,9 +79,11 @@ if (-not ([IntPtr]::Size -eq 8)) } break } -#endregion Preparation +#endregion Check #region Begin +Set-StrictMode -Version Latest + # Сlear $Error variable # Очистка переменной $Error $Error.Clear() @@ -133,12 +135,12 @@ do } # Set system restore point creation frequency to 5 minutes # Установить частоту создания точек восстановления на 5 минут - New-ItemProperty -Path "HKLM:\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name SystemRestorePointCreationFrequency -PropertyType DWord -Value 5 -Force + New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name SystemRestorePointCreationFrequency -PropertyType DWord -Value 5 -Force # Descriptive name format for the restore point: , ,