@ -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\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
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
#endregion System
#region Start menu
#region Start menu
@ -1403,8 +1398,6 @@ IF ($OpenFileDialog.FileName)
}
}
else
else
{
{
# Unpin all Start menu tiles
# Открепить все ярлыки от начального экрана
IF ( $RU )
IF ( $RU )
{
{
Write-Host " `n Чтобы открепить все ярлыки от начального экрана, введите букву: " -NoNewline
Write-Host " `n Чтобы открепить все ярлыки от начального экрана, введите букву: " -NoNewline
@ -1430,9 +1423,25 @@ else
{
{
" Y "
" 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
$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 ) )
$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
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
Default
{
{
@ -1458,20 +1467,6 @@ else
}
}
until ( $Unpin -eq " Y " )
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
# Restart Start menu
# Перезапустить меню "Пуск"
# Перезапустить меню "Пуск"
Stop-Process -Name StartMenuExperienceHost -Force
Stop-Process -Name StartMenuExperienceHost -Force
@ -1881,7 +1876,7 @@ else
{
{
auditpol / set / subcategory : " Process Creation " / success : enable / failure : enable
auditpol / set / subcategory : " Process Creation " / success : enable / failure : enable
}
}
# Include command line in progr ess creation events
# Include command line in proc ess creation events
# Включать командную строку в событиях создания процесса
# Включать командную строку в событиях создания процесса
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
# Turn off SmartScreen for apps and files
# Turn off SmartScreen for apps and files