diff --git a/190x/1903-1909.ps1 b/190x/1903-1909.ps1 index 0d788931..4174a3a5 100644 --- a/190x/1903-1909.ps1 +++ b/190x/1903-1909.ps1 @@ -2,8 +2,8 @@ .SYNOPSIS "Windows 10 Setup Script" is a set of tweaks for OS fine-tuning and automating the routine tasks - Version: v4.4.8 - Date: 17.08.2020 + Version: v4.5 + Date: 18.09.2020 Copyright (c) 2020 farag & oZ-Zo Thanks to all http://forum.ru-board.com members involved @@ -21,7 +21,7 @@ Running the script is best done on a fresh install because running it on tweaked system may result in errors occurring Some third-party antiviruses flag this script or its' part as malicious one. This is a false positive due to $EncodedScript variable - You can read more on section "Create a Windows cleaning up task in the Task Scheduler" + You can read more about in "Create a task to clean up unused files and Windows updates in the Task Scheduler" section You might need to disable tamper protection from your antivirus settings,re-enable it after running the script, and reboot Check whether the .ps1 file is encoded in UTF-8 with BOM @@ -32,13 +32,13 @@ Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force .EXAMPLE - PS C:\> & '.\Win 10 1903-1909.ps1' + PS C:\> & '.\1903-1909.ps1' .NOTES 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?showtopic=523489&st=42860#entry95909388 + https://4pda.ru/forum/index.php?s=&showtopic=523489&view=findpost&p=95909388 https://forums.mydigitallife.net/threads/powershell-script-setup-windows-10.81675/ https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/ @@ -54,14 +54,7 @@ Clear-Host # Get information about the current culture settings # Получить сведения о параметрах текущей культуры -if ($PSUICulture -eq "ru-RU") -{ - $RU = $true -} -else -{ - $RU = $false -} +$RU = $PSUICulture -eq "ru-RU" # Detect the OS bitness # Определить разрядность ОС @@ -111,7 +104,7 @@ if ($psISE) } else { - Write-Warning -Message "The script can not be run via PowerShell ISE" + Write-Warning -Message "The script cannot be run via PowerShell ISE" } break } @@ -129,13 +122,13 @@ $Error.Clear() if ($RU) { $Title = "Точка восстановления" - $Message = "Чтобы создайте точку восстановления, введите необходимую букву" + $Message = "Хотите включить защиту системы и создать точку восстановления?" $Options = "&Создать", "&Не создавать", "&Пропустить" } else { $Title = "Restore point" - $Message = "To create a restore point enter the required letter" + $Message = "Would you like to enable System Restore and create a restore point?" $Options = "&Create", "&Do not create", "&Skip" } $DefaultChoice = 2 @@ -145,17 +138,19 @@ switch ($Result) { "0" { + # Enable System Restore + # Включить функцию восстановления системы if (-not (Get-ComputerRestorePoint)) { Enable-ComputerRestore -Drive $env:SystemDrive } + # 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 - # Descriptive name format for the restore point: ..