{"id":293976,"date":"2019-08-28T21:00:18","date_gmt":"2019-08-28T21:00:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=293976"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=293976","title":{"rendered":"\u0421\u043a\u0440\u0438\u043f\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Windows 10"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0414\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Windows 10 (\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f 18362), \u0434\u0430 \u0432\u0441\u0435 \u0440\u0443\u043a\u0438 \u043d\u0435 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u0438. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u0438.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0443\u043d\u043a\u0442\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0442\u043e \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043a\u0430\u0442.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h3>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u0414\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Windows 10, \u0434\u0430 \u0432\u0441\u0435 \u0440\u0443\u043a\u0438 \u043d\u0435 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u0438. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u0438.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0443\u043d\u043a\u0442\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435:<\/p>\n<h3>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u044b \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f<\/li>\n<li>\u041c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0442\u0432\u0438\u043a\u043e\u0432 \u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430<\/li>\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0436\u0438\u043c Windows \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/li>\n<li>\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/li>\n<li>\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0443\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 $env:SystemDrive\\Temp<\/li>\n<li>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 BSoD<\/li>\n<li>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c Windows Defender SmartScreen \u0432 Microsoft Edge<\/li>\n<li>\u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 Ethernet-\u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0446\u0438\u043e\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u041f\u041a<\/li>\n<li>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 UWP-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u0432\u0441\u0435\u0445 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043a\u0440\u043e\u043c\u0435<\/li>\n<li>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 UWP-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u0440\u043e\u043c\u0435<\/li>\n<li>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b<\/li>\n<li>\u0423\u0434\u0430\u043b\u0438\u0442\u044c OneDrive<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u0430<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e \u043e\u0447\u0438\u0441\u0442\u043a\u0435 \u043f\u0430\u043f\u043a\u0438 &quot;$env:SystemRoot\\SoftwareDistribution\\Download&quot;<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u0430\u043f\u043a\u0438 $env:TEMP<\/li>\n<li>\u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043a\u0440\u043e\u043c\u0435<\/li>\n<li>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0430\u043f\u043a\u0430\u043c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u043f\u043a\u0438<\/li>\n<li>\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0441\u043b\u0443\u0436\u0431\u044b<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u044f\u0440\u043b\u044b\u043a \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0434\u043b\u044f \u00ab\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u044b\u00bb<\/li>\n<li>\u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0430\u043f\u043e\u043a \u00ab\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b\u00bb, \u00ab\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b\u00bb, \u00ab\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0438\u00bb, \u00ab\u041c\u0443\u0437\u044b\u043a\u0430\u00bb, \u00ab\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u00bb, \u00ab\u0412\u0438\u0434\u0435\u043e\u00bb<\/li>\n<li>\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0438 \u043f\u0430\u043d\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u00ab\u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430\u00bb<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>\u0421\u043a\u0440\u0438\u043f\u0442<\/h3>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043a\u0440\u044b\u0442\u044b\u0439 \u0442\u0435\u043a\u0441\u0442<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\"># Remove all text from the current display # \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d Clear-Host # \u0421lear $Error variable # \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 $Error $Error.Clear() # Get information about the current culture settings # \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u044b IF ((Get-Culture).Name -eq &quot;ru-RU&quot;) { \t$RU = $true } # Turn off diagnostics tracking services # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043b\u0443\u0436\u0431\u044b \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f $services = @( \t# Connected Devices Platform service \t# \u0421\u043b\u0443\u0436\u0431\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \t&quot;CDPSvc&quot;, \t# Connected User Experiences and Telemetry \t# \u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0442\u0435\u043b\u0435\u043c\u0435\u0442\u0440\u0438\u044f \t&quot;DiagTrack&quot;, \t# Data Usage \t# \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \t&quot;DusmSvc&quot;, \t# SSDP Discovery \t# \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 SSDP \t&quot;SSDPSRV&quot; ) Get-Service -Name $services | Stop-Service -Force Get-Service -Name $services | Set-Service -StartupType Disabled # Turn off the Autologger session at the next computer restart # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u0449\u0438\u043a AutoLogger \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u041f\u041a Update-AutologgerConfig -Name AutoLogger-Diagtrack-Listener -Start 0 # Turn off the SQMLogger session at the next computer restart # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u0449\u0438\u043a SQMLogger \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u041f\u041a Update-AutologgerConfig -Name SQMLogger -Start 0 # Set the operating system diagnostic data level to &quot;Basic&quot; # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0445 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043d\u0430 &quot;\u0411\u0430\u0437\u043e\u0432\u044b\u0439&quot; New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection -Name AllowTelemetry -Value 1 -Force # Turn off Windows Error Reporting # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u044b \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445 Windows \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 New-ItemProperty -Path &quot;HKLM:\\Software\\Microsoft\\Windows\\Windows Error Reporting&quot; -Name Disabled -Value 1 -Force # Change Windows Feedback frequency to &quot;Never&quot; # \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u043e\u0442\u0443 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0437\u044b\u0432\u043e\u0432 \u043d\u0430 &quot;\u041d\u0438\u043a\u043e\u0433\u0434\u0430&quot; IF (-not (Test-Path -Path HKCU:\\Software\\Microsoft\\Siuf\\Rules)) { \tNew-Item -Path HKCU:\\Software\\Microsoft\\Siuf\\Rules -Force } New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Siuf\\Rules -Name NumberOfSIUFInPeriod -Value 0 -Force # Turn off diagnostics tracking scheduled tasks # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0438 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u044f $tasks = @( \t&quot;ProgramDataUpdater&quot;, \t&quot;Microsoft Compatibility Appraiser&quot;, \t&quot;Microsoft-Windows-DiskDiagnosticDataCollector&quot;, \t&quot;TempSignedLicenseExchange&quot;, \t&quot;MapsToastTask&quot;, \t&quot;DmClient&quot;, \t&quot;FODCleanupTask&quot;, \t&quot;DmClientOnScenarioDownload&quot;, \t&quot;BgTaskRegistrationMaintenanceTask&quot;, \t&quot;File History (maintenance mode)&quot;, \t&quot;WinSAT&quot;, \t&quot;UsbCeip&quot;, \t&quot;Consolidator&quot;, \t&quot;Proxy&quot;, \t&quot;MNO Metadata Parser&quot;, \t&quot;NetworkStateChangeTask&quot;, \t&quot;GatherNetworkInfo&quot;, \t&quot;XblGameSaveTask&quot;, \t&quot;EnableLicenseAcquisition&quot;, \t&quot;QueueReporting&quot;, \t&quot;FamilySafetyMonitor&quot;, \t&quot;FamilySafetyRefreshTask&quot; ) Get-ScheduledTask -TaskName $tasks | Disable-ScheduledTask # Turn off &quot;The Windows Filtering Platform has blocked a connection&quot; message # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432 &quot;\u0416\u0443\u0440\u043d\u0430\u043b\u0430\u0445 Windows\/\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c&quot; \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 &quot;\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 IP-\u043f\u0430\u043a\u0435\u0442\u043e\u0432 Windows \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043b\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435&quot; auditpol \/set \/subcategory:&quot;{0CCE9226-69AE-11D9-BED3-505054503030}&quot; \/success:disable \/failure:disable # Set File Explorer to open to This PC by default # \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c &quot;\u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440&quot; \u0432 \u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0435 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name LaunchTo -Value 1 -Force # Show Hidden Files, Folders, and Drives # \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u044b\u0442\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043f\u0430\u043f\u043a\u0438 \u0438 \u0434\u0438\u0441\u043a\u0438 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name Hidden -Value 1 -Force # Show File Name Extensions # \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0444\u0430\u0439\u043b\u043e\u0432 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name HideFileExt -Value 0 -Force # Hide Task View button on taskbar # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0437\u0430\u0434\u0430\u0447 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name ShowTaskViewButton -Value 0 -Force # Show folder merge conflicts # \u041d\u0435 \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442 \u0441\u043b\u0438\u044f\u043d\u0438\u044f \u043f\u0430\u043f\u043e\u043a New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name HideMergeConflicts -Value 0 -Force # Turn off Snap Assist # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0438 \u043e\u043a\u043d\u0430, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0440\u044f\u0434\u043e\u043c \u0441 \u043d\u0438\u043c New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name SnapAssist -Value 0 -Force # Turn off check boxes to select items # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0444\u043b\u0430\u0436\u043a\u0438 \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name AutoCheckSelect -Value 0 -Force # Show seconds on taskbar clock # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0435\u043a\u0443\u043d\u0434 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0447\u0430\u0441\u0430\u0445 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0437\u0430\u0434\u0430\u0447 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name ShowSecondsInSystemClock -Value 1 -Force # Hide People button on the taskbar # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u0430\u043d\u0435\u043b\u044c &quot;\u041b\u044e\u0434\u0438&quot; \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0437\u0430\u0434\u0430\u0447 IF (-not (Test-Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\People)) { \tNew-Item -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\People -Force } New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\People -Name PeopleBand -Value 0 -Force # Hide all folders in the navigation pane # \u041d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0430\u043f\u043a\u0438 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name NavPaneShowAllFolders -Value 0 -Force # Turn on acrylic taskbar transparency # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0447 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name UseOLEDTaskbarTransparency -Value 1 -Force # Turn off app launch tracking to improve Start menu and search results # \u041d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c Windows \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u0430 \u0438 \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name Start_TrackProgs -Value 0 -Force # \u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c &quot;\u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440&quot; \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\HideDesktopIcons\\NewStartPanel -Name &quot;{20D04FE0-3AEA-1069-A2D8-08002B30309D}&quot; -Value 0 -Force # Show more details in file transfer dialog # \u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0434\u0438\u0430\u043b\u043e\u0433 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0444\u0430\u0439\u043b\u043e\u0432 IF (-not (Test-Path -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\OperationStatusManager)) { \tNew-Item -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\OperationStatusManager -Force } New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\OperationStatusManager -Name EnthusiastMode -Value 1 -Force # Turn off AutoPlay for all media and devices # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435\u0439 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\AutoplayHandlers -Name DisableAutoplay -Value 1 -Force # Turn off the &quot;- Shortcut&quot; name extension for new shortcuts # He \u0434o\u0431a\u0432\u043b\u044f\u0442\u044c &quot;- \u044fp\u043b\u044b\u043a&quot; \u0434\u043b\u044f co\u0437\u0434a\u0432ae\u043c\u044bx \u044fp\u043b\u044b\u043ao\u0432 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name link -PropertyType Binary -Value ([byte[]](00, 00, 00, 00)) -Force # Turn off SmartScreen for apps and files # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c SmartScreen \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name SmartScreenEnabled -PropertyType String -Value Off -Force # Remove the &quot;Previous Versions&quot; tab from properties context menu # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 &quot;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438&quot; \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u0430\u043f\u043e\u043a New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name NoPreviousVersionsPage -Value 1 -Force # Always show all icons in the notification area # \u0412\u0441\u0435\u0433\u0434\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u043a\u0438 \u0432 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name EnableAutoTray -Value 0 -Force # Set the Control Panel view by large icons # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u043a\u0438 \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f IF (-not (Test-Path -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel)) { \tNew-Item -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel -Force } New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel -Name AllItemsIconView -Value 0 -Force New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\ControlPanel -Name StartupPage -Value 1 -Force # Remove 3D Objects folder in &quot;This PC&quot; and in the navigation pane # \u0421\u043a\u0440\u044b\u0442\u044c \u043f\u0430\u043f\u043a\u0443 &quot;\u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b&quot; \u0438\u0437 &quot;\u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440&quot; \u0438 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 IF (-not (Test-Path -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\\PropertyBag&quot;)) { \tNew-Item -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\\PropertyBag&quot; -Force } New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\\PropertyBag&quot; -Name ThisPCPolicy -PropertyType String -Value Hide -Force # Make the &quot;Open&quot;, &quot;Print&quot;, &quot;Edit&quot; context menu items available, when more than 15 selected # \u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e &quot;\u041e\u0442\u043a\u0440\u044b\u0442\u044c&quot;, &quot;\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c&quot; \u0438 &quot;\u041f\u0435\u0447\u0430\u0442\u044c&quot; \u043f\u0440\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u0431\u043e\u043b\u0435\u0435 15 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name MultipleInvokePromptMinimum -Value 300 -Force # Hide &quot;Frequent folders&quot; in Quick access # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043f\u0430\u043f\u043a\u0438 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name ShowFrequent -Value 0 -Force # Hide &quot;Recent files&quot; in Quick access # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432\u0448\u0438\u0435\u0441\u044f \u0444\u0430\u0439\u043b\u044b \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name ShowRecent -Value 0 -Force # Turn off creation of an Edge shortcut on the desktop for each user profile # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u044f\u0440\u043b\u044b\u043a\u0430 Edge \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer -Name DisableEdgeDesktopShortcutCreation -Value 1 -Force # Turn on tip, trick, and suggestions as you use Windows # \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u043e\u0432\u0435\u0442\u044b, \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e Windows New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager -Name SubscribedContent-338389Enabled -Value 1 -Force # Turn on Storage Sense to automatically free up space # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u041f\u0430\u043c\u044f\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043c\u0435\u0441\u0442\u0430 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy -Name 01 -Value 1 -Force # Run Storage Sense every month # \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u0435\u0441\u044f\u0446 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy -Name 2048 -Value 30 -Force # Delete temporary files that apps aren't using # \u0423\u0434\u0430\u043b\u044f\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b, \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy -Name 04 -Value 1 -Force # Delete files in recycle bin if they have been there for over 30 days # \u0423\u0434\u0430\u043b\u044f\u0442\u044c \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 30 \u0434\u043d\u0435\u0439 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy -Name 256 -Value 30 -Force # Never delete files in &quot;Downloads&quot; folder # \u041d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 &quot;\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0438&quot; New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy -Name 512 -Value 0 -Force # Turn off app suggestions on Start menu # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0432 \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager -Name SubscribedContent-338388Enabled -Value 0 -Force # Turn off suggested content in the Settings # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u043e\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 &quot;\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b&quot; New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager -Name SubscribedContent-338393Enabled -Value 0 -Force New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager -Name SubscribedContent-353694Enabled -Value 0 -Force New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager -Name SubscribedContent-353696Enabled -Value 0 -Force # Turn off automatic installing suggested apps # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager -Name SilentInstalledAppsEnabled -Value 0 -Force # Hide &quot;Windows Ink Workspace&quot; button in taskbar # \u0421\u043a\u0440\u044b\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 Windows Ink Workspace \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0437\u0430\u0434\u0430\u0447 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\PenWorkspace -Name PenWorkspaceButtonDesiredVisibility -Value 0 -Force # Do not offer tailored experiences based on the diagnostic data setting # \u041d\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0442\u044c \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Privacy -Name TailoredExperiencesWithDiagnosticDataEnabled -Value 0 -Force # Do not let apps on other devices open and message apps on this device, and vice versa # \u041d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u0438 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\CDP -Name RomeSdkChannelUserAuthzPolicy -Value 0 -Force # Choose theme color for default Windows mode # \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0436\u0438\u043c Windows \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e IF ($RU) { \tWrite-Host &quot;`n\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c Windows \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0432\u0432\u0435\u0434\u044f \u0431\u0443\u043a\u0432\u0443: &quot; \tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;\u0434\u043b\u044f \u0441\u0432\u0435\u0442\u043b\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0438\u043b\u0438 &quot; -NoNewline \tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;\u0434\u043b\u044f \u0442\u0451\u043c\u043d\u043e\u0433\u043e.&quot; \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nChoose theme color for default Windows mode by typing&quot; \tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;for the light mode or &quot; -NoNewline \tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;for the dark&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$theme = Read-Host -Prompt &quot; &quot; \tIF ($theme -eq &quot;L&quot;) \t{ \t\t# Show color only on taskbar \t\t# \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0437\u0430\u0434\u0430\u0447 \t\tNew-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize -Name ColorPrevalence -Value 0 -Force \t\t# Light Theme Color for Default Windows Mode \t\t# \u0420\u0435\u0436\u0438\u043c Windows \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0432\u0435\u0442\u043b\u044b\u0439 \t\tNew-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize -Name SystemUsesLightTheme -Value 1 -Force \t} \telseif ($theme -eq &quot;D&quot;) \t{ \t\t# Turn on the display of color on Start menu, taskbar, and action center \t\t# \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot;, \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0437\u0430\u0434\u0430\u0447 \u0438 \u0432 \u0446\u0435\u043d\u0442\u0440\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \t\tNew-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize -Name ColorPrevalence -Value 1 -Force \t\t# Dark Theme Color for Default Windows Mode \t\t# \u0420\u0435\u0436\u0438\u043c Windows \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u0435\u043c\u043d\u044b\u0439 \t\tNew-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize -Name SystemUsesLightTheme -Value 0 -Force \t} \telseif ([string]::IsNullOrEmpty($theme)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u0431\u0443\u043a\u0432\u0430.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0431\u0443\u043a\u0432\u0443: &quot; -NoNewline \t\t\tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0434\u043b\u044f \u0441\u0432\u0435\u0442\u043b\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0438\u043b\u0438 &quot; -NoNewline \t\t\tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0434\u043b\u044f \u0442\u0451\u043c\u043d\u043e\u0433\u043e.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;`nInvalid letter.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;Type the correct letter: &quot; -NoNewline \t\t\tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;for the light mode or &quot; -NoNewline \t\t\tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;for the dark.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($theme -eq &quot;L&quot; -or $theme -eq &quot;D&quot;) # Choose theme color for default app mode # \u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e IF ($RU) { \tWrite-Host &quot;`n\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0432\u0432\u0435\u0434\u044f \u0431\u0443\u043a\u0432\u0443: &quot; \tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;\u0434\u043b\u044f \u0441\u0432\u0435\u0442\u043b\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0438\u043b\u0438 &quot; -NoNewline \tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;\u0434\u043b\u044f \u0442\u0451\u043c\u043d\u043e\u0433\u043e.&quot; \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nChoose theme color for default app mode by typing&quot; \tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;for the light mode or &quot; -NoNewline \tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;for the dark&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$theme = Read-Host -Prompt &quot; &quot; \tIF ($theme -eq &quot;L&quot;) \t{ \t\t# Light theme color for default app mode \t\t# \u0420\u0435\u0436\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0432\u0435\u0442\u043b\u044b\u0439 \t\tNew-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize -Name AppsUseLightTheme -Value 1 -Force \t} \tIF ($theme -eq &quot;D&quot;) \t{ \t\t# Dark theme color for default app mode \t\t# \u0420\u0435\u0436\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u0435\u043c\u043d\u044b\u0439 \t\tNew-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize -Name AppsUseLightTheme -Value 0 -Force \t} \telseif ([string]::IsNullOrEmpty($theme)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u0431\u0443\u043a\u0432\u0430.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0443\u044e \u0431\u0443\u043a\u0432\u0443: &quot; -NoNewline \t\t\tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0434\u043b\u044f \u0441\u0432\u0435\u0442\u043b\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0438\u043b\u0438 &quot; -NoNewline \t\t\tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0434\u043b\u044f \u0442\u0451\u043c\u043d\u043e\u0433\u043e.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;`nInvalid letter.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;Type the correct letter: &quot; -NoNewline \t\t\tWrite-Host &quot;[L]ight &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;for the light mode or &quot; -NoNewline \t\t\tWrite-Host &quot;[D]ark &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;for the dark.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($theme -eq &quot;L&quot; -or $theme -eq &quot;D&quot;) # Turn off location for this device # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\location -Name Value -PropertyType String -Value Deny -Force # Turn off thumbnail cache removal # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435 \u043a\u044d\u0448\u0430 \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440 New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VolumeCaches\\Thumbnail Cache&quot; -Name Autorun -Value 0 -Force New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VolumeCaches\\Thumbnail Cache&quot; -Name Autorun -Value 0 -Force # Turn off hibernate # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u044b\u0439 \u0441\u043f\u044f\u0449\u0438\u0439 \u0440\u0435\u0436\u0438\u043c New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power -Name HibernateEnabled -Value 0 -Force # Change environment variable for $env:TEMP to $env:SystemDrive\\Temp # \u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0443\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u043d\u0430 $env:SystemDrive\\Temp IF (-not (Test-Path -Path $env:SystemDrive\\Temp)) { \tNew-Item -Path $env:SystemDrive\\Temp -ItemType Directory -Force } [Environment]::SetEnvironmentVariable(&quot;TMP&quot;, &quot;$env:SystemDrive\\Temp&quot;, &quot;User&quot;) New-ItemProperty -Path HKCU:\\Environment -Name TMP -PropertyType ExpandString -Value %SystemDrive%\\Temp -Force [Environment]::SetEnvironmentVariable(&quot;TEMP&quot;, &quot;$env:SystemDrive\\Temp&quot;, &quot;User&quot;) New-ItemProperty -Path HKCU:\\Environment -Name TEMP -PropertyType ExpandString -Value %SystemDrive%\\Temp -Force [Environment]::SetEnvironmentVariable(&quot;TMP&quot;, &quot;$env:SystemDrive\\Temp&quot;, &quot;Machine&quot;) New-ItemProperty -Path &quot;HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment&quot; -Name TMP -PropertyType ExpandString -Value %SystemDrive%\\Temp -Force [Environment]::SetEnvironmentVariable(&quot;TEMP&quot;, &quot;$env:SystemDrive\\Temp&quot;, &quot;Machine&quot;) New-ItemProperty -Path &quot;HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment&quot; -Name TEMP -PropertyType ExpandString -Value %SystemDrive%\\Temp -Force [Environment]::SetEnvironmentVariable(&quot;TMP&quot;, &quot;$env:SystemDrive\\Temp&quot;, &quot;Process&quot;) [Environment]::SetEnvironmentVariable(&quot;TEMP&quot;, &quot;$env:SystemDrive\\Temp&quot;, &quot;Process&quot;) # Turn on Win32 long paths # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u0438\u043d\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 Win32 New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem -Name LongPathsEnabled -Value 1 -Force # Group svchost.exe processes # \u0413\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0441\u043b\u0443\u0436\u0431\u044b \u0432 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0446\u0435\u0441\u0441 svhost.exe $ram = (Get-CimInstance -ClassName Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum \/ 1kb New-ItemProperty -Path HKLM:\\SYSTEM\\CurrentControlSet\\Control -Name SvcHostSplitThresholdInKB -Value $ram -Force # Turn on Retpoline patch against Spectre v2 # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0430\u0442\u0447 Retpoline \u043f\u0440\u043e\u0442\u0438\u0432 Spectre v2 New-ItemProperty -Path &quot;HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management&quot; -Name FeatureSettingsOverride -Value 1024 -Force New-ItemProperty -Path &quot;HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management&quot; -Name FeatureSettingsOverrideMask -Value 1024 -Force # Turn on the display of stop error information on the BSoD # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u0440\u0438 \u0432\u044b\u0432\u043e\u0434\u0435 BSoD New-ItemProperty -Path HKLM:\\System\\CurrentControlSet\\Control\\CrashControl -Name DisplayParameters -Value 1 -Force # Hide search box or search icon on taskbar # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u0438\u0441\u043a\u0430 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search -Name SearchboxTaskbarMode -Value 0 -Force # Turn on recycle bin files delete confirmation # \u0417\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 \u043a\u043e\u0440\u0437\u0438\u043d\u044b IF (-not (Test-Path -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer)) { \tNew-Item -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer -Force } New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer -Name ConfirmFileDelete -Value 1 -Force # Do not preserve zone information # \u041d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u0437\u043e\u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 IF (-not (Test-Path -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments)) { \tNew-Item -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments -Force } New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments -Name SaveZoneInformation -Value 1 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\Attachments -Name SaveZoneInformation -Value 1 -Force # Turn off Admin Approval Mode for administrators # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0436\u0438\u043c\u0430 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name ConsentPromptBehaviorAdmin -Value 0 -Force # Turn off user first sign-in animation # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u0445\u043e\u0434\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name EnableFirstLogonAnimation -Value 0 -Force # Turn on access to mapped drives from app running with elevated permissions with Admin Approval Mode enabled # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u0435\u0442\u0435\u0432\u044b\u043c \u0434\u0438\u0441\u043a\u0430\u043c \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043e\u0434\u043e\u0431\u0440\u0435\u043d\u0438\u044f \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u0438\u0437 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System -Name EnableLinkedConnections -Value 1 -Force # Turn off &quot;Look for an app in the Microsoft Store&quot; in &quot;Open with&quot; dialog # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0432 Microsoft Store \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0434\u0438\u0430\u043b\u043e\u0433\u0430 &quot;\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e&quot; IF (-not (Test-Path -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer)) { \tNew-Item -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer -Force } New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer -Name NoUseStoreOpenWith -Value 1 -Force # Turn on ribbon in File Explorer # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043b\u0435\u043d\u0442\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430 \u0432 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u043e\u043c \u0432\u0438\u0434\u0435 IF (-not (Test-Path -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Ribbon)) { \tNew-Item -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Ribbon -Force } New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Ribbon -Name MinimizedStateTabletModeOff -Value 0 -Force # Turn off &quot;New App Installed&quot; notification # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 &quot;\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e \u043d\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435&quot; New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer -Name NoNewAppAlert -Value 1 -Force # Turn off recently added apps on Start Menu # \u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer -Name HideRecentlyAddedApps -Value 1 -Force # Turn off Windows Game Recording and Broadcasting # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0417\u0430\u043f\u0438\u0441\u044c \u0438 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0438\u0433\u0440 Windows IF (-not (Test-Path -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR)) { \tNew-Item -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR -Force } New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR -Name AllowgameDVR -Value 0 -Force # Set download mode for delivery optization on &quot;HTTP only&quot; # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u041f\u041a Get-Service -Name DoSvc | Stop-Service -Force IF (-not (Test-Path -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeliveryOptimization)) { \tNew-Item -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeliveryOptimization -Force } New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeliveryOptimization -Name DODownloadMode -Value 0 -Force # Always wait for the network at computer startup and logon # \u0412\u0441\u0435\u0433\u0434\u0430 \u0436\u0434\u0430\u0442\u044c \u0441\u0435\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438 \u0432\u0445\u043e\u0434\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 IF (-not (Test-Path -Path &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon&quot;)) { \tNew-Item -Path &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon&quot; -Force } New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon&quot; -Name SyncForegroundPolicy -Value 1 -Force # Do not allow apps to use advertising ID # \u041d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0440\u0435\u043a\u043b\u0430\u043c\u044b New-ItemProperty -Path HKLM:\\Software\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo -Name Enabled -Value 0 -Force # Turn off Cortana # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c Cortana IF (-not $RU) { \tIF (-not (Test-Path -Path &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search&quot;)) \t{ \t\tNew-Item -Path &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search&quot; -Force \t} \tNew-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Search&quot; -Name AllowCortana -Value 0 -Force } # Turn off Windows Defender SmartScreen for Microsoft Edge # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c Windows Defender SmartScreen \u0432 Microsoft Edge $edge = (Get-AppxPackage &quot;Microsoft.MicrosoftEdge&quot;).PackageFamilyName IF (-not (Test-Path -Path &quot;HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$edge\\MicrosoftEdge\\PhishingFilter&quot;)) { \tNew-Item -Path &quot;HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$edge\\MicrosoftEdge\\PhishingFilter&quot; -Force } New-ItemProperty -Path &quot;HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$edge\\MicrosoftEdge\\PhishingFilter&quot; -Name EnabledV9 -Value 0 -Force New-ItemProperty -Path &quot;HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$edge\\MicrosoftEdge\\PhishingFilter&quot; -Name PreventOverride -Value 0 -Force # Do not allow Microsoft Edge to start and load the Start and New Tab page at Windows startup and each time Microsoft Edge is closed # \u041d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c Edge \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 Windows \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 Edge IF (-not (Test-Path -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\TabPreloader)) { \tNew-Item -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\TabPreloader -Force } New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\TabPreloader -Name AllowTabPreloading -Value 0 -Force # Do not allow Microsoft Edge to pre-launch at Windows startup, when the system is idle, and each time Microsoft Edge is closed # \u041d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0442\u044c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a Edge \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 Windows, \u043a\u043e\u0433\u0434\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u0438\u0432\u0430\u0435\u0442, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 Edge IF (-not (Test-Path -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\Main)) { \tNew-Item -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\Main -Force } New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\MicrosoftEdge\\Main -Name AllowPrelaunch -Value 0 -Force # Do not allow Windows 10 to manage default printer # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b Windows 10 New-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows&quot; -Name LegacyDefaultPrinterMode -Value 1 -Force # Turn off JPEG desktop wallpaper import quality reduction # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0444\u043e\u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430 \u043d\u0430 100 % New-ItemProperty -Path &quot;HKCU:\\Control Panel\\Desktop&quot; -Name JPEGImportQuality -Value 100 -Force # Turn off sticky Shift key after pressing 5 times # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u043b\u0438\u043f\u0430\u043d\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438 Shift \u043f\u043e\u0441\u043b\u0435 5 \u043d\u0430\u0436\u0430\u0442\u0438\u0439 New-ItemProperty -Path &quot;HKCU:\\Control Panel\\Accessibility\\StickyKeys&quot; -Name Flags -PropertyType String -Value 506 -Force # Uninstall all UWP apps from all accounts except # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 UWP-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u0432\u0441\u0435\u0445 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043a\u0440\u043e\u043c\u0435 $ExcludedApps = @( \t# iTunes \t&quot;AppleInc.iTunes&quot; \t# Intel UWP-panel \t# UWP-\u043f\u0430\u043d\u0435\u043b\u044c Intel \t&quot;AppUp.IntelGraphicsControlPanel&quot; \t&quot;AppUp.IntelGraphicsExperience&quot; \t# Microsoft Desktop App Installer \t&quot;Microsoft.DesktopAppInstaller&quot; \t# Extensions \t# \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \t&quot;Microsoft.*Extension*&quot; \t# Language pack \t# \u042f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 \t&quot;Microsoft.LanguageExperiencePack*&quot; \t# Screen Sketch \t# \u041d\u0430\u0431\u0440\u043e\u0441\u043e\u043a \u043d\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0435 \u044d\u043a\u0440\u0430\u043d\u0430 \t&quot;Microsoft.ScreenSketch&quot; \t# Photos \t# \u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438 \t&quot;Microsoft.Windows.Photos&quot; \t# Start \t# \u041c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; \t&quot;Microsoft.Windows.StartMenuExperienceHost&quot; \t# NVIDIA Control Panel \t# \u041f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f NVidia \t&quot;NVIDIACorp.NVIDIAControlPanel&quot; \t# Microsoft Store \t&quot;.*Store.*&quot; ) $OFS = &quot;|&quot; Get-AppxPackage -PackageTypeFilter Bundle -AllUsers | Where-Object {$_.Name -cnotmatch $ExcludedApps} | Remove-AppxPackage -AllUsers $OFS = &quot; &quot; # Uninstall all UWP apps from all accounts except # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 UWP-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0438\u0437 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u043a\u0440\u043e\u043c\u0435 $ExcludedApps = @( \t# Intel UWP-panel \t# UWP-\u043f\u0430\u043d\u0435\u043b\u044c Intel \t&quot;AppUp.IntelGraphicsControlPanel&quot; \t&quot;AppUp.IntelGraphicsExperience&quot; \t# Microsoft Desktop App Installer \t&quot;Microsoft.DesktopAppInstaller&quot; \t# Extensions \t# \u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \t&quot;Microsoft.*Extension*&quot; \t# NVIDIA Control Panel \t# \u041f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f NVidia \t&quot;NVIDIACorp.NVIDIAControlPanel&quot; \t# Microsoft Store \t&quot;.*Store.*&quot; ) $OFS = &quot;|&quot; Get-AppxProvisionedPackage -Online | Where-Object -FilterScript {$_.DisplayName -cnotmatch $ExcludedApps} | Remove-AppxProvisionedPackage -Online $OFS = &quot; &quot; # Turn off Windows features # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b $features = @( \t# Windows Fax and Scan \t# \u0424\u0430\u043a\u0441\u044b \u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \t&quot;FaxServicesClientPackage&quot;, \t# Legacy Components \t# \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0440\u0435\u0436\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 \t&quot;LegacyComponents&quot;, \t# Media Features \t# \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0434\u0438\u0430 \t&quot;MediaPlayback&quot;, \t# PowerShell 2.0 \t&quot;MicrosoftWindowsPowerShellV2&quot;, \t&quot;MicrosoftWindowsPowershellV2Root&quot;, \t# Microsoft XPS Document Writer \t# \u0421\u0440\u0435\u0434\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0438\u0441\u0438 XPS-\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 (Microsoft) \t&quot;Printing-XPSServices-Features&quot;, \t# Microsoft Print to PDF \t# \u041f\u0435\u0447\u0430\u0442\u044c \u0432 PDF (\u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442) \t&quot;Printing-PrintToPDFServices-Features&quot;, \t# Work Folders Client \t# \u041a\u043b\u0438\u0435\u043d\u0442 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043f\u0430\u043f\u043e\u043a \t&quot;WorkFolders-Client&quot; ) foreach ($feature in $features) { \tDisable-WindowsOptionalFeature -Online -FeatureName $feature -NoRestart } # Uninstall Onedrive # \u0423\u0434\u0430\u043b\u0438\u0442\u044c OneDrive Stop-Process -Name OneDrive -Force -ErrorAction SilentlyContinue Start-Process -FilePath &quot;$env:SystemRoot\\SysWOW64\\OneDriveSetup.exe&quot; -ArgumentList &quot;\/uninstall&quot; -Wait Stop-Process -Name explorer IF (-not (Test-Path -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive)) { \tNew-Item -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive -Force } New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive -Name DisableFileSyncNGSC -Value 1 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive -Name DisableFileSync -Value 1 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive -Name DisableMeteredNetworkFileSync -Value 0 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\OneDrive -Name DisableLibrariesDefaultSaveToOneDrive -Value 1 -Force New-ItemProperty -Path HKCU:\\Software\\Microsoft\\OneDrive -Name DisablePersonalSync -Value 1 -Force Remove-ItemProperty -Path HKCU:\\Environment -Name OneDrive -Force -ErrorAction SilentlyContinue Remove-Item -Path $env:USERPROFILE\\OneDrive -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path $env:LOCALAPPDATA\\Microsoft\\OneDrive -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path &quot;$env:ProgramData\\Microsoft OneDrive&quot; -Recurse -Force -ErrorAction SilentlyContinue Unregister-ScheduledTask -TaskName *OneDrive* -Confirm:$false # Turn on updates for other Microsoft products # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 Microsoft (New-Object -ComObject Microsoft.Update.ServiceManager).AddService2(&quot;7971f918-a847-4430-9279-4a52d1efe18d&quot;, 7, &quot;&quot;) # Turn off Game Bar # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u0443\u044e \u043f\u0430\u043d\u0435\u043b\u044c New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\GameDVR -Name AppCaptureEnabled -Value 0 -Force New-ItemProperty -Path HKCU:\\System\\GameConfigStore -Name GameDVR_Enabled -Value 0 -Force # Turn off Game Mode # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0440\u0435\u0436\u0438\u043c New-ItemProperty -Path HKCU:\\Software\\Microsoft\\GameBar -Name AllowAutoGameMode -Value 0 -Force # Turn off Game Bar tips # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\GameBar -Name ShowStartupPanel -Value 0 -Force # Enable System Restore # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b Enable-ComputerRestore -Drive $env:SystemDrive Get-ScheduledTask -TaskName SR | Enable-ScheduledTask Get-Service -Name swprv, vss | Set-Service -StartupType Manual Get-Service -Name swprv, vss | Start-Service Get-CimInstance -ClassName Win32_ShadowCopy | Remove-CimInstance # Turn off Windows Script Host # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c Windows Script Host New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows Script Host\\Settings&quot; -Name Enabled -Value 0 -Force # Create scheduled task with the disk cleanup tool in Task Scheduler. The task runs every 90 days # \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u0430. \u0417\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 90 \u0434\u043d\u0435\u0439 $keys = @( \t# Delivery Optimization Files \t# \u0424\u0430\u0439\u043b\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \t&quot;Delivery Optimization Files&quot;, \t# Device driver packages \t# \u041f\u0430\u043a\u0435\u0442\u044b \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \t&quot;Device Driver Packages&quot;, \t# Previous Windows Installation(s) \t# \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Windows \t&quot;Previous Installations&quot;, \t# \u0424\u0430\u0439\u043b\u044b \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \t&quot;Setup Log Files&quot;, \t# Temporary Setup Files \t&quot;Temporary Setup Files&quot;, \t# Windows Update Cleanup \t# \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 Windows \t&quot;Update Cleanup&quot;, \t# Windows Defender Antivirus \t&quot;Windows Defender&quot;, \t# Windows upgrade log files \t# \u0424\u0430\u0439\u043b\u044b \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f Windows \t&quot;Windows Upgrade Log Files&quot;) foreach ($key in $keys) { \tNew-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VolumeCaches\\$key&quot; -Name StateFlags1337 -Value 2 -Force } $action = New-ScheduledTaskAction -Execute &quot;cleanmgr.exe&quot; -Argument &quot;\/sagerun:1337&quot; $trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 90 -At 9am $settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable $principal = New-ScheduledTaskPrincipal -UserId $env:USERNAME -RunLevel Highest $params = @{ \t&quot;TaskName&quot;\t=\t&quot;Update Cleanup&quot; \t&quot;Action&quot;\t=\t$action \t&quot;Trigger&quot;\t=\t$trigger \t&quot;Settings&quot;\t=\t$settings \t&quot;Principal&quot;\t=\t$principal } Register-ScheduledTask @params -Force # Create task to clean out the &quot;$env:SystemRoot\\SoftwareDistribution\\Download&quot; folder in Task Scheduler # The task runs on Thursdays every 4 weeks # \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e \u043e\u0447\u0438\u0441\u0442\u043a\u0435 \u043f\u0430\u043f\u043a\u0438 &quot;$env:SystemRoot\\SoftwareDistribution\\Download&quot; # \u0417\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430\u043c \u043a\u0430\u0436\u0434\u0443\u044e 4 \u043d\u0435\u0434\u0435\u043b\u044e $action = New-ScheduledTaskAction -Execute powershell.exe -Argument @&quot; \t`$getservice = Get-Service -Name wuauserv \t`$getservice.WaitForStatus(&quot;Stopped&quot;, &quot;01:00:00&quot;) \tGet-ChildItem -Path `$env:SystemRoot\\SoftwareDistribution\\Download -Recurse -Force | Remove-Item -Recurse -Force &quot;@ $trigger = New-JobTrigger -Weekly -WeeksInterval 4 -DaysOfWeek Thursday -At 9am $settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable $principal = New-ScheduledTaskPrincipal -UserId &quot;NT AUTHORITY\\SYSTEM&quot; -RunLevel Highest $params = @{ \t&quot;TaskName&quot;\t=\t&quot;SoftwareDistribution&quot; \t&quot;Action&quot;\t=\t$action \t&quot;Trigger&quot;\t=\t$trigger \t&quot;Settings&quot;\t=\t$settings \t&quot;Principal&quot;\t=\t$principal } Register-ScheduledTask @params -Force # Create scheduled task with the $env:TEMP folder cleanup in Task Scheduler. The task runs every 62 days # \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0432 \u041f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0435 \u0437\u0430\u0434\u0430\u0447 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u0430\u043f\u043a\u0438 $env:TEMP. \u0417\u0430\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 62 \u0434\u043d\u044f $action = New-ScheduledTaskAction -Execute powershell.exe -Argument @&quot; \tGet-ChildItem -Path `$env:TEMP -Force -Recurse | Remove-Item -Force -Recurse &quot;@ $trigger = New-ScheduledTaskTrigger -Daily -DaysInterval 62 -At 9am $settings = New-ScheduledTaskSettingsSet -Compatibility Win8 -StartWhenAvailable $principal = New-ScheduledTaskPrincipal -UserId &quot;NT AUTHORITY\\SYSTEM&quot; -RunLevel Highest $params = @{ \t&quot;TaskName&quot;\t=\t&quot;Temp&quot; \t&quot;Action&quot;\t=\t$action \t&quot;Trigger&quot;\t=\t$trigger \t&quot;Settings&quot;\t=\t$settings \t&quot;Principal&quot;\t=\t$principal } Register-ScheduledTask @params -Force # Turn off default background apps except # \u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043a\u0440\u043e\u043c\u0435 $apps = @( \t# Content Delivery Manager \t&quot;Microsoft.Windows.ContentDeliveryManager*&quot; \t# Cortana \t&quot;Microsoft.Windows.Cortana*&quot; \t# Windows Security \t# \u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c Windows \t&quot;Microsoft.Windows.SecHealthUI*&quot; \t# ShellExperienceHost \t&quot;Microsoft.Windows.ShellExperienceHost*&quot; \t# StartMenuExperienceHost \t&quot;Microsoft.Windows.StartMenuExperienceHost*&quot;) foreach ($app in $apps) { \tGet-ChildItem -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications -Exclude $apps | \tForEach-Object -Process { \t\tNew-ItemProperty -Path $_.PsPath -Name Disabled -Value 1 -Force \t\tNew-ItemProperty -Path $_.PsPath -Name DisabledByUser -Value 1 -Force \t} } # Set power management scheme for desktop and laptop # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0445\u0435\u043c\u0443 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0441\u0442\u0430\u0446\u0438\u043e\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u041f\u041a \u0438 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430 IF ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -eq 1) { \t# High performance for desktop \t# \u0412\u044b\u0441\u043e\u043a\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f \u0441\u0442\u0430\u0446\u0438\u043e\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u041f\u041a \tpowercfg \/setactive SCHEME_MIN } IF ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -eq 2) { \t# Balanced for laptop \t# \u0421\u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0434\u043b\u044f \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0430 \tpowercfg \/setactive SCHEME_BALANCED } # Turn on .NET 4 runtime for all apps # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e .NET Framework \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\.NETFramework -Name OnlyUseLatestCLR -Value 1 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\.NETFramework -Name OnlyUseLatestCLR -Value 1 -Force # Turn on Num Lock at startup # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c Num Lock \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 New-ItemProperty -Path &quot;Registry::HKEY_USERS\\.DEFAULT\\Control Panel\\Keyboard&quot; -Name InitialKeyboardIndicators -PropertyType String -Value 2147483650 -Force # Add folder to exclude from Windows Defender Antivirus scan # \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0417\u0430\u0449\u0438\u0442\u043d\u0438\u043a\u0430 Windows IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u0434\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u043b\u0438 \u043f\u0430\u043f\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 &quot; \tWrite-Host &quot;\u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Windows Defender.&quot; \tWrite-Host &quot;\u041f\u0443\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438 \u0438 \u0432\u0437\u044f\u0442\u044b \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438.&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType the full paths to files or folders, which to exclude &quot; \tWrite-Host &quot;from Windows Defender Antivirus Scan.&quot; \tWrite-Host &quot;The paths must be separated by commas and taken in quotes.&quot; -ForegroundColor Yellow \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } function ExclusionPath { \t[CmdletBinding()] \tParam \t( \t\t[Parameter(Mandatory = $True)] \t\t[string[]]$paths \t) \t$paths = $paths.Replace(&quot;`&quot;&quot;, &quot;&quot;).Split(&quot;,&quot;).Trim() \tAdd-MpPreference -ExclusionPath $paths -Force } Do { \t$paths = Read-Host -Prompt &quot; &quot; \tIF ($paths -match &quot;`&quot;&quot;) \t{ \t\tExclusionPath $paths \t} \telseif ([string]::IsNullOrEmpty($paths)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u041f\u0443\u0442\u0438 \u043d\u0435 \u0432\u0437\u044f\u0442\u044b \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0443\u0442\u0438, \u0432\u0437\u044f\u0432 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0432 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;`nThe paths hasn't been taken in quotes.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;Type the paths by quoting and separating by commas.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($paths -match &quot;`&quot;&quot;) function Get-ResolvedPath { \tparam ( \t\t[Parameter(ValueFromPipeline = 1)] \t\t$Path \t) \t(Get-Disk | Where-Object -FilterScript {$_.IsBoot -eq $false} | Get-Partition | Get-Volume | Where-Object -FilterScript {$null -ne $_.DriveLetter}).DriveLetter | ForEach-Object -Process {Join-Path ($_ + &quot;:&quot;) $Path -Resolve -ErrorAction SilentlyContinue} } $folder = &quot;\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b\\\u041f\u0440\u043e\u0447\u0435\u0435&quot; | Get-ResolvedPath IF ($folder) { \tAdd-MpPreference -ExclusionPath $folder -Force } # Turn on Windows Defender Exploit Guard Network Protection # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0417\u0430\u0449\u0438\u0442\u0443 \u0441\u0435\u0442\u0438 \u0432 \u0417\u0430\u0449\u0438\u0442\u043d\u0438\u043a\u0435 Windows Set-MpPreference -EnableNetworkProtection Enabled # Turn on Controlled folder access and add protected folders # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0430\u043f\u043a\u0430\u043c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0435 \u043f\u0430\u043f\u043a\u0438 IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0443\u0442\u044c \u0434\u043e \u043f\u0430\u043f\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0445 \u043f\u0430\u043f\u043e\u043a.&quot; \tWrite-Host &quot;\u041f\u0443\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438 \u0438 \u0432\u0437\u044f\u0442\u044b \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438.&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType folder path to add to protected folders list.&quot; \tWrite-Host &quot;The paths must be separated by commas and taken in quotes.&quot; -ForegroundColor Yellow \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } function ControlledFolder { \t[CmdletBinding()] \tParam \t( \t\t[Parameter(Mandatory = $True)] \t\t[string[]]$paths \t) \tSet-MpPreference -EnableControlledFolderAccess Enabled \t$paths = $paths.Replace(&quot;`&quot;&quot;, &quot;&quot;).Split(&quot;,&quot;).Trim() \tAdd-MpPreference -ControlledFolderAccessProtectedFolders $paths } Do { \t$paths = Read-Host -Prompt &quot; &quot; \tIF ($paths -match &quot;`&quot;&quot;) \t{ \t\tControlledFolder $paths \t} \telseif ([string]::IsNullOrEmpty($paths)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u041f\u0443\u0442\u0438 \u043d\u0435 \u0432\u0437\u044f\u0442\u044b \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0443\u0442\u0438, \u0432\u0437\u044f\u0432 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0432 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;`nThe paths hasn't been taken in quotes.&quot; -ForegroundColor Yellow \t\t\tWrite-Host &quot;Type the paths by quoting and separating by commas.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($paths -match &quot;`&quot;&quot;) # Turn on Windows Defender PUA Protection # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 Set-MpPreference -PUAProtection Enabled # Turn on firewall & network protection # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0431\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440 Set-NetFirewallProfile -Enabled True # Turn off F1 Help key # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e F1 IF (-not (Test-Path -Path &quot;HKCU:\\Software\\Classes\\Typelib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0\\win64&quot;)) { \tNew-Item -Path &quot;HKCU:\\Software\\Classes\\Typelib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0\\win64&quot; -Force } New-ItemProperty -Path &quot;HKCU:\\Software\\Classes\\Typelib\\{8cec5860-07a1-11d9-b15e-000d56bfe6ee}\\1.0\\0\\win64&quot; -Name &quot;(default)&quot; -PropertyType String -Value &quot;&quot; -Force # Show Task Manager details # \u0420\u0430\u0441\u043a\u0440\u044b\u0442\u044c \u043e\u043a\u043d\u043e \u0414\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u0430 \u0437\u0430\u0434\u0430\u0447 $taskmgr = Get-Process -Name Taskmgr -ErrorAction SilentlyContinue IF ($taskmgr) { \t$taskmgr.CloseMainWindow() } $taskmgr = Start-Process -FilePath taskmgr.exe -WindowStyle Hidden -PassThru Do { \tStart-Sleep -Milliseconds 100 \t$preferences = Get-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager -Name Preferences -ErrorAction SilentlyContinue } Until ($preferences) Stop-Process -Name $taskmgr -ErrorAction SilentlyContinue $preferences.Preferences[28] = 0 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager -Name Preferences -PropertyType Binary -Value $preferences.Preferences -Force # Do not allow the computer to turn off the device to save power for desktop # \u0417\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 Ethernet-\u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430 \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u044d\u043d\u0435\u0440\u0433\u0438\u0438 \u0434\u043b\u044f \u0441\u0442\u0430\u0446\u0438\u043e\u043d\u0430\u0440\u043d\u043e\u0433\u043e \u041f\u041a IF ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -eq 1) { \t$adapter = Get-NetAdapter -Physical | Get-NetAdapterPowerManagement \t$adapter.AllowComputerToTurnOffDevice = &quot;Disabled&quot; \t$adapter | Set-NetAdapterPowerManagement } # Add &quot;Extract&quot; to MSI file type context menu # \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;Extract&quot; \u0434\u043b\u044f MSI \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e IF (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\\Msi.Package\\shell\\Extract\\Command)) { \tNew-Item -Path Registry::HKEY_CLASSES_ROOT\\Msi.Package\\shell\\Extract\\Command -Force } New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Msi.Package\\shell\\Extract\\Command -Name &quot;(default)&quot; -PropertyType String -Value &quot;msiexec.exe \/a `&quot;%1`&quot; \/qb TARGETDIR=`&quot;%1 extracted`&quot;&quot; -Force New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Msi.Package\\shell\\Extract -Name MUIVerb -PropertyType String -Value &quot;@shell32.dll,-31382&quot; -Force New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Msi.Package\\shell\\Extract -Name Icon -PropertyType String -Value &quot;shell32.dll,-16817&quot; -Force # Add &quot;Run as different user&quot; from context menu for .exe file type # \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c &quot;\u0417\u0430\u043f\u0443\u0441\u043a \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0434\u0440\u0443\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&quot; \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0435 \u043c\u0435\u043d\u044e \u0434\u043b\u044f .exe \u0444\u0430\u0439\u043b\u043e\u0432 New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\exefile\\shell\\runasuser -Name &quot;(default)&quot; -PropertyType String -Value &quot;@shell32.dll,-50944&quot; -Force Remove-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\exefile\\shell\\runasuser -Name Extended -Force -ErrorAction SilentlyContinue New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\exefile\\shell\\runasuser -Name SuppressionPolicyEx -PropertyType String -Value &quot;{F211AA05-D4DF-4370-A2A0-9F19C09756A7}&quot; -Force New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\exefile\\shell\\runasuser\\command -Name DelegateExecute -PropertyType String -Value &quot;{ea72d00e-4960-42fa-ba92-7792a7944c1d}&quot; -Force # Add &quot;Install&quot; to CAB file type context menu # \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c&quot; \u0434\u043b\u044f CAB-\u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u043c \u043c\u0435\u043d\u044e IF (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\\CABFolder\\Shell\\RunAs\\Command)) { \tNew-Item -Path Registry::HKEY_CLASSES_ROOT\\CABFolder\\Shell\\RunAs\\Command -Force } New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\CABFolder\\Shell\\RunAs\\Command -Name &quot;(default)&quot; -PropertyType String -Value &quot;cmd \/c DISM \/Online \/Add-Package \/PackagePath:`&quot;%1`&quot; \/NoRestart & pause&quot; -Force New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\CABFolder\\Shell\\RunAs -Name MUIVerb -PropertyType String -Value &quot;@shell32.dll,-10210&quot; -Force New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\CABFolder\\Shell\\RunAs -Name HasLUAShield -PropertyType String -Value &quot;&quot; -Force # Remove &quot;Cast to Device&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u041f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e IF (-not (Test-Path -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot;)) { \tNew-Item -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot; -Force } New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot; -Name &quot;{7AD84985-87B4-4a16-BE58-8B72A5B390F7}&quot; -PropertyType String -Value &quot;Play to menu&quot; -Force # Remove &quot;Share&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c&quot; (\u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f) \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e IF (-not (Test-Path -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot;)) { \tNew-Item -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot; -Force } New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot; -Name &quot;{E2BF9676-5F8F-435C-97EB-11607A5BEDF7}&quot; -PropertyType String -Value &quot;&quot; -Force # Remove &quot;Previous Versions&quot; from file context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0435\u0436\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e IF (-not (Test-Path -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot;)) { \tNew-Item -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot; -Force } New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked&quot; -Name &quot;{596AB062-B4D2-4215-9F74-E9109B0A8153}&quot; -PropertyType String -Value &quot;&quot; -Force # Remove &quot;Edit with Paint 3D&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Paint 3D&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e $exts = @(&quot;.bmp&quot;, &quot;.gif&quot;, &quot;.jpe&quot;, &quot;.jpeg&quot;, &quot;.jpg&quot;, &quot;.png&quot;, &quot;.tif&quot;, &quot;.tiff&quot;) foreach ($ext in $exts) { \tNew-ItemProperty -Path &quot;Registry::HKEY_CLASSES_ROOT\\SystemFileAssociations\\$ext\\Shell\\3D Edit&quot; -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force } # Remove &quot;Include in Library&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e New-ItemProperty -Path &quot;Registry::HKEY_CLASSES_ROOT\\Folder\\shellex\\ContextMenuHandlers\\Library Location&quot; -Name &quot;(default)&quot; -PropertyType String -Value &quot;-{3dad6c5d-2167-4cae-9914-f99e41c12cfa}&quot; -Force # Remove &quot;Turn on BitLocker&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c Bitlocker&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e IF (Get-WindowsEdition -Online | Where-Object -FilterScript {$_.Edition -eq &quot;Professional&quot; -or $_.Edition -eq &quot;Enterprise&quot;}) { \tNew-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Drive\\shell\\encrypt-bde -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force \tNew-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Drive\\shell\\encrypt-bde-elev -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force \tNew-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Drive\\shell\\manage-bde -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force \tNew-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Drive\\shell\\resume-bde -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force \tNew-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Drive\\shell\\resume-bde-elev -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force \tNew-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\Drive\\shell\\unlock-bde -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force } # Remove &quot;Edit with Photos&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f &quot;\u0424\u043e\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0438&quot;&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\\Shell\\ShellEdit -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force # Remove &quot;Create a new video&quot; from Context Menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u043e\u0435 \u0432\u0438\u0434\u0435\u043e&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\\Shell\\ShellCreateVideo -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force # Remove &quot;Edit&quot; from Context Menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\SystemFileAssociations\\image\\shell\\edit -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force # Remove &quot;Print&quot; from batch and cmd files context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u041f\u0435\u0447\u0430\u0442\u044c&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e \u0434\u043b\u044f bat- \u0438 cmd-\u0444\u0430\u0439\u043b\u043e\u0432 New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\batfile\\shell\\print -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\cmdfile\\shell\\print -Name ProgrammaticAccessOnly -PropertyType String -Value &quot;&quot; -Force # Remove &quot;Compressed (zipped) Folder&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0421\u0436\u0430\u0442\u0430\u044f ZIP-\u043f\u0430\u043f\u043a\u0430&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e Remove-Item -Path Registry::HKEY_CLASSES_ROOT\\.zip\\CompressedFolder\\ShellNew -Force -ErrorAction SilentlyContinue # Remove &quot;Rich Text Document&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 RTF&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e Remove-Item -Path Registry::HKEY_CLASSES_ROOT\\.rtf\\ShellNew -Force -ErrorAction SilentlyContinue # Remove &quot;Bitmap image&quot; from context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0422\u043e\u0447\u0435\u0447\u043d\u044b\u0439 \u0440\u0438\u0441\u0443\u043d\u043e\u043a&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e Remove-Item -Path Registry::HKEY_CLASSES_ROOT\\.bmp\\ShellNew -Force -ErrorAction SilentlyContinue # Remove &quot;Send to&quot; from folder context menu # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0443\u043d\u043a\u0442 &quot;\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c&quot; \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u0433\u043e \u043c\u0435\u043d\u044e \u043f\u0430\u043f\u043a\u0438 New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\\AllFilesystemObjects\\shellex\\ContextMenuHandlers\\SendTo -Name &quot;(default)&quot; -PropertyType String -Value &quot;&quot; -Force # Set the default input method to the English language # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u0432\u0432\u043e\u0434\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a Set-WinDefaultInputMethodOverride &quot;0409:00000409&quot; # Unpin Microsoft Edge and Microsoft Store from taskbar # \u041e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u044c Microsoft Edge \u0438 Microsoft Store \u043e\u0442 \u043f\u0430\u043d\u0435\u043b\u0438 \u0437\u0430\u0434\u0430\u0447 $Signature = @{ \tNamespace = &quot;WinAPI&quot; \tName = &quot;GetStr&quot; \tLanguage = &quot;CSharp&quot; \tMemberDefinition = @&quot; \t\t[DllImport(&quot;kernel32.dll&quot;, CharSet = CharSet.Auto)] \t\tpublic static extern IntPtr GetModuleHandle(string lpModuleName); \t\t[DllImport(&quot;user32.dll&quot;, CharSet = CharSet.Auto)] \t\tinternal static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax); \t\tpublic static string GetString(uint strId) \t\t{ \t\t\tIntPtr intPtr = GetModuleHandle(&quot;shell32.dll&quot;); \t\t\tStringBuilder sb = new StringBuilder(255); \t\t\tLoadString(intPtr, strId, sb, sb.Capacity); \t\t\treturn sb.ToString(); \t\t} &quot;@ } IF (-not (&quot;WinAPI.GetStr&quot; -as [type])) { \tAdd-Type @Signature -Using System.Text } $unpin = [WinAPI.GetStr]::GetString(5387) $apps = (New-Object -ComObject Shell.Application).NameSpace(&quot;shell:::{4234d49b-0245-4df3-b780-3893943456e1}&quot;).Items() $apps | Where-Object -FilterScript {$_.Path -like &quot;Microsoft.MicrosoftEdge*&quot;} | ForEach-Object -Process {$_.Verbs() | Where-Object -FilterScript {$_.Name -eq $unpin} | ForEach-Object -Process {$_.DoIt()}} $apps | Where-Object -FilterScript {$_.Path -like &quot;Microsoft.WindowsStore*&quot;} | ForEach-Object -Process {$_.Verbs() | Where-Object -FilterScript {$_.Name -eq $unpin} | ForEach-Object -Process {$_.DoIt()}} # Do not use sign-in info to automatically finish setting up device after an update or restart # \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0438\u043b\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f $sid = (Get-CimInstance -ClassName Win32_UserAccount | Where-Object -FilterScript {$_.Name -eq &quot;$env:USERNAME&quot;}).SID IF (-not (Test-Path -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\UserARSO\\$sid&quot;)) { \tNew-Item -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\UserARSO\\$sid&quot; -Force } New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\UserARSO\\$sid&quot; -Name OptOut -Value 1 -Force # Remove Microsoft Edge shortcut from the Desktop # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u044f\u0440\u043b\u044b\u043a Microsoft Edge \u0441 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430 $value = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name Desktop Remove-Item -Path &quot;$value\\Microsoft Edge.lnk&quot; -Force -ErrorAction SilentlyContinue # Turn off per-user services # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0441\u043b\u0443\u0436\u0431\u044b $services = @( \t# Contact Data \t# \u0421\u043b\u0443\u0436\u0431\u0430 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \t&quot;PimIndexMaintenanceSvc_*&quot;, \t# User Data Storage \t# \u0421\u043b\u0443\u0436\u0431\u0430 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \t&quot;UnistoreSvc_*&quot;, \t# User Data Access \t# \u0421\u043b\u0443\u0436\u0431\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \t&quot;UserDataSvc_*&quot; ) Get-Service -Name $services | Stop-Service -Force New-ItemProperty -Path HKLM:\\System\\CurrentControlSet\\Services\\PimIndexMaintenanceSvc -Name Start -Value 4 -Force New-ItemProperty -Path HKLM:\\System\\CurrentControlSet\\Services\\PimIndexMaintenanceSvc -Name UserServiceFlags -Value 0 -Force New-ItemProperty -Path HKLM:\\System\\CurrentControlSet\\Services\\UnistoreSvc -Name Start -Value 4 -Force New-ItemProperty -Path HKLM:\\System\\CurrentControlSet\\Services\\UnistoreSvc -Name UserServiceFlags -Value 0 -Force New-ItemProperty -Path HKLM:\\System\\CurrentControlSet\\Services\\UserDataSvc -Name Start -Value 4 -Force New-ItemProperty -Path HKLM:\\System\\CurrentControlSet\\Services\\UserDataSvc -Name UserServiceFlags -Value 0 -Force # Let Windows try to fix apps so they're not blurry # \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c Windows \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u044b\u0442\u043e\u0441\u0442\u044c \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 New-ItemProperty -Path &quot;HKCU:\\Control Panel\\Desktop&quot; -Name EnablePerProcessSystemDPI -Value 1 -Force # Remove printers # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u044b Remove-Printer -Name Fax, &quot;Microsoft XPS Document Writer&quot;, &quot;Microsoft Print to PDF&quot; -ErrorAction SilentlyContinue # Hide notification about sign in with Microsoft in the Windows Security # \u0421\u043a\u0440\u044b\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0417\u0430\u0449\u0438\u0442\u043d\u0438\u043a\u0430 Windows \u043e\u0431 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 Microsoft New-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows Security Health\\State&quot; -Name AccountProtection_MicrosoftAccount_Disconnected -Value 1 -Force # Hide notification about disabled Smartscreen for Microsoft Edge # \u0421\u043a\u0440\u044b\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0417\u0430\u0449\u0438\u0442\u043d\u0438\u043a\u0430 Windows \u043e\u0431 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0435 SmartScreen \u0434\u043b\u044f Microsoft Edge New-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows Security Health\\State&quot; -Name AppAndBrowser_EdgeSmartScreenOff -Value 0 -Force # Remove Windows capabilities # \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b $IncludedApps = @( \t# Microsoft Quick Assist \t# \u0411\u044b\u0441\u0442\u0440\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 (\u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442) \t&quot;App.Support.QuickAssist*&quot; \t# Windows Hello Face \t# \u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u043b\u0438\u0446 Windows Hello \t&quot;Hello.Face*&quot; \t# Windows Media Player \t# \u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c Windows Media \t&quot;Media.WindowsMediaPlayer*&quot; ) $OFS = &quot;|&quot; Get-WindowsCapability -Online | Where-Object -FilterScript {$_.Name -cmatch $IncludedApps} | Remove-WindowsCapability -Online $OFS = &quot; &quot; # Open shortcut to the Command Prompt from Start menu as Administrator # \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u044f\u0440\u043b\u044b\u043a \u043a \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432 \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0410\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 $bytes = [System.IO.File]::ReadAllBytes(&quot;$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Command Prompt.lnk&quot;) $bytes[0x15] = $bytes[0x15] -bor 0x20 [System.IO.File]::WriteAllBytes(&quot;$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\Command Prompt.lnk&quot;, $bytes) # Create old style shortcut for &quot;Devices and Printers&quot; in &quot;$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools&quot; # \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u044f\u0440\u043b\u044b\u043a \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u0434\u043b\u044f &quot;\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u044b&quot; \u0432 &quot;$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools&quot; $target = &quot;control&quot; $linkname = (Get-ControlPanelItem | Where-Object -FilterScript {$_.CanonicalName -eq &quot;Microsoft.DevicesAndPrinters&quot;}).Name $link = &quot;$env:APPDATA\\Microsoft\\Windows\\Start Menu\\Programs\\System Tools\\$linkname.lnk&quot; $shell = New-Object -ComObject Wscript.Shell $shortcut = $shell.CreateShortcut($link) $shortcut.TargetPath = $target $shortcut.Arguments = &quot;printers&quot; $shortCut.IconLocation = &quot;$env:SystemRoot\\system32\\DeviceCenter.dll&quot; $shortcut.Save() # Import Start menu layout from pre-saved reg file # \u0418\u043c\u043f\u043e\u0440\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u043a\u0435\u0442\u0430 \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; \u0438\u0437 \u0437\u0430\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e reg-\u0444\u0430\u0439\u043b\u0430 Add-Type -AssemblyName System.Windows.Forms $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog # Initial directory &quot;Downloads&quot; # \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u043f\u043a\u0430 &quot;\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0438&quot; $DownloadsFolder = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{374DE290-123F-4565-9164-39C4925E467B}&quot; $OpenFileDialog.InitialDirectory = $DownloadsFolder $OpenFileDialog.Multiselect = $false IF ($RU) { \t$OpenFileDialog.Filter = &quot;\u0424\u0430\u0439\u043b\u044b \u0440\u0435\u0435\u0441\u0442\u0440\u0430 (*.reg)|*.reg|\u0412\u0441\u0435 \u0444\u0430\u0439\u043b\u044b (*.*)|*.*&quot; } else { \t$OpenFileDialog.Filter = &quot;Registration Files (*.reg)|*.reg|All Files (*.*)|*.*&quot; } $OpenFileDialog.ShowHelp = $true $OpenFileDialog.ShowDialog() IF ($OpenFileDialog.FileName) { \tRemove-Item -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount -Recurse -Force \tregedit.exe \/s $OpenFileDialog.FileName } Else { \t# Unpin all Start Menu tiles \t# \u041e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u044c \u0432\u0441\u0435 \u044f\u0440\u043b\u044b\u043a\u0438 \u043e\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \t$tilecollection = Get-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\\*start.tilegrid`$windows.data.curatedtilecollection.tilecollection\\Current \t$unpin = $tilecollection.Data[0..25] + ([byte[]](202,50,0,226,44,1,1,0,0)) \tNew-ItemProperty -Path $tilecollection.PSPath -Name Data -PropertyType Binary -Value $unpin -Force \t# Show &quot;Explorer&quot; and &quot;Settings&quot; folders on Start menu \t# \u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0438 &quot;\u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a&quot; \u0438 &quot;\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b&quot; \u0432 \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; \t$items = @(&quot;File Explorer&quot;, &quot;Settings&quot;) \t$startmenu = Get-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\CloudStore\\Store\\Cache\\DefaultAccount\\*windows.data.unifiedtile.startglobalproperties\\Current&quot; \t$data = $startmenu.Data[0..19] -join &quot;,&quot; \t$data += &quot;,203,50,10,$($items.Length)&quot; \t# Explorer \t# \u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a \t$data += &quot;,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&quot; \t# Settings \t# \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \t$data += &quot;,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&quot; \t$data += &quot;,194,60,1,194,70,1,197,90,1,0&quot; \tNew-ItemProperty -Path $startmenu.PSPath -Name Data -PropertyType Binary -Value $data.Split(&quot;,&quot;) -Force } # Show accent color on the title bars and window borders # \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0446\u0432\u0435\u0442 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445 \u043e\u043a\u043e\u043d \u0438 \u0433\u0440\u0430\u043d\u0438\u0446 \u043e\u043a\u043e\u043d New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\DWM -Name ColorPrevalence -Value 1 -Force # Use the PrtScn button to open screen snipping # \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0432\u0438\u0448\u0443 Print Screen, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 New-ItemProperty -Path &quot;HKCU:\\Control Panel\\Keyboard&quot; -Name PrintScreenKeyForSnippingEnabled -Value 1 -Force # Do not allow automatic hiding if scroll bars in Windows # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043a\u0440\u044b\u0442\u0438\u0435 \u043f\u043e\u043b\u043e\u0441 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u0432 Windows New-ItemProperty -Path &quot;HKCU:\\Control Panel\\Accessibility&quot; -Name DynamicScrollbars -Value 0 -Force # Do not let websites provide locally relevant content by accessing language list # \u041d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u0435\u0441\u0442\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0437\u0430 \u0441\u0447\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u043f\u0438\u0441\u043a\u0443 \u044f\u0437\u044b\u043a\u043e\u0432 New-ItemProperty -Path &quot;HKCU:\\Control Panel\\International\\User Profile&quot; -Name HttpAcceptLanguageOptOut -Value 1 -Force # Turn on Windows Defender Sandbox # \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0417\u0430\u0449\u0438\u0442\u043d\u0438\u043a Windows \u0432 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0435 [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 setx \/M MP_FORCE_USE_SANDBOX 1 # Set location of the &quot;Desktop&quot;, &quot;Documents&quot; &quot;Downloads&quot; &quot;Music&quot;, &quot;Pictures&quot;, and &quot;Videos&quot; # \u041f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0430\u043f\u043e\u043a &quot;\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b&quot;, &quot;\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b&quot;, &quot;\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0438&quot;, &quot;\u041c\u0443\u0437\u044b\u043a\u0430&quot;, &quot;\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f&quot;, &quot;\u0412\u0438\u0434\u0435\u043e&quot; Function KnownFolderPath { \tParam ( \t\t[Parameter(Mandatory = $true)] \t\t[ValidateSet(&quot;Desktop&quot;, &quot;Documents&quot;, &quot;Downloads&quot;, &quot;Music&quot;, &quot;Pictures&quot;, &quot;Videos&quot;)] \t\t[string]$KnownFolder,  \t\t[Parameter(Mandatory = $true)] \t\t[string]$Path \t) \t$KnownFolders = @{ \t\t&quot;Desktop&quot;\t= @(&quot;B4BFCC3A-DB2C-424C-B029-7FE99A87C641&quot;); \t\t&quot;Documents&quot;\t= @(&quot;FDD39AD0-238F-46AF-ADB4-6C85480369C7&quot;, &quot;f42ee2d3-909f-4907-8871-4c22fc0bf756&quot;); \t\t&quot;Downloads&quot;\t= @(&quot;374DE290-123F-4565-9164-39C4925E467B&quot;, &quot;7d83ee9b-2244-4e70-b1f5-5393042af1e4&quot;); \t\t&quot;Music&quot;\t\t= @(&quot;4BD8D571-6D19-48D3-BE97-422220080E43&quot;, &quot;a0c69a99-21c8-4671-8703-7934162fcf1d&quot;); \t\t&quot;Pictures&quot;\t= @(&quot;33E28130-4E1E-4676-835A-98395C3BC3BB&quot;, &quot;0ddd015d-b06c-45d5-8c4c-f59713854639&quot;); \t\t&quot;Videos&quot;\t= @(&quot;18989B1D-99B5-455B-841C-AB7C74E4DDFC&quot;, &quot;35286a68-3c57-41a1-bbb1-0eae73d76c95&quot;); \t} \t$Signature = @{ \t\tNamespace = &quot;WinAPI&quot; \t\tName = &quot;KnownFolders&quot; \t\tLanguage = &quot;CSharp&quot; \t\tMemberDefinition = @&quot; \t\t\t[DllImport(&quot;shell32.dll&quot;)] \t\t\tpublic extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, IntPtr token, [MarshalAs(UnmanagedType.LPWStr)] string path); &quot;@ \t} \tIF (-not (&quot;WinAPI.KnownFolders&quot; -as [type])) \t{ \t\tAdd-Type @Signature \t} \tforeach ($guid in $KnownFolders[$KnownFolder]) \t{ \t\t[WinAPI.KnownFolders]::SHSetKnownFolderPath([ref]$guid, 0, 0, $Path) \t} \t(Get-Item -Path $Path -Force ).Attributes = &quot;ReadOnly&quot; } [hashtable] $DesktopINI = @{ \t&quot;Desktop&quot;\t=\t&quot;&quot;, \t\t\t\t\t&quot;[.ShellClassInfo]&quot;, \t\t\t\t\t&quot;LocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21769&quot;, \t\t\t\t\t&quot;IconResource=%SystemRoot%\\system32\\imageres.dll,-183&quot; \t&quot;Documents&quot;\t=\t&quot;&quot;, \t\t\t\t\t&quot;[.ShellClassInfo]&quot;, \t\t\t\t\t&quot;LocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21770&quot;, \t\t\t\t\t&quot;IconResource=%SystemRoot%\\system32\\imageres.dll,-112&quot;, \t\t\t\t\t&quot;IconFile=%SystemRoot%\\system32\\shell32.dll&quot;, \t\t\t\t\t&quot;IconIndex=-235&quot; \t&quot;Downloads&quot;\t=\t&quot;&quot;, \t\t\t\t\t&quot;[.ShellClassInfo]&quot;,&quot;LocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21798&quot;, \t\t\t\t\t&quot;IconResource=%SystemRoot%\\system32\\imageres.dll,-184&quot; \t&quot;Music&quot;\t\t=\t&quot;&quot;, \t\t\t\t\t&quot;[.ShellClassInfo]&quot;,&quot;LocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21790&quot;, \t\t\t\t\t&quot;InfoTip=@%SystemRoot%\\system32\\shell32.dll,-12689&quot;, \t\t\t\t\t&quot;IconResource=%SystemRoot%\\system32\\imageres.dll,-108&quot;, \t\t\t\t\t&quot;IconFile=%SystemRoot%\\system32\\shell32.dll&quot;,&quot;IconIndex=-237&quot; \t&quot;Pictures&quot;\t=\t&quot;&quot;, \t\t\t\t\t&quot;[.ShellClassInfo]&quot;, \t\t\t\t\t&quot;LocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21779&quot;, \t\t\t\t\t&quot;InfoTip=@%SystemRoot%\\system32\\shell32.dll,-12688&quot;, \t\t\t\t\t&quot;IconResource=%SystemRoot%\\system32\\imageres.dll,-113&quot;, \t\t\t\t\t&quot;IconFile=%SystemRoot%\\system32\\shell32.dll&quot;, \t\t\t\t\t&quot;IconIndex=-236&quot; \t&quot;Videos&quot;\t=\t&quot;&quot;, \t\t\t\t\t&quot;[.ShellClassInfo]&quot;, \t\t\t\t\t&quot;LocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21791&quot;, \t\t\t\t\t&quot;InfoTip=@%SystemRoot%\\system32\\shell32.dll,-12690&quot;, \t\t\t\t\t&quot;IconResource=%SystemRoot%\\system32\\imageres.dll,-189&quot;, \t\t\t\t\t&quot;IconFile=%SystemRoot%\\system32\\shell32.dll&quot;,&quot;IconIndex=-238&quot; } $drives = (Get-Disk | Where-Object -FilterScript {$_.BusType -ne &quot;USB&quot;} | Get-Partition | Get-Volume).DriveLetter IF ($RU) { \t$OFS = &quot;, &quot; \tWrite-Host &quot;\u0412\u0430\u0448\u0438 \u0434\u0438\u0441\u043a\u0438: &quot; -NoNewline \tWrite-Host &quot;$($drives | Sort-Object -Unique)&quot; -ForegroundColor Yellow \t$OFS = &quot; &quot; } else { \t$OFS = &quot;, &quot; \tWrite-Host &quot;`nYour drives: &quot; -NoNewline \tWrite-Host &quot;$($drives | Sort-Object -Unique)&quot; -ForegroundColor Yellow \t$OFS = &quot; &quot; } # Desktop # \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430, \u0432 \u043a\u043e\u0440\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 \u0434\u043b\u044f &quot; -NoNewline \tWrite-Host &quot;`&quot;\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0441\u0442\u043e\u043b`&quot;&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType the drive letter in the root of which the &quot; -NoNewline \tWrite-Host &quot;`&quot;Desktop`&quot; &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;folder will be created.&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$drive = Read-Host -Prompt &quot; &quot; \tIF ($drives -eq $drive) \t{ \t\t$drive = $(${drive}.ToUpper()) \t\t$DesktopFolder = &quot;${drive}:\\Desktop&quot; \t\t$DesktopReg = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name Desktop \t\tIF ($DesktopReg -ne $DesktopFolder) \t\t{ \t\t\tIF (-not (Test-Path -Path $DesktopFolder)) \t\t\t{ \t\t\t\tNew-Item -Path $DesktopFolder -ItemType Directory -Force \t\t\t} \t\t\tKnownFolderPath -KnownFolder Desktop -Path $DesktopFolder \t\t\tNew-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{754AC886-DF64-4CBA-86B5-F7FBF4FBCEF5}&quot; -PropertyType ExpandString -Value $DesktopFolder -Force \t\t\tSet-Content -Path &quot;$DesktopFolder\\desktop.ini&quot; -Value $DesktopINI[&quot;Desktop&quot;] -Encoding Unicode -Force \t\t\t(Get-Item -Path &quot;$DesktopFolder\\desktop.ini&quot; -Force).Attributes = &quot;Hidden&quot;, &quot;System&quot;, &quot;Archive&quot; \t\t\t(Get-Item -Path &quot;$DesktopFolder\\desktop.ini&quot; -Force).Refresh() \t\t} \t} \telseif ([string]::IsNullOrEmpty($drive)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u0414\u0438\u0441\u043a $(${drive}.ToUpper()): \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;The disk $(${drive}.ToUpper()): does not exist. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;Type the drive letter.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($drives -eq $drive) # Documents # \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430, \u0432 \u043a\u043e\u0440\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 \u0434\u043b\u044f &quot; -NoNewline \tWrite-Host &quot;`&quot;\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b`&quot;&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType the drive letter in the root of which the &quot; -NoNewline \tWrite-Host &quot;`&quot;Documents`&quot; &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;folder will be created.&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$drive = Read-Host -Prompt &quot; &quot; \tIF ($drives -eq $drive) \t{ \t\t$drive = $(${drive}.ToUpper()) \t\t$DocumentsFolder = &quot;${drive}:\\Documents&quot; \t\t$DocumentsReg = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name Personal \t\tIF ($DocumentsReg -ne $DocumentsFolder) \t\t{ \t\t\tIF (-not (Test-Path -Path $DocumentsFolder)) \t\t\t{ \t\t\t\tNew-Item -Path $DocumentsFolder -ItemType Directory -Force \t\t\t} \t\t\tKnownFolderPath -KnownFolder Documents -Path $DocumentsFolder \t\t\tNew-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{F42EE2D3-909F-4907-8871-4C22FC0BF756}&quot; -PropertyType ExpandString -Value $DocumentsFolder -Force \t\t\tSet-Content -Path &quot;$DocumentsFolder\\desktop.ini&quot; -Value $DesktopINI[&quot;Documents&quot;] -Encoding Unicode -Force \t\t\t(Get-Item -Path &quot;$DocumentsFolder\\desktop.ini&quot; -Force).Attributes = &quot;Hidden&quot;, &quot;System&quot;, &quot;Archive&quot; \t\t\t(Get-Item -Path &quot;$DocumentsFolder\\desktop.ini&quot; -Force).Refresh() \t\t} \t} \telseif ([string]::IsNullOrEmpty($drive)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u0414\u0438\u0441\u043a $(${drive}.ToUpper()): \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;The disk $(${drive}.ToUpper()): does not exist. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;Type the drive letter.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($drives -eq $drive) # Downloads # \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0438 IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430, \u0432 \u043a\u043e\u0440\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 \u0434\u043b\u044f &quot; -NoNewline \tWrite-Host &quot;`&quot;\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0438`&quot;&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType the drive letter in the root of which the &quot; -NoNewline \tWrite-Host &quot;`&quot;Downloads`&quot; &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;folder will be created.&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$drive = Read-Host -Prompt &quot; &quot; \tIF ($drives -eq $drive) \t{ \t\t$drive = $(${drive}.ToUpper()) \t\t$DownloadsFolder = &quot;${drive}:\\Downloads&quot; \t\t$DownloadsReg = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{374DE290-123F-4565-9164-39C4925E467B}&quot; \t\tIF ($DownloadsReg -ne $DownloadsFolder) \t\t{ \t\t\tIF (-not (Test-Path -Path $DownloadsFolder)) \t\t\t{ \t\t\t\tNew-Item -Path $DownloadsFolder -ItemType Directory -Force \t\t\t} \t\t\tKnownFolderPath -KnownFolder Downloads -Path $DownloadsFolder \t\t\tNew-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}&quot; -PropertyType ExpandString -Value $DownloadsFolder -Force \t\t\tSet-Content -Path &quot;$DownloadsFolder\\desktop.ini&quot; -Value $DesktopINI[&quot;Downloads&quot;] -Encoding Unicode -Force \t\t\t(Get-Item -Path &quot;$DownloadsFolder\\desktop.ini&quot; -Force).Attributes = &quot;Hidden&quot;, &quot;System&quot;, &quot;Archive&quot; \t\t\t(Get-Item -Path &quot;$DownloadsFolder\\desktop.ini&quot; -Force).Refresh() \t\t\t# Microsoft Edge \t\t\t$edge = (Get-AppxPackage &quot;Microsoft.MicrosoftEdge&quot;).PackageFamilyName \t\t\tNew-ItemProperty -Path &quot;HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\CurrentVersion\\AppContainer\\Storage\\$edge\\MicrosoftEdge\\Main&quot; -Name &quot;Default Download Directory&quot; -PropertyType String -Value $DownloadsFolder -Force \t\t} \t} \telseif ([string]::IsNullOrEmpty($drive)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u0414\u0438\u0441\u043a $(${drive}.ToUpper()): \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;The disk $(${drive}.ToUpper()): does not exist. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;Type the drive letter.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($drives -eq $drive) # Music # \u041c\u0443\u0437\u044b\u043a\u0430 IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430, \u0432 \u043a\u043e\u0440\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 \u0434\u043b\u044f &quot; -NoNewline \tWrite-Host &quot;`&quot;\u041c\u0443\u0437\u044b\u043a\u0430`&quot;&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType the drive letter in the root of which the &quot; -NoNewline \tWrite-Host &quot;`&quot;Music`&quot; &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;folder will be created.&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$drive = Read-Host -Prompt &quot; &quot; \tIF ($drives -eq $drive) \t{ \t\t$drive = $(${drive}.ToUpper()) \t\t$MusicFolder = &quot;${drive}:\\Music&quot; \t\t$MusicReg = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;My Music&quot; \t\tIF ($MusicReg -ne $MusicFolder) \t\t{ \t\t\tIF (-not (Test-Path -Path $MusicFolder)) \t\t\t{ \t\t\t\tNew-Item -Path $MusicFolder -ItemType Directory -Force \t\t\t} \t\t\tKnownFolderPath -KnownFolder Music -Path $MusicFolder \t\t\tNew-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{A0C69A99-21C8-4671-8703-7934162FCF1D}&quot; -PropertyType ExpandString -Value $MusicFolder -Force \t\t\tSet-Content -Path &quot;$MusicFolder\\desktop.ini&quot; -Value $DesktopINI[&quot;Music&quot;] -Encoding Unicode -Force \t\t\t(Get-Item -Path &quot;$MusicFolder\\desktop.ini&quot; -Force).Attributes = &quot;Hidden&quot;, &quot;System&quot;, &quot;Archive&quot; \t\t\t(Get-Item -Path &quot;$MusicFolder\\desktop.ini&quot; -Force).Refresh() \t\t} \t} \telseif ([string]::IsNullOrEmpty($drive)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u0414\u0438\u0441\u043a $(${drive}.ToUpper()): \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;The disk $(${drive}.ToUpper()): does not exist. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;Type the drive letter.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($drives -eq $drive) # Pictures # \u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430, \u0432 \u043a\u043e\u0440\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 \u0434\u043b\u044f &quot; -NoNewline \tWrite-Host &quot;`&quot;\u0418\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f`&quot;&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType the drive letter in the root of which the &quot; -NoNewline \tWrite-Host &quot;`&quot;Pictures`&quot; &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;folder will be created.&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$drive = Read-Host -Prompt &quot; &quot; \tIF ($drives -eq $drive) \t{ \t\t$drive = $(${drive}.ToUpper()) \t\t$PicturesFolder = &quot;${drive}:\\Pictures&quot; \t\t$PicturesReg = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;My Pictures&quot; \t\tIF ($PicturesReg -ne $PicturesFolder) \t\t{ \t\t\tIF (-not (Test-Path -Path $PicturesFolder)) \t\t\t{ \t\t\t\tNew-Item -Path $PicturesFolder -ItemType Directory -Force \t\t\t} \t\t\tKnownFolderPath -KnownFolder Pictures -Path $PicturesFolder \t\t\tNew-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{0DDD015D-B06C-45D5-8C4C-F59713854639}&quot; -PropertyType ExpandString -Value $PicturesFolder -Force \t\t\tSet-Content -Path &quot;$PicturesFolder\\desktop.ini&quot; -Value $DesktopINI[&quot;Pictures&quot;] -Encoding Unicode -Force \t\t\t(Get-Item -Path &quot;$PicturesFolder\\desktop.ini&quot; -Force).Attributes = &quot;Hidden&quot;, &quot;System&quot;, &quot;Archive&quot; \t\t\t(Get-Item -Path &quot;$PicturesFolder\\desktop.ini&quot; -Force).Refresh() \t\t} \t} \telseif ([string]::IsNullOrEmpty($drive)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u0414\u0438\u0441\u043a $(${drive}.ToUpper()): \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;`nThe disk $(${drive}.ToUpper()): does not exist. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;Type the drive letter.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($drives -eq $drive) # Videos # \u0412\u0438\u0434\u0435\u043e IF ($RU) { \tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430, \u0432 \u043a\u043e\u0440\u043d\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043f\u0430\u043f\u043a\u0430 \u0434\u043b\u044f &quot; -NoNewline \tWrite-Host &quot;`&quot;\u0412\u0438\u0434\u0435\u043e`&quot;&quot; -ForegroundColor Yellow \tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline } else { \tWrite-Host &quot;`nType the drive letter in the root of which the &quot; -NoNewline \tWrite-Host &quot;`&quot;Videos`&quot; &quot; -ForegroundColor Yellow -NoNewline \tWrite-Host &quot;folder will be created.&quot; \tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline } Do { \t$drive = Read-Host -Prompt &quot; &quot; \tIF ($drives -eq $drive) \t{ \t\t$drive = $(${drive}.ToUpper()) \t\t$VideosFolder = &quot;${drive}:\\Videos&quot; \t\t$VideosReg = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;My Video&quot; \t\tIF ($VideosReg -ne $VideosFolder) \t\t{ \t\t\tIF (-not (Test-Path -Path $VideosFolder)) \t\t\t{ \t\t\t\tNew-Item -Path $VideosFolder -ItemType Directory -Force \t\t\t} \t\t\tKnownFolderPath -KnownFolder Videos -Path $VideosFolder \t\t\tNew-ItemProperty -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name &quot;{35286A68-3C57-41A1-BBB1-0EAE73D76C95}&quot; -PropertyType ExpandString -Value $VideosFolder -Force \t\t\tSet-Content -Path &quot;$VideosFolder\\desktop.ini&quot; -Value $DesktopINI[&quot;Videos&quot;] -Encoding Unicode -Force \t\t\t(Get-Item -Path &quot;$VideosFolder\\desktop.ini&quot; -Force).Attributes = &quot;Hidden&quot;, &quot;System&quot;, &quot;Archive&quot; \t\t\t(Get-Item -Path &quot;$VideosFolder\\desktop.ini&quot; -Force).Refresh() \t\t} \t} \telseif ([string]::IsNullOrEmpty($drive)) \t{ \t\tbreak \t} \telse \t{ \t\tIF ($RU) \t\t{ \t\t\tWrite-Host &quot;`n\u0414\u0438\u0441\u043a $(${drive}.ToUpper()): \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u0443\u043a\u0432\u0443 \u0434\u0438\u0441\u043a\u0430.&quot; \t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t} \t\telse \t\t{ \t\t\tWrite-Host &quot;`nThe disk $(${drive}.ToUpper()): does not exist. &quot; -ForegroundColor Yellow -NoNewline \t\t\tWrite-Host &quot;Type the drive letter.&quot; \t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t} \t} } Until ($drives -eq $drive) # Save screenshots by pressing Win+PrtScr to the Desktop # \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u043f\u043e Win+PrtScr \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435 $value = Get-ItemPropertyValue -Path &quot;HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders&quot; -Name Desktop New-ItemProperty -Path &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FolderDescriptions\\{b7bede81-df94-4682-a7d8-57a52620b86f}&quot; -Name RelativePath -PropertyType String -Value $value -Force # Remove &quot;$env:SystemDrive\\PerfLogs&quot; # \u0423\u0434\u0430\u043b\u0438\u0442\u044c &quot;$env:SystemDrive\\PerfLogs&quot; Remove-Item $env:SystemDrive\\PerfLogs -Recurse -Force -ErrorAction SilentlyContinue # Remove &quot;$env:LOCALAPPDATA\\Temp&quot; # \u0423\u0434\u0430\u043b\u0438\u0442\u044c &quot;$env:LOCALAPPDATA\\Temp&quot; Remove-Item $env:LOCALAPPDATA\\Temp -Recurse -Force -ErrorAction SilentlyContinue # Remove &quot;$env:SYSTEMROOT\\Temp&quot; # \u0423\u0434\u0430\u043b\u0438\u0442\u044c &quot;$env:SYSTEMROOT\\Temp&quot; Restart-Service -Name Spooler -Force Remove-Item -Path &quot;$env:SystemRoot\\Temp&quot; -Recurse -Force -ErrorAction SilentlyContinue # Show more Windows Update restart notifications about restarting # \u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0434\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\WindowsUpdate\\UX\\Settings -Name RestartNotificationsAllowed2 -Value 1 -Force # Set &quot;High performance&quot; in graphics performance preference for apps # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 &quot;\u0412\u044b\u0441\u043e\u043a\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c&quot; IF ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -ne 2 -and (Get-CimInstance -ClassName Win32_VideoController | Where-Object -FilterScript {$_.AdapterDACType -ne &quot;Internal&quot; -and $null -ne $_.AdapterDACType})) { \tIF ($RU) \t{ \t\tWrite-Host &quot;`n\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u0434\u043e .exe \u0444\u0430\u0439\u043b\u043e\u0432, &quot; -NoNewline \t\tWrite-Host &quot;\u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c&quot; \t\tWrite-Host &quot;\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043d\u0430 `&quot;\u0412\u044b\u0441\u043e\u043a\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c`&quot;.&quot; \t\tWrite-Host &quot;\u041f\u0443\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u044b \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438 \u0438 \u0432\u0437\u044f\u0442\u044b \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438.&quot; -ForegroundColor Yellow \t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t} \telse \t{ \t\tWrite-Host &quot;`nType the full paths to .exe files for which to set&quot; \t\tWrite-Host &quot;graphics performance preference to `&quot;High performance GPU`&quot;.&quot; \t\tWrite-Host &quot;The paths must be separated by commas and taken in quotes.&quot; -ForegroundColor Yellow \t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t} \tIF (Test-Path -Path &quot;${env:ProgramFiles(x86)}\\Steam&quot;) \t{ \t\tStart-Process -FilePath &quot;${env:ProgramFiles(x86)}\\Steam\\steamapps\\common&quot; \t} \tfunction GpuPreference \t{ \t\t[CmdletBinding()] \t\tParam \t\t( \t\t\t[Parameter(Mandatory = $True)] \t\t\t[string[]]$apps \t\t) \t\tforeach ($app in $apps) \t\t{ \t\t\tNew-ItemProperty -Path HKCU:\\Software\\Microsoft\\DirectX\\UserGpuPreferences -Name $app -Type String -Value &quot;GpuPreference=2;&quot; -Force \t\t} \t} \tDo \t{ \t\t$apps = Read-Host -Prompt &quot; &quot; \t\tIF ($app -match &quot;.exe&quot; -and $app -match &quot;`&quot;&quot;) \t\t{ \t\t\t$apps = $apps.Replace(&quot;`&quot;&quot;, &quot;&quot;).Split(&quot;,&quot;).Trim() \t\t\tGpuPreference $apps \t\t} \t\telseif ([string]::IsNullOrEmpty($app)) \t\t{ \t\t\tbreak \t\t} \t\telse \t\t{ \t\t\tIF ($RU) \t\t\t{ \t\t\t\tWrite-Host &quot;`n\u041f\u0443\u0442\u0438 \u043d\u0435 \u0432\u0437\u044f\u0442\u044b \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438\u043b\u0438 \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 .exe \u0444\u0430\u0439\u043b\u044b.&quot; -ForegroundColor Yellow \t\t\t\tWrite-Host &quot;\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u0434\u043e .exe \u0444\u0430\u0439\u043b\u043e\u0432, \u0432\u0437\u044f\u0432 \u0432 \u043a\u0430\u0432\u044b\u0447\u043a\u0438 \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0432 \u0437\u0430\u043f\u044f\u0442\u044b\u043c\u0438.&quot; \t\t\t\tWrite-Host &quot;`n\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 Enter&quot; -NoNewline \t\t\t} \t\t\telse \t\t\t{ \t\t\t\tWrite-Host &quot;`nThe paths hasn't been taken in quotes or do not contain links to .exe files&quot; -ForegroundColor Yellow \t\t\t\tWrite-Host &quot;Type the full paths to .exe files by quoting and separating by commas.&quot; \t\t\t\tWrite-Host &quot;`nPress Enter to skip&quot; -NoNewline \t\t\t} \t\t} \t} \tUntil ($app -match &quot;.exe&quot; -and $app -match &quot;`&quot;&quot;) } # Automatically adjust active hours for me based on daily usage # \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0435\u0440\u0438\u043e\u0434 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\WindowsUpdate\\UX\\Settings -Name SmartActiveHoursState -Value 1 -Force # Turn on automatic recommended troubleshooting # \u0423\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0431\u0435\u0437 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 IF (-not (Test-Path -Path HKLM:\\SOFTWARE\\Microsoft\\WindowsMitigation)) { \tNew-Item -Path HKLM:\\SOFTWARE\\Microsoft\\WindowsMitigation -Force } New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\WindowsMitigation -Name UserPreference -Value 4 -Force # Turn on Windows Sandbox # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c Windows Sandbox IF (Get-WindowsEdition -Online | Where-Object -FilterScript {$_.Edition -eq &quot;Professional&quot; -or $_.Edition -eq &quot;Enterprise&quot;}) { \tIF ((Get-CimInstance -ClassName CIM_Processor).VirtualizationFirmwareEnabled -eq $true) \t{ \t\tEnable-WindowsOptionalFeature \u2013FeatureName Containers-DisposableClientVM -All -Online -NoRestart \t} \telse \t{ \t\ttry \t\t{ \t\t\tIF ((Get-CimInstance \u2013ClassName CIM_ComputerSystem).HypervisorPresent -eq $true) \t\t\t{ \t\t\t\tEnable-WindowsOptionalFeature \u2013FeatureName Containers-DisposableClientVM -All -Online -NoRestart \t\t\t} \t\t} \t\tcatch \t\t{ \t\t\tWrite-Error &quot;Enable Virtualization in BIOS&quot; \t\t} \t} } # Turn off reserved storage # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ReserveManager -Name BaseHardReserveSize -PropertyType QWord -Value 0 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ReserveManager -Name BaseSoftReserveSize -PropertyType QWord -Value 0 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ReserveManager -Name HardReserveAdjustment -PropertyType QWord -Value 0 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ReserveManager -Name MinDiskSize -PropertyType QWord -Value 0 -Force New-ItemProperty -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ReserveManager -Name ShippedWithReserves -Value 0 -Force # Launch folder in a separate process # \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043e\u043a\u043d\u0430 \u0441 \u043f\u0430\u043f\u043a\u0430\u043c\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 New-ItemProperty -Path HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced -Name SeparateProcess -Value 1 -Force # Turn on automatic backup the system registry to the &quot;$env:SystemRoot\\System32\\config\\RegBack&quot; folder # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043f\u0438\u0438 \u0440\u0435\u0435\u0441\u0442\u0440\u0430 \u0432 \u043f\u0430\u043f\u043a\u0443 &quot;$env:SystemRoot\\System32\\config\\RegBack&quot; New-ItemProperty -Path &quot;HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager&quot; -Name EnablePeriodicBackup -Value 1 -Force # Restart Start menu # \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043c\u0435\u043d\u044e &quot;\u041f\u0443\u0441\u043a&quot; Stop-Process -Name StartMenuExperienceHost -Force # Refresh desktop icons, environment variables and taskbar without restarting File Explorer # \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043a\u043e\u043d\u043a\u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430, \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u044b \u0438 \u043f\u0430\u043d\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0447 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430 &quot;\u041f\u0440\u043e\u0432\u043e\u0434\u043d\u0438\u043a\u0430&quot; $UpdateEnvExplorerAPI = @{ \tNamespace = &quot;WinAPI&quot; \tName = &quot;UpdateEnvExplorer&quot; \tLanguage = &quot;CSharp&quot; \tMemberDefinition = @&quot; \t\tprivate static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff); \t\tprivate const int WM_SETTINGCHANGE = 0x1a; \t\tprivate const int SMTO_ABORTIFHUNG = 0x0002; \t\t[DllImport(&quot;user32.dll&quot;, CharSet = CharSet.Auto, SetLastError = false)] \t\tstatic extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, IntPtr wParam, string lParam); \t\t[DllImport(&quot;user32.dll&quot;, CharSet = CharSet.Auto, SetLastError = false)] \t\tprivate static extern IntPtr SendMessageTimeout(IntPtr hWnd, int Msg, IntPtr wParam, string lParam, int fuFlags, int uTimeout, IntPtr lpdwResult); \t\t[DllImport(&quot;shell32.dll&quot;, CharSet = CharSet.Auto, SetLastError = false)] \t\tprivate static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2); \t\tpublic static void Refresh() \t\t{ \t\t\t\/\/ Update desktop icons \t\t\tSHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero); \t\t\t\/\/ Update environment variables \t\t\tSendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, null, SMTO_ABORTIFHUNG, 100, IntPtr.Zero); \t\t\t\/\/ Update taskbar \t\t\tSendNotifyMessage(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, &quot;TraySettings&quot;); \t\t} &quot;@ } IF (-not (&quot;WinAPI.UpdateEnvExplorer&quot; -as [type])) { \tAdd-Type @UpdateEnvExplorerAPI } [WinAPI.UpdateEnvExplorer]::Refresh() # Errors output # \u0412\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043e\u043a Write-Host &quot;`nErrors&quot; -BackgroundColor Red ($Error | Where-Object -FilterScript {$_ -notmatch &quot;Taskmgr&quot; -and $_ -notmatch &quot;TaskManager&quot;} | ForEach-Object -Process { \t[PSCustomObject] @{ \t\tLine = $_.InvocationInfo.ScriptLineNumber \t\tError = $_.Exception.Message \t} } | Format-Table -AutoSize -Wrap | Out-String).Trim() <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<h3>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u0415\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0432 \u0444\u0430\u0439\u043b .ps1, \u0422\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043a\u0443 \u043d\u0430 \u00abUTF-8 \u0441 BOM\u00bb<\/li>\n<\/ul>\n<p>  \u0438\u043b\u0438<\/p>\n<ul>\n<li>\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u0434 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438 \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432 PowerShell ISE<\/li>\n<\/ul>\n<p>  <b>NB<\/b><\/p>\n<ul>\n<li>PowerShell \u0438 PowerShell ISE \u0434\u043e\u043b\u0436\u043d\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0430\u0432\u0430\u043c\u0438<\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 PowerShell<\/li>\n<\/ul>\n<p>  <\/p>\n<pre><code class=\"plaintext\">Set-ExecutionPolicy Unrestricted -Force <\/code><\/pre>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/465365\/\"> https:\/\/habr.com\/ru\/post\/465365\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\u0414\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c \u043f\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Windows 10 (\u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f 18362), \u0434\u0430 \u0432\u0441\u0435 \u0440\u0443\u043a\u0438 \u043d\u0435 \u0434\u043e\u0445\u043e\u0434\u0438\u043b\u0438. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0433\u043e \u0447\u0430\u0441\u0442\u0438.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0443\u043d\u043a\u0442\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0432\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u0430\u0436\u043d\u043e\u0435.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443-\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0442\u043e \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043a\u0430\u0442.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-293976","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=293976"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/293976\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=293976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=293976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=293976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}