Permalink
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
- 15 commits
- 4 files changed
- 0 comments
- 2 contributors
Commits on Jun 23, 2020
Commits on Jun 25, 2020
Commits on Jun 29, 2020
# Windows 10 2004 | 1903/1909 Version ## Updated - Updated "Turn off Cortana autostarting" section - Updated "Create "Process Creation" Event Viewer Custom View" section - Closed #37 - Removed "Uninstall all Xbox related UWP apps from all accounts" section because it's unnecassary - Removed "Show accent color on Start, taskbar, and action center" section - Closed #36 - Comments; - Minor changes ## Версия для Windows 10 2004 | 1903/1909 ## Обновлено - Обновлен раздел "Удалить Кортана из автозагрузки" - Обновлен раздел "Создать настаиваемое представление "Создание процесса" в Просмотре событий" - Закрыто #37 - Удален раздел "Удалить все UWP-приложения, связанные с Xbox, из всех учетных записей", так как он не - Удален раздел "Отображать цвет элементов в меню "Пуск", на панели задач и в центре уведомлений" - Закрыто #36 - Незначительные изменения
Commits on Jun 30, 2020
Commits on Jul 06, 2020
Unified
Split
Showing
with
524 additions
and 574 deletions.
- +50 −55 LTSC.ps1
- +16 −13 README.md
- +228 −252 Win 10 1903-1909.ps1
- +230 −254 Win 10 2004.ps1
| @@ -1,9 +1,9 @@ | ||
| <# | ||
| <# | ||
| .SYNOPSIS | ||
| "Windows 10 Setup Script" is a set of tweaks for OS fine-tuning and automating the routine tasks | ||
| Version: v4.4.3 | ||
| Date: 23.06.2020 | ||
| Version: v4.4.5 | ||
| Date: 02.07.2020 | ||
| Copyright (c) 2020 farag & oZ-Zo | ||
| Thanks to all http://forum.ru-board.com members involved | ||
| @@ -538,17 +538,6 @@ switch ($Result) | ||
| } | ||
| } | ||
|
|
||
| # Show accent color on Start, taskbar, and action center | ||
| # Отображать цвет элементов в меню "Пуск", на панели задач и в центре уведомлений | ||
| if ((Get-ItemPropertyValue -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name SystemUsesLightTheme) -ne 1) | ||
| { | ||
| New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name ColorPrevalence -PropertyType DWord -Value 1 -Force | ||
| } | ||
|
|
||
| # Show accent color on the title bars and window borders | ||
| # Отображать цвет элементов в заголовках окон и границ окон | ||
| New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\DWM -Name ColorPrevalence -PropertyType DWord -Value 1 -Force | ||
|
|
||
| # Do not show "New App Installed" notification | ||
| # Не показывать уведомление "Установлено новое приложение" | ||
| if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer)) | ||
| @@ -2267,57 +2256,63 @@ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows Security Health\State" | ||
| # Включить аудит событий, возникающих при создании или запуске процесса | ||
| auditpol /set /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /success:enable /failure:enable | ||
|
|
||
| # Include command line in process creation events | ||
| # Включать командную строку в событиях создания процесса | ||
| <# | ||
| Include command line in process creation events | ||
| In order this feature to work events auditing must be enabled | ||
| Включать командную строку в событиях создания процесса | ||
| Необходимо включить аудит событий, чтобы работала данная опция | ||
| #> | ||
| if ($RU) | ||
| { | ||
| $OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 | ||
| } | ||
| $ProcessCreation = auditpol /get /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /r | ConvertFrom-Csv | Select-Object -ExpandProperty "Inclusion Setting" | ||
| if ($ProcessCreation -ne "No Auditing") | ||
| { | ||
| New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -PropertyType DWord -Value 1 -Force | ||
| } | ||
| New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -PropertyType DWord -Value 1 -Force | ||
|
|
||
| # Create "Process Creation" Event Viewer Custom View | ||
| # Создать настаиваемое представление "Создание процесса" в Настраиваемых представлениях | ||
| <# | ||
| Create "Process Creation" Event Viewer Custom View | ||
| In order this feature to work events auditing and command line in process creation events must be enabled | ||
| Создать настаиваемое представление "Создание процесса" в Просмотре событий | ||
| Необходимо включить аудит событий и командную строку в событиях создания процесса, чтобы работала данная опция | ||
| #> | ||
| if ($RU) | ||
| { | ||
| $OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 | ||
| } | ||
| $ProcessCreation = auditpol /get /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /r | ConvertFrom-Csv | Select-Object -ExpandProperty "Inclusion Setting" | ||
| if ($ProcessCreation -ne "No Auditing") | ||
| { | ||
| $XMLfile = @" | ||
| <ViewerConfig> | ||
| <QueryConfig> | ||
| <QueryParams> | ||
| <UserQuery /> | ||
| </QueryParams> | ||
| <QueryNode> | ||
| <Name>Process Creation</Name> | ||
| <Description>Process Creation and Command-line Auditing Events</Description> | ||
| <QueryList> | ||
| <Query Id="0" Path="Security"> | ||
| <Select Path="Security">*[System[(EventID=4688)]]</Select> | ||
| </Query> | ||
| </QueryList> | ||
| </QueryNode> | ||
| </QueryConfig> | ||
| </ViewerConfig> | ||
| $XML = @" | ||
| <ViewerConfig> | ||
| <QueryConfig> | ||
| <QueryParams> | ||
| <UserQuery /> | ||
| </QueryParams> | ||
| <QueryNode> | ||
| <Name>Process Creation</Name> | ||
| <Description>Process Creation and Command-line Auditing Events</Description> | ||
| <QueryList> | ||
| <Query Id="0" Path="Security"> | ||
| <Select Path="Security">*[System[(EventID=4688)]]</Select> | ||
| </Query> | ||
| </QueryList> | ||
| </QueryNode> | ||
| </QueryConfig> | ||
| </ViewerConfig> | ||
| "@ | ||
| $ProcessCreationPath = "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" | ||
| # Saving ProcessCreation.xml in UTF-8 encoding | ||
| # Сохраняем ProcessCreation.xml в кодировке UTF-8 | ||
| Set-Content -Value (New-Object System.Text.UTF8Encoding).GetBytes($XMLfile) -Encoding Byte -Path $ProcessCreationPath -Force | ||
| if (-not (Test-Path -Path "$env:ProgramData\Microsoft\Event Viewer\Views")) | ||
| { | ||
| New-Item -Path "$env:ProgramData\Microsoft\Event Viewer\Views" -ItemType Directory -Force | ||
| } | ||
| $ProcessCreationFilePath = "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" | ||
| # Saving ProcessCreation.xml in UTF-8 encoding | ||
| # Сохраняем ProcessCreation.xml в кодировке UTF-8 | ||
| Set-Content -Value (New-Object System.Text.UTF8Encoding).GetBytes($XML) -Encoding Byte -Path $ProcessCreationFilePath -Force | ||
|
|
||
| if ($RU) | ||
| { | ||
| [xml]$XML = Get-Content -Path $ProcessCreationPath | ||
| $XML.ViewerConfig.QueryConfig.QueryNode.Name = "Создание процесса" | ||
| $XML.ViewerConfig.QueryConfig.QueryNode.Description = "События содания нового процесса и аудит командной строки" | ||
| $xml.Save("$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml") | ||
| } | ||
| if ($RU) | ||
| { | ||
| [xml]$XML = Get-Content -Path $ProcessCreationFilePath | ||
| $XML.ViewerConfig.QueryConfig.QueryNode.Name = "Создание процесса" | ||
| $XML.ViewerConfig.QueryConfig.QueryNode.Description = "События содания нового процесса и аудит командной строки" | ||
| $xml.Save("$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml") | ||
| } | ||
|
|
||
| # Turn on logging for all Windows PowerShell modules | ||
| @@ -2529,4 +2524,4 @@ if ($Error) | ||
| } | ||
| } | ||
| } | Sort-Object -Property Line | Format-Table -AutoSize -Wrap | Out-String).Trim() | ||
| } | ||
| } | ||
| @@ -9,11 +9,19 @@ | ||
| [](https://ko-fi.com/Q5Q51QUJC) | ||
| </div> | ||
|
|
||
| **Chris Titus Tech video about the script** | ||
| **Chris Titus Tech video** | ||
|
|
||
| [](https://youtu.be/8E6OT_QcHaU) | ||
| [](https://www.youtube.com/watch?v=8E6OT_QcHaU&t=370) | ||
|
|
||
| **Britec09 video** | ||
|
|
||
| [](https://youtu.be/WK_A9c-m2PQ) | ||
|
|
||
| ## FAQ | ||
|
|
||
| * Due to the fact that the script includes about 150 functions, you must read the entire script and comment out those sections that you do not want to be executed otherwise likely you will enable features that you do not want to be enabled. | ||
| * 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](https://github.com/farag2/Windows-10-Setup-Script/blob/298307bafee70b55ea00d9cba7a9e14ea6e4f5a4/Win%2010%202004.ps1#L2689) variable. You can read more on section "Create a Windows cleaning up task in the Task Scheduler". You might need to disable tamper protection from your antivirus settings,re-enable it after running the script, and reboot | ||
|
|
||
| ## Screenshots | ||
|
|
||
| @@ -69,14 +77,14 @@ To run the script: | ||
| - Download [up-to-date version](https://github.com/farag2/Setup-Windows-10/releases); | ||
| - Expand the archive; | ||
| - Check whether .ps1 is encoded in **UTF-8 with BOM**; | ||
| - Run .ps1 file via powershell.exe with elevated privileges; | ||
| - Set execution policy to be able to run scripts only in the current PowerShell session | ||
|
|
||
| ```powershell | ||
| - Set execution policy to be able to run scripts only in the current PowerShell session | ||
|
|
||
| ```powershell | ||
| Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force | ||
| ``` | ||
|
|
||
| - Or Start.cmd as Administrator. | ||
|
|
||
| - Run .ps1 file via powershell.exe with elevated privileges; | ||
| - or launch Start.cmd as Administrator. | ||
|
|
||
| ## Supported Windows 10 versions | ||
|
|
||
| @@ -87,11 +95,6 @@ To run the script: | ||
| | 1903 | 19H1 | May 2019 Update |18362 | x64 |Home/Pro/Enterprise| | ||
| | 1809 | |LTSC Enterprise 2019|17763 | x64 | Enterprise | | ||
|
|
||
| ## FAQ | ||
|
|
||
| * Due to the fact that the script includes about 150 functions, you should must the entire script and comment out those sections that you do not want to be execute otherwise likely you will enable features that you do not want to be enabled. | ||
| * Running the script is best done on a fresh install because running the script on tweaked system may result in occurring errors. | ||
|
|
||
| ## GUI version (C#) | ||
|
|
||
| Still cooking (moved to the private repository) | ||
Oops, something went wrong.