From 5ad42dbd2d2ab66e3b37a0c52d9fd15115d4991e Mon Sep 17 00:00:00 2001 From: farag2 Date: Sat, 16 May 2020 18:20:59 +0300 Subject: [PATCH] v4.2.1 16.05.2020 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Diff from v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/4.2...4.2.1 ## Updated - Now the form for removing capabilities and UWP apps will not be initialized if there are no elements for removal; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе "Описание"; - Added for the all tasks in the Task Scheduler a description displayed in the "Description" section; - Fixed bug in "Include command line in process creation events" section - Minor changes; - Thanks [4r0](http://forum.ru-board.com/profile.cgi?action=show&member=4r0) for found errors; - Also you can test [20H1 version](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). Отличия от v4.2 https://github.com/farag2/Windows-10-Setup-Script/compare/4.2...4.2.1 ## Обновлено - Теперь форма для удаления дополнительных компонентов и UWP-приложений не будет инициализироваться, если отсутствуют элементы для удаления; - Для всех задач в Планировщике задач добавил описание, отображаемых в разделе "Описание"; - Исправлена ошибка в разделе "Включать командную строку в событиях создания процесса" - Незначительные изменения; - Спасибо [4r0](http://forum.ru-board.com/profile.cgi?action=show&member=4r0) за найденные ошибки; - Также можете протестировать [версию 20H1](https://gist.github.com/farag2/5a6d9952247aefe42ba81a9d95507765). --- Win 10.ps1 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Win 10.ps1 b/Win 10.ps1 index 81073c4c..d903d22e 100644 --- a/Win 10.ps1 +++ b/Win 10.ps1 @@ -7,8 +7,9 @@ Tested on Home/Pro/Enterprise editions - Check whether file is encoded in UTF-8 with BOM. - PowerShell must be run with elevated privileges; + Check whether file is encoded in UTF-8 with BOM + The script can not be executed via PowerShell ISE + PowerShell must be run with elevated privileges Set PowerShell execution policy: Set-ExecutionPolicy -ExecutionPolicy Bypass -Force to be able to run .ps1 files. Read the code you run carefully. @@ -2066,12 +2067,12 @@ New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer #region UWP apps <# Uninstall UWP apps from all accounts -GUI with the ability to select the package to remove +A form with the ability to select the package to remove App packages will not be installed when new user accounts are created Add UWP apps packages names to the $UnchekedAppXPackages array list by retrieving their packages names with (Get-AppxPackage -PackageTypeFilter Bundle -AllUsers).Name command Удалить UWP-приложения из всех учетных записей -GUI с возможностью выбрать пакет для удаления +Форма с возможностью выбрать пакет для удаления Приложения не будут установлены при создании новых учетных записей Добавьте имена пакетов UWP-приложений в массив $UnchekedAppXPackages, получив названия их пакетов с помощью команды (Get-AppxPackage -PackageTypeFilter Bundle -AllUsers).Name #> @@ -2924,8 +2925,8 @@ auditpol /set /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /success:ena # Include command line in process creation events # Включать командную строку в событиях создания процесса -$ProcessCreation = auditpol /get /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /r | ConvertFrom-Csv | Select-Object -ExpandProperty "Inclusion Setting" -if ($ProcessCreation."Inclusion Setting" -ne "No Auditing") +$ProcessCreation = auditpol /get /subcategory:"{0CCE922B-69AE-11D9-BED3-505054503030}" /r | ConvertFrom-Csv | Select-Object -Property "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 }