Browse Source

v4.2.1 16.05.2020

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).
pull/23/head 4.2.1
farag2 4 years ago
committed by GitHub
parent
commit
5ad42dbd2d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      Win 10.ps1

13
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
}

Loading…
Cancel
Save