From f2369f5148634d300658b8bf69ae46fb843b1942 Mon Sep 17 00:00:00 2001 From: farag2 Date: Tue, 25 Feb 2020 15:29:31 +0300 Subject: [PATCH] 25.02.2020 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Updated - Removed "Use Unicode UTF-8 for worldwide language support (beta)" section due to instability. To recover execute ```powershell # Open Administrative Tab in Region cmd.exe --% /c control intl.cpl,,1 # Change system locale # Uncheck "Beta: Use Unicode UTF-8 for worldwide language support" # Restart PC ``` - Minor changes. ## Обновлено - Удален раздел "Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)" из-за ошибок. Чтобы восстановит, выполните ```powershell # Откройте вкладку дополнительно в разделе "Регион" cmd.exe --% /c control intl.cpl,,1 # Изменить язык системы # Снимете галочку с "Бета-версия: Использовать Юникод (UTF-8) для поддержки языка во всем мире" # Перезапустите ПК ``` - Незначительные изменения. --- Win 10.ps1 | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/Win 10.ps1 b/Win 10.ps1 index 33ade462..ac752177 100644 --- a/Win 10.ps1 +++ b/Win 10.ps1 @@ -1341,11 +1341,6 @@ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\ # Отключить удаление кэша миниатюр New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache" -Name Autorun -PropertyType DWord -Value 0 -Force New-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache" -Name Autorun -PropertyType DWord -Value 0 -Force -# Use Unicode UTF-8 for worldwide language support (beta) -# Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия) -New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage -Name ACP -PropertyType String -Value 65001 -Force -New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage -Name MACCP -PropertyType String -Value 65001 -Force -New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage -Name OEMCP -PropertyType String -Value 65001 -Force #endregion System #region Start menu @@ -1403,8 +1398,6 @@ IF ($OpenFileDialog.FileName) } else { - # Unpin all Start menu tiles - # Открепить все ярлыки от начального экрана IF ($RU) { Write-Host "`nЧтобы открепить все ярлыки от начального экрана, введите букву: " -NoNewline @@ -1430,9 +1423,25 @@ else { "Y" { + # Unpin all Start menu tiles + # Открепить все ярлыки от начального экрана $TileCollection = Get-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\*start.tilegrid`$windows.data.curatedtilecollection.tilecollection\Current $Value = $TileCollection.Data[0..25] + ([byte[]](202,50,0,226,44,1,1,0,0)) New-ItemProperty -Path $TileCollection.PSPath -Name Data -PropertyType Binary -Value $Value -Force + # Show "Explorer" and "Settings" folders on Start menu + # Отобразить папки "Проводник" и "Параметры" в меню "Пуск" + $items = @("File Explorer", "Settings") + $startmenu = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\*windows.data.unifiedtile.startglobalproperties\Current" + $data = $startmenu.Data[0..19] -join "," + $data += ",203,50,10,$($items.Length)" + # Explorer + # Проводник + $data += ",5,188,201,168,164,1,36,140,172,3,68,137,133,1,102,160,129,186,203,189,215,168,164,130,1,0" + # Settings + # Параметры + $data += ",5,134,145,204,147,5,36,170,163,1,68,195,132,1,102,159,247,157,177,135,203,209,172,212,1,0" + $data += ",194,60,1,194,70,1,197,90,1,0" + New-ItemProperty -Path $startmenu.PSPath -Name Data -PropertyType Binary -Value $data.Split(",") -Force } Default { @@ -1458,20 +1467,6 @@ else } until ($Unpin -eq "Y") } -# Show "Explorer" and "Settings" folders on Start menu -# Отобразить папки "Проводник" и "Параметры" в меню "Пуск" -$items = @("File Explorer", "Settings") -$startmenu = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\*windows.data.unifiedtile.startglobalproperties\Current" -$data = $startmenu.Data[0..19] -join "," -$data += ",203,50,10,$($items.Length)" -# Explorer -# Проводник -$data += ",5,188,201,168,164,1,36,140,172,3,68,137,133,1,102,160,129,186,203,189,215,168,164,130,1,0" -# Settings -# Параметры -$data += ",5,134,145,204,147,5,36,170,163,1,68,195,132,1,102,159,247,157,177,135,203,209,172,212,1,0" -$data += ",194,60,1,194,70,1,197,90,1,0" -New-ItemProperty -Path $startmenu.PSPath -Name Data -PropertyType Binary -Value $data.Split(",") -Force # Restart Start menu # Перезапустить меню "Пуск" Stop-Process -Name StartMenuExperienceHost -Force @@ -1881,7 +1876,7 @@ else { auditpol /set /subcategory:"Process Creation" /success:enable /failure:enable } -# Include command line in progress creation events +# Include command line in process creation events # Включать командную строку в событиях создания процесса New-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Audit -Name ProcessCreationIncludeCmdLine_Enabled -PropertyType DWord -Value 1 -Force # Turn off SmartScreen for apps and files