@@ -1341,11 +1341,6 @@ New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\
13411341# Отключить удаление кэша миниатюр
13421342New-ItemProperty - Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache" - Name Autorun - PropertyType DWord - Value 0 - Force
13431343New-ItemProperty - Path " HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Thumbnail Cache" - Name Autorun - PropertyType DWord - Value 0 - Force
1344- # Use Unicode UTF-8 for worldwide language support (beta)
1345- # Использовать Юникод (UTF-8) для поддержки языка во всем мире (бета-версия)
1346- New-ItemProperty - Path HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage - Name ACP - PropertyType String - Value 65001 - Force
1347- New-ItemProperty - Path HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage - Name MACCP - PropertyType String - Value 65001 - Force
1348- New-ItemProperty - Path HKLM:\SYSTEM\CurrentControlSet\Control\Nls\CodePage - Name OEMCP - PropertyType String - Value 65001 - Force
13491344# endregion System
13501345
13511346# region Start menu
@@ -1403,8 +1398,6 @@ IF ($OpenFileDialog.FileName)
14031398}
14041399else
14051400{
1406- # Unpin all Start menu tiles
1407- # Открепить все ярлыки от начального экрана
14081401 IF ($RU )
14091402 {
14101403 Write-Host " `n Чтобы открепить все ярлыки от начального экрана, введите букву: " - NoNewline
@@ -1430,9 +1423,25 @@ else
14301423 {
14311424 " Y"
14321425 {
1426+ # Unpin all Start menu tiles
1427+ # Открепить все ярлыки от начального экрана
14331428 $TileCollection = Get-ItemProperty - Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\* start.tilegrid`$ windows.data.curatedtilecollection.tilecollection\Current
14341429 $Value = $TileCollection.Data [0 .. 25 ] + ([byte []](202 , 50 , 0 , 226 , 44 , 1 , 1 , 0 , 0 ))
14351430 New-ItemProperty - Path $TileCollection.PSPath - Name Data - PropertyType Binary - Value $Value - Force
1431+ # Show "Explorer" and "Settings" folders on Start menu
1432+ # Отобразить папки "Проводник" и "Параметры" в меню "Пуск"
1433+ $items = @ (" File Explorer" , " Settings" )
1434+ $startmenu = Get-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\*windows.data.unifiedtile.startglobalproperties\Current"
1435+ $data = $startmenu.Data [0 .. 19 ] -join " ,"
1436+ $data += " ,203,50,10,$ ( $items.Length ) "
1437+ # Explorer
1438+ # Проводник
1439+ $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"
1440+ # Settings
1441+ # Параметры
1442+ $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"
1443+ $data += " ,194,60,1,194,70,1,197,90,1,0"
1444+ New-ItemProperty - Path $startmenu.PSPath - Name Data - PropertyType Binary - Value $data.Split (" ," ) - Force
14361445 }
14371446 Default
14381447 {
@@ -1458,20 +1467,6 @@ else
14581467 }
14591468 until ($Unpin -eq " Y" )
14601469}
1461- # Show "Explorer" and "Settings" folders on Start menu
1462- # Отобразить папки "Проводник" и "Параметры" в меню "Пуск"
1463- $items = @ (" File Explorer" , " Settings" )
1464- $startmenu = Get-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAccount\*windows.data.unifiedtile.startglobalproperties\Current"
1465- $data = $startmenu.Data [0 .. 19 ] -join " ,"
1466- $data += " ,203,50,10,$ ( $items.Length ) "
1467- # Explorer
1468- # Проводник
1469- $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"
1470- # Settings
1471- # Параметры
1472- $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"
1473- $data += " ,194,60,1,194,70,1,197,90,1,0"
1474- New-ItemProperty - Path $startmenu.PSPath - Name Data - PropertyType Binary - Value $data.Split (" ," ) - Force
14751470# Restart Start menu
14761471# Перезапустить меню "Пуск"
14771472Stop-Process - Name StartMenuExperienceHost - Force
@@ -1881,7 +1876,7 @@ else
18811876{
18821877 auditpol / set / subcategory:" Process Creation" / success:enable / failure:enable
18831878}
1884- # Include command line in progress creation events
1879+ # Include command line in process creation events
18851880# Включать командную строку в событиях создания процесса
18861881New-ItemProperty - Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Audit - Name ProcessCreationIncludeCmdLine_Enabled - PropertyType DWord - Value 1 - Force
18871882# Turn off SmartScreen for apps and files
0 commit comments