Browse Source

24.10.2021 6.0.7

Sophia Script for Windows 10 5.12.6
Sophia Script for Windows 10 LTSC 2019 5.2.17
Sophia Script for Windows 10 LTSC 2021 5.12.6
pull/305/head
Dmitry Nefedov 3 years ago
parent
commit
ef70b3daef
  1. 6
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1
  2. 2
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Manifest/Sophia.psd1
  3. 77
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1
  4. 18
      Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1
  5. 2
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1
  6. 2
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1
  7. 10
      Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1
  8. 8
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1
  9. 52
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/de-DE/Sophia.psd1
  10. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/en-US/Sophia.psd1
  11. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/es-ES/Sophia.psd1
  12. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/fr-FR/Sophia.psd1
  13. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/hu-HU/Sophia.psd1
  14. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/it-IT/Sophia.psd1
  15. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/pt-BR/Sophia.psd1
  16. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/ru-RU/Sophia.psd1
  17. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/tr-TR/Sophia.psd1
  18. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/uk-UA/Sophia.psd1
  19. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/zh-CN/Sophia.psd1
  20. 2
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Manifest/Sophia.psd1
  21. 144
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1
  22. 37
      Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1
  23. 6
      Sophia Script/Sophia Script for Windows 10/Functions.ps1
  24. 49
      Sophia Script/Sophia Script for Windows 10/Localizations/de-DE/Sophia.psd1
  25. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/en-US/Sophia.psd1
  26. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/es-ES/Sophia.psd1
  27. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/fr-FR/Sophia.psd1
  28. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/hu-HU/Sophia.psd1
  29. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/it-IT/Sophia.psd1
  30. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/pt-BR/Sophia.psd1
  31. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/ru-RU/Sophia.psd1
  32. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/tr-TR/Sophia.psd1
  33. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/uk-UA/Sophia.psd1
  34. 1
      Sophia Script/Sophia Script for Windows 10/Localizations/zh-CN/Sophia.psd1
  35. 2
      Sophia Script/Sophia Script for Windows 10/Manifest/Sophia.psd1
  36. 120
      Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1
  37. 27
      Sophia Script/Sophia Script for Windows 10/Sophia.ps1
  38. 8
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1
  39. BIN
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Libraries/Microsoft.Windows.SDK.NET.dll
  40. 2
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Manifest/Sophia.psd1
  41. 151
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1
  42. 49
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1
  43. BIN
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Start_Layout/start.bin
  44. 6
      Sophia Script/Sophia Script for Windows 11/Functions.ps1
  45. 50
      Sophia Script/Sophia Script for Windows 11/Localizations/de-DE/Sophia.psd1
  46. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/en-US/Sophia.psd1
  47. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/es-ES/Sophia.psd1
  48. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/fr-FR/Sophia.psd1
  49. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/hu-HU/Sophia.psd1
  50. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/it-IT/Sophia.psd1
  51. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/pt-BR/Sophia.psd1
  52. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/ru-RU/Sophia.psd1
  53. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/tr-TR/Sophia.psd1
  54. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/uk-UA/Sophia.psd1
  55. 2
      Sophia Script/Sophia Script for Windows 11/Localizations/zh-CN/Sophia.psd1
  56. 2
      Sophia Script/Sophia Script for Windows 11/Manifest/Sophia.psd1
  57. 153
      Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1
  58. 58
      Sophia Script/Sophia Script for Windows 11/Sophia.ps1
  59. 206
      Sophia Script/Sophia Script for Windows 11/Sophia_edited.ps1
  60. BIN
      Sophia Script/Sophia Script for Windows 11/Start_Layout/start.bin

6
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.2.16
Date: 24.10.2021
Version: v5.2.17
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.16 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.17 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

2
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.2.16'
ModuleVersion = '5.2.17'
GUID = 'a36a65ca-70f9-43df-856c-3048fc5e7f01'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2021 farag & Inestic. All rights reserved'

77
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.2.16
Date: 24.10.2021
Version: v5.2.17
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -93,7 +93,7 @@ function Checkings
# Check whether the logged-in user is an admin
$CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf
$CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
$LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
switch ($CurrentUserName -ne $LoginUserName)
{
@ -118,7 +118,8 @@ function Checkings
exit
}
# Check whether the OS was infected by Win 10 Tweaker
# Check whether the OS was infected by Win 10 Tweaker's trojan
# https://win10tweaker.ru
if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker")
{
Write-Warning -Message $Localization.Win10TweakerWarning
@ -129,6 +130,14 @@ function Checkings
exit
}
# Check whether the OS was destroyed by Sycnex's Windows10Debloater script
# https://github.com/Sycnex/Windows10Debloater
if (Test-Path -Path $env:SystemDrive\Temp\Windows10Debloater)
{
Write-Warning -Message $Localization.Windows10DebloaterWarning
exit
}
# Check if the current module version is the latest one
try
{
@ -139,7 +148,7 @@ function Checkings
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
UseBasicParsing = $true
}
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_LTSC
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_LTSC2019
$CurrentRelease = (Get-Module -Name Sophia).Version.ToString()
switch ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease)
{
@ -1970,7 +1979,6 @@ function NotificationAreaIcons
}
}
<#
.SYNOPSIS
The Control Panel icons view
@ -3636,7 +3644,6 @@ function WindowsFeatures
{
"Enable"
{
$State = @("Disabled", "DisablePending")
$ButtonContent = $Localization.Enable
$ButtonAdd_Click = {EnableButton}
@ -5503,7 +5510,7 @@ function WinPrtScrFolder
"Desktop"
{
$DesktopFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -PropertyType ExpandString -Value $DesktopFolder -Force
}
"Default"
{
@ -5914,11 +5921,9 @@ function NetworkDiscovery
$FirewallRules = @(
# File and printer sharing
# Общий доступ к файлам и принтерам
"@FirewallAPI.dll,-32752",
# Network discovery
# Сетевое обнаружение
"@FirewallAPI.dll,-28502"
)
@ -6644,6 +6649,35 @@ public static void Refresh()
[WinAPI.UpdateExplorer]::Refresh()
}
<#
.SYNOPSIS
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
.EXAMPLE
VCRedistx64
.LINK
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
.NOTES
Machine-wide
#>
function InstallVCRedistx64
{
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
$Parameters = @{
Uri = "https://aka.ms/vs/16/release/vc_redist.x64.exe"
OutFile = "$DownloadsFolder\vc_redist.x64.exe"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
Start-Process -FilePath "$DownloadsFolder\vc_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
Remove-Item -Path "$DownloadsFolder\vc_redist.x64.exe", "$env:TEMP\dd_vcredist_amd64_*.log" -Force -ErrorAction Ignore
}
#endregion System
#region Start menu
@ -6925,34 +6959,27 @@ function CleanupTask
$VolumeCaches = @(
# Delivery Optimization Files
# Файлы оптимизации доставки
"Delivery Optimization Files",
# Device driver packages
# Пакеты драйверов устройств
"Device Driver Packages",
# Previous Windows Installation(s)
# Предыдущие установки Windows
"Previous Installations",
# Setup log files
# Файлы журнала установки
"Setup Log Files",
# Temporary Setup Files
# Временные файлы установки
"Temporary Setup Files",
# Windows Update Cleanup
# Очистка обновлений Windows
"Update Cleanup",
# Windows Defender
"Windows Defender",
# Windows upgrade log files
# Файлы журнала обновления Windows
"Windows Upgrade Log Files"
)
foreach ($VolumeCache in $VolumeCaches)
@ -7055,7 +7082,7 @@ while (`$true)
New-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command -Force
}
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "(default)" -PropertyType String -Value "URL:WindowsCleanup" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name EditFlags -PropertyType DWord -Value 2162688 -Force
# Start the "Windows Cleanup" task if the "Run" button clicked
@ -8191,18 +8218,18 @@ function CABInstallContext
{
"Show"
{
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command))
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas\Command))
{
New-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command -Force
New-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas\Command -Force
}
$Value = "{0}" -f "cmd /c DISM.exe /Online /Add-Package /PackagePath:`"%1`" /NoRestart & pause"
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs\Command -Name "(default)" -PropertyType String -Value $Value -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs -Name MUIVerb -PropertyType String -Value "@shell32.dll,-10210" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs -Name HasLUAShield -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas\Command -Name "(default)" -PropertyType String -Value $Value -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas -Name MUIVerb -PropertyType String -Value "@shell32.dll,-10210" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas -Name HasLUAShield -PropertyType String -Value "" -Force
}
"Hide"
{
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\RunAs -Recurse -Force -ErrorAction Ignore
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\CABFolder\Shell\runas -Recurse -Force -ErrorAction Ignore
}
}
}
@ -8421,7 +8448,7 @@ function EditWithPaint3DContext
$Extensions = @(".bmp", ".gif", ".jpe", ".jpeg", ".jpg", ".png", ".tif", ".tiff")
foreach ($Extension in $Extensions)
{
Remove-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\SystemFileAssociations\$Extension\Shell\3D Edit" -Name ProgrammaticAccessOnly -Force -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\SystemFileAssociations\$Extension\Shell\3D Edit" -Name ProgrammaticAccessOnly -Force -ErrorAction Ignore
}
}
}

18
Sophia Script/Sophia Script for Windows 10 LTSC 2019/Sophia.ps1

@ -1,9 +1,9 @@
<#
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 LTSC"
Default preset file for "Sophia Script for Windows 10 LTSC 2019"
Version: v5.2.16
Date: 24.10.2021
Version: v5.2.17
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -29,7 +29,7 @@
Supported Windows 10 version
Version: 1809
Build: 17763
Edition: Enterprise LTSC
Edition: Enterprise LTSC 2019
Architecture: x64
.NOTES
@ -72,7 +72,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.16 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 LTSC v5.2.17 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -739,6 +739,14 @@ ActiveHours -Automatically
Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
#>
# Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
<#
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
Установить последнюю поддерживаемую версию Microsoft Visual C++ Redistributable 2015-2022 x64
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
#>
VCRedistx64
#endregion System
#region Start menu

2
Sophia Script/Sophia Script for Windows 10 LTSC 2021/Functions.ps1

@ -3,7 +3,7 @@
The TAB completion for functions and their arguments
Version: v5.12.6
Date: 21.11.2021
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic

2
Sophia Script/Sophia Script for Windows 10 LTSC 2021/Module/Sophia.psm1

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.12.6
Date: 21.11.2021
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic

10
Sophia Script/Sophia Script for Windows 10 LTSC 2021/Sophia.ps1

@ -1,9 +1,9 @@
<#
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10"
Default preset file for "Sophia Script for Windows 10 LTSC 2021"
Version: v5.12.6
Date: 21.11.2021
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -27,9 +27,9 @@
.NOTES
Supported Windows 10 versions
Versions: 2004/20H2/21H1/21H2
Builds: 19041/19042/19043/19044
Editions: Home/Pro/Enterprise
Version: 21H2
Build: 19044
Edition: Enterprise LTSC 2021
Architecture: x64
.NOTES

8
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.12.5
Date: 24.10.2021
Version: v5.12.6
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -31,7 +31,7 @@
#>
#Requires -RunAsAdministrator
#Requires -Version 7.1
#Requires -Version 7.2
function Sophia
{
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.5 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.6 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

52
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/de-DE/Sophia.psd1

@ -1,51 +1,51 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 2004/20H2/21H1/21H2-Versionen
UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 1151 und höher
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen, ein Skript über PowerShell {0}.{1} auszuführen. Führen Sie das Skript in der entsprechenden PowerShell-Version aus
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
UnsupportedISE = Das Skript unterstützt nicht die Ausführung über Windows PowerShell ISE
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert
PowerShellLibraries = Im Ordner "Libraries" befinden sich keine Dateien. Bitte laden Sie das Archiv erneut herunter
PowerShellLibraries = Im Ordner "Libraries" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen?
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = Deinstalliere OneDrive...
OneDriveInstalling = Installieren von OneDrive...
OneDriveDownloading = OneDrive herunterladen... ~33 MB
OneDriveUninstalling = OneDrive deinstallieren
OneDriveInstalling = OneDrive installieren
OneDriveDownloading = OneDrive herunterladen ~33 MB
OneDriveWarning = Die "{0}"-Funktion wird nur angewendet, wenn die Voreinstellung so konfiguriert ist, dass OneDrive entfernt wird, andernfalls wird die Backup-Funktionalität für die Ordner "Desktop" und "Bilder" in OneDrive unterbrochen
WindowsFeaturesTitle = Windows-Features
OptionalFeaturesTitle = Optionale Features
EnableHardwareVT = Virtualisierung in UEFI aktivieren
UserShellFolderNotEmpty = Im Ordner "{0}" befinden sich noch Dateien \nVerschieben Sie sie manuell an einen neuen Ort
RetrievingDrivesList = Abrufen der Laufwerksliste...
RetrievingDrivesList = Laufwerksliste abrufen
DriveSelect = Wählen Sie das Laufwerk aus, in dessen Stammverzeichnis der Ordner "{0}" erstellt werden soll
CurrentUserFolderLocation = Der aktuelle Speicherort des Ordners "{0}" lautet: "{1}"
UserFolderRequest = Möchten Sie den Speicherort des Ordners "{0}" ändern?
UserFolderSelect = Wählen Sie einen Ordner für den Ordner "{0}"
UserDefaultFolder = Möchten Sie den Speicherort des Ordners "{0}" auf den Standardwert ändern?
ReservedStorageIsInUse = Dieser Vorgang wird nicht unterstützt, wenn reservierter Speicher verwendet wird\nBitte führen Sie die Funktion "{0}" nach dem PC-Neustart erneut aus
ShortcutPinning = Die Verknüpfung "{0}" wird an Start angeheftet...
ShortcutPinning = Die Verknüpfung "{0}" wird an Start angeheftet
UninstallUWPForAll = Für alle Benutzer
UWPAppsTitle = UWP-Apps
HEVCDownloading = Herunterladen von HEVC-Videoerweiterungen vom Gerätehersteller... ~2,8 MB
HEVCDownloading = HEVC-Videoerweiterungen vom Gerätehersteller herunterladen ~2,8 MB
GraphicsPerformanceTitle = Bevorzugte Grafikleistung
GraphicsPerformanceRequest = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" setzen?
GraphicsPerformanceRequest = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" einstellen?
TaskNotificationTitle = Benachrichtigung
CleanupTaskNotificationTitle = Wichtige informationen
CleanupTaskDescription = Bereinigung ungenutzter Windows-Dateien und -Updates mit der integrierten Datenträgerbereinigung
CleanupTaskNotificationEventTitle = Aufgabe ausführen, um nicht verwendete Windows-Dateien und -Updates zu bereinigen?
CleanupTaskNotificationEvent = Die Datenträgerbereinigung dauert nicht lange. Das nächste Mal wird die Benachrichtigung in 30 Tagen angezeigt
CleanupTaskNotificationSnoozeInterval = Wählen Sie einen Erinnerungsintervall
CleanupNotificationTaskDescription = Bereinigung ungenutzter Windows-Dateien und -Updates mit der integrierten Datenträgerbereinigung
SoftwareDistributionTaskNotificationEvent = Der Cache von Windows Update wurde erfolgreich gelöscht
CleanupTaskNotificationTitle = Wichtige Informationen
CleanupTaskDescription = Bereinigung von nicht verwendeten Windows-Dateien und Updates mit der integrierten Festplattenbereinigung
CleanupTaskNotificationEventTitle = Aufgabe zum Bereinigen nicht verwendeter Windows-Dateien und -Updates ausführen?
CleanupTaskNotificationEvent = Die Bereinigung von Windows wird nicht lange dauern. Das nächste Mal wird diese Benachrichtigung in 30 Tagen erscheinen
CleanupTaskNotificationSnoozeInterval = Ein Erinnerungsintervall auswählen
CleanupNotificationTaskDescription = Popup-Benachrichtigung zur Erinnerung an die Bereinigung von nicht verwendeten Windows-Dateien und Updates
SoftwareDistributionTaskNotificationEvent = Der Windows Update-Cache wurde erfolgreich gelöscht
TempTaskNotificationEvent = Der Ordner mit den temporären Dateien wurde erfolgreich bereinigt
FolderTaskDescription = Die Bereinigung des Ordners "{0}"
EventViewerCustomViewName = Prozess-Erstellung
EventViewerCustomViewDescription = Ereignisse zur Prozesserstellung und Befehlszeilen-Auditierung
RestartWarning = Achten Sie darauf, Ihren PC neu zu starten
FolderTaskDescription = Ordner "{0}" bereinigen
EventViewerCustomViewName = Prozesserstellung
EventViewerCustomViewDescription = Prozesserstellungen und Befehlszeilen-Auditing-Ereignisse
RestartWarning = Sicherstellen, dass Sie Ihren PC neu starten
ErrorsLine = Zeile
ErrorsFile = Datei
ErrorsMessage = Fehler/Warnungen
@ -53,11 +53,11 @@ Add = Hinzufügen
AllFilesFilter = Alle Dateien (*.*)|*.*
Browse = Durchsuchen
Change = Ändern
DialogBoxOpening = Anzeigen des Dialogfensters...
DialogBoxOpening = Anzeigen des Dialogfensters
Disable = Deaktivieren
Enable = Aktivieren
EXEFilesFilter = *.exe|*.exe|Alle Dateien (*.*)|*.*
FolderSelect = Wählen Sie einen Ordner aus
FolderSelect = Einen Ordner auswählen
FilesWontBeMoved = Dateien werden nicht verschoben
FourHours = 4 Stunden
HalfHour = 30 Minuten
@ -65,15 +65,15 @@ Install = Installieren
Minute = 1 Minute
NoData = Nichts anzuzeigen
NoInternetConnection = Keine Internetverbindung
RestartFunction = Bitte starten Sie die Funktion "{0}" neu
RestartFunction = Bitte die Funktion "{0}" neustarten
NoResponse = Eine Verbindung mit {0} konnte nicht hergestellt werden
No = Nein
Yes = Ja
Open = Öffnen
Patient = Bitte Warten...
Patient = Bitte warten
Restore = Wiederherstellen
Run = Starten
SelectAll = Wählen Sie Alle
SelectAll = Alle auswählen
Skip = Überspringen
Skipped = Übersprungen
FileExplorerRestartPrompt = \nManchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/en-US/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 2004/20H2/21H1/21H2 versions
UpdateWarning = Windows 10 cumulative update installed: {0}. Supported cumulative update: 1151 and higher

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/es-ES/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = El script sólo es compatible con Windows 10 x64
UnsupportedOSBuild = El script es compatible con versión Windows 10 2004/20H2/21H1/21H2
UpdateWarning = Actualización acumulativa de Windows 10 instalada: {0}. Actualización acumulativa soportada: 1151 y superior

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/fr-FR/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte les versions Windows 10 2004/20H2/21H1/21H2
UpdateWarning = La mise à jour cumulative de Windows 10 est installée : {0}. Mise à jour cumulative prise en charge : 1151 et plus

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/hu-HU/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript támogatja a Windows 10 2004/20H2/21H1/21H2 verziókat
UpdateWarning = A Windows 10 összesített frissítése telepítve: {0}. Támogatott kumulatív frissítés: 1151 és magasabb verziószámok

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/it-IT/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10, 2004/20H2/21H1/21H2 versioni
UpdateWarning = Windows 10 cumulative update installato: {0}. Aggiornamento cumulativo supportato: 1151 e superiore

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/pt-BR/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 2004/20H2/21H1/21H2
UpdateWarning = Atualização cumulativa do Windows 10 instalado: {0}. Actualização acumulada suportada: 1151 e superior

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/ru-RU/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 версии 2004/20H2/21H1/21H2
UpdateWarning = Установленный накопительный пакет обновления Windows 10: {0}. Поддерживаемый накопительный пакет обновления: 1151 и выше

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/tr-TR/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Komut dosyası, Windows 10 2004/20H2/21H1/21H2 sürümlerini destekler
UpdateWarning = Windows 10 toplu güncelleştirmesi yüklendi: {0}. Desteklenen toplu güncelleme: 1151 ve üstü

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/uk-UA/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 версії 2004/20H2/21H1/21H2
UpdateWarning = Встановлений зведене оновлення Windows 10: {0}. Підтримуваний накопичувальний пакет оновлення: 1151 і вище

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Localizations/zh-CN/Sophia.psd1

@ -1,4 +1,4 @@
ConvertFrom-StringData -StringData @'
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本2004/20H2/21H1/21H2和更高版本
UpdateWarning = 安装了Windows 10累积更新{0}. 支持的累积更新1151及以上

2
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.12.5'
ModuleVersion = '5.12.6'
GUID = 'aa0b47a7-1770-4b5d-8c9f-cc6c505bcc7a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2021 farag & Inestic. All rights reserved'

144
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.12.5
Date: 24.10.2021
Version: v5.12.6
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -118,7 +118,7 @@ function Checkings
# Check whether the logged-in user is an admin
$CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf
$CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
$LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
switch ($CurrentUserName -ne $LoginUserName)
{
@ -144,6 +144,7 @@ function Checkings
}
# Check whether the OS was infected by Win 10 Tweaker
# https://win10tweaker.ru
if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker")
{
Write-Warning -Message $Localization.Win10TweakerWarning
@ -154,6 +155,14 @@ function Checkings
exit
}
# Check whether the OS was destroyed by Sycnex's Windows10Debloater script
# https://github.com/Sycnex/Windows10Debloater
if (Test-Path -Path $env:SystemDrive\Temp\Windows10Debloater)
{
Write-Warning -Message $Localization.Windows10DebloaterWarning
exit
}
# Check whether there are libraries in the Libraries folder
$Libraries = @("$PSScriptRoot\..\Libraries\Microsoft.Windows.SDK.NET.dll", "$PSScriptRoot\..\Libraries\WinRT.Runtime.dll")
if (($Libraries | Test-Path) -contains $false)
@ -173,7 +182,7 @@ function Checkings
# https://github.com/farag2/Sophia-Script-for-Windows/blob/master/sophia_script_versions.json
$Parameters = @{
Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/sophia_script_versions.json"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
UseBasicParsing = $true
}
$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_PowerShell_7
@ -269,7 +278,7 @@ function Logging
function CreateRestorePoint
{
$SystemDriveUniqueID = (Get-Volume | Where-Object -FilterScript {$_.DriveLetter -eq "$($env:SystemDrive[0])"}).UniqueID
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients")."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients" -ErrorAction Ignore)."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$ComputerRestorePoint = $false
@ -3571,7 +3580,7 @@ public static bool MarkFileDelete (string sourcefile)
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# Terminate the File Explorer process
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
@ -3585,7 +3594,7 @@ public static bool MarkFileDelete (string sourcefile)
}
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 1 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 1 -Force
# Attempt to unregister FileSyncShell64.dll and remove
$FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\amd64\FileSyncShell64.dll" -Force
@ -3647,7 +3656,7 @@ public static bool MarkFileDelete (string sourcefile)
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}
@ -3664,7 +3673,7 @@ public static bool MarkFileDelete (string sourcefile)
# https://go.microsoft.com/fwlink/p/?LinkID=844652
$Parameters = @{
Uri = "https://g.live.com/1rewlive5skydrive/OneDriveProduction"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
UseBasicParsing = $true
Verbose = $true
}
@ -3678,7 +3687,7 @@ public static bool MarkFileDelete (string sourcefile)
$Parameters = @{
Uri = $OneDriveURL
OutFile = "$DownloadsFolder\OneDriveSetup.exe"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
UseBasicParsing = $true
Verbose = $true
}
@ -4818,7 +4827,6 @@ function WindowsFeatures
{
"Enable"
{
$State = @("Disabled", "DisablePending")
$ButtonContent = $Localization.Enable
$ButtonAdd_Click = {EnableButton}
@ -5191,7 +5199,7 @@ function WindowsCapabilities
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}
@ -5565,7 +5573,7 @@ function IPv6Component
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}
@ -5577,7 +5585,7 @@ function IPv6Component
# Check whether the ISP supports IPv6 protocol using https://ipv6-test.com
$Parameters = @{
Uri = "https://v4v6.ipv6-test.com/api/myip.php?json"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
UseBasicParsing = $true
}
$IPv6Test = Invoke-RestMethod @Parameters | Where-Object -FilterScript {$_.proto -eq "ipv6"}
@ -6709,7 +6717,7 @@ function WinPrtScrFolder
if ((Get-Content -Path $PSScriptRoot\..\Sophia.ps1 -Encoding UTF8 -Force | Select-String -SimpleMatch "OneDrive -Uninstall").Line.StartsWith("#") -eq $false)
{
$DesktopFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -PropertyType ExpandString -Value $DesktopFolder -Force
}
else
{
@ -7260,11 +7268,11 @@ function SaveRestartableApps
{
"Enable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 1 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 0 -Force
}
}
}
@ -7309,11 +7317,9 @@ function NetworkDiscovery
$FirewallRules = @(
# File and printer sharing
# Общий доступ к файлам и принтерам
"@FirewallAPI.dll,-32752",
# Network discovery
# Сетевое обнаружение
"@FirewallAPI.dll,-28502"
)
@ -8090,6 +8096,67 @@ public static void Refresh()
[WinAPI.UpdateExplorer]::Refresh()
}
<#
.SYNOPSIS
Uninstall the "PC Health Check" app
.EXAMPLE
UninstallPCHealthCheck
.LINK
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
.NOTES
This application is installed with the KB5005463 update to check if PC meets the system requirements of Windows 11
.NOTES
Machine-wide
#>
function UninstallPCHealthCheck
{
$Folder = (New-Object -ComObject Shell.Application).NameSpace("$env:SystemRoot\Installer")
# Find the necessary .msi with the Subject property equal to "Windows PC Health Check"
foreach ($MSI in @(Get-ChildItem -Path "$env:SystemRoot\Installer" -Filter *.msi -File -Force))
{
$File = $Folder.Items() | Where-Object -FilterScript {$_.Name -eq $MSI.Name}
# "22" is the "Subject" property for a file
if ($Folder.GetDetailsOf($File, 22) -eq "Windows PC Health Check")
{
Start-Process -FilePath msiexec.exe -ArgumentList "/uninstall $($MSI.FullName) /quiet /norestart" -Wait
break
}
}
}
<#
.SYNOPSIS
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
.EXAMPLE
VCRedistx64
.LINK
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
.NOTES
Machine-wide
#>
function InstallVCRedistx64
{
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
$Parameters = @{
Uri = "https://aka.ms/vs/16/release/vc_redist.x64.exe"
OutFile = "$DownloadsFolder\vc_redist.x64.exe"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
Start-Process -FilePath "$DownloadsFolder\vc_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
Remove-Item -Path "$DownloadsFolder\vc_redist.x64.exe", "$env:TEMP\dd_vcredist_amd64_*.log" -Force -ErrorAction Ignore
}
#endregion System
#region WSL
@ -8804,7 +8871,6 @@ function UninstallUWPApps
"Microsoft.XboxIdentityProvider",
# Xbox Console Companion
# Компаньон консоли Xbox
"Microsoft.XboxApp",
# Xbox
@ -8836,7 +8902,6 @@ function UninstallUWPApps
"Microsoft.DesktopAppInstaller",
# Store Experience Host
# Узел для покупок Microsoft Store
"Microsoft.StorePurchaseApp",
# Microsoft Store
@ -9578,7 +9643,7 @@ function HEIF
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}
@ -9593,7 +9658,7 @@ function HEIF
$Parameters = @{
Uri = "https://store.rg-adguard.net/api/GetFiles"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}
@ -9614,7 +9679,7 @@ function HEIF
lang = "en-US"
}
UseBasicParsing = $true
SslProtocol = "Tls13"
SslProtocol = "Tls12"
}
$Raw = Invoke-WebRequest @Parameters
@ -9632,7 +9697,7 @@ function HEIF
$Parameters = @{
Uri = $TempURL
OutFile = "$DownloadsFolder\$Package"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
UseBasicParsing = $true
Verbose = $true
}
@ -9672,7 +9737,7 @@ function HEIF
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}
@ -9887,19 +9952,13 @@ function XboxGameBar
{
"Disable"
{
if ((Get-AppxPackage -Name Microsoft.XboxGamingOverlay) -or (Get-AppxPackage -Name Microsoft.GamingApp))
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 0 -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
if ((Get-AppxPackage -Name Microsoft.XboxGamingOverlay) -or (Get-AppxPackage -Name Microsoft.GamingApp))
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 1 -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 1 -Force
}
}
}
@ -10142,34 +10201,27 @@ function CleanupTask
$VolumeCaches = @(
# Delivery Optimization Files
# Файлы оптимизации доставки
"Delivery Optimization Files",
# Device driver packages
# Пакеты драйверов устройств
"Device Driver Packages",
# Previous Windows Installation(s)
# Предыдущие установки Windows
"Previous Installations",
# Setup log files
# Файлы журнала установки
"Setup Log Files",
# Temporary Setup Files
# Временные файлы установки
"Temporary Setup Files",
# Windows Update Cleanup
# Очистка обновлений Windows
"Update Cleanup",
# Microsoft Defender
"Windows Defender",
# Windows upgrade log files
# Файлы журнала обновления Windows
"Windows Upgrade Log Files"
)
foreach ($VolumeCache in $VolumeCaches)
@ -10272,7 +10324,7 @@ while (`$true)
New-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command -Force
}
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "(default)" -PropertyType String -Value "URL:WindowsCleanup" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name EditFlags -PropertyType DWord -Value 2162688 -Force
# Start the "Windows Cleanup" task if the "Run" button clicked
@ -12102,7 +12154,7 @@ function BitmapImageNewContext
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}
@ -12194,7 +12246,7 @@ function RichTextDocumentNewContext
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
SslProtocol = "Tls12"
DisableKeepAlive = $true
UseBasicParsing = $true
}

37
Sophia Script/Sophia Script for Windows 10 PowerShell 7/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10 (PowerShell 7)"
Version: v5.12.5
Date: 24.10.2021
Version: v5.12.6
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -60,7 +60,7 @@
#>
#Requires -RunAsAdministrator
#Requires -Version 7.1
#Requires -Version 7.2
[CmdletBinding()]
param
@ -72,7 +72,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.5 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.6 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -914,6 +914,33 @@ RestartDeviceAfterUpdate -Enable
Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
#>
# Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
<#
Uninstall the KB5005463 update and block it from the further intalling
The KB5005463 update installs the PC Health Check app to check if PC meets the system requirements of Windows 11
Удалить обновление KB5005463 и заблокировать его от дальнейшей установки
Обновление KB5005463 устанавливает приложение PC Health Check для проверки соответствия компьютера системным требованиям Windows 11
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
#>
PCHealthCheck -Block
<#
Unblock the KB5005463 update for the further intalling (default value)
Разблокировать обновление KB5005463 для дальнейшей установки (значение по умолчанию)
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
#>
# PCHealthCheck -Unblock
<#
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
Установить последнюю поддерживаемую версию Microsoft Visual C++ Redistributable 2015-2022 x64
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
#>
VCRedistx64
#endregion System
#region WSL
@ -924,7 +951,7 @@ RestartDeviceAfterUpdate -Enable
Установить подсистему Windows для Linux (WSL), последний пакет обновления ядра Linux и дистрибутив Linux, используя всплывающую форму
Чтобы получать обновления ядра, включите параметр "При обновлении Windows поулчать обновления для других продуктов Майкрософт" в Центре обновлении Windows
#>
# WSL -Enable
# WSL
#endregion WSL
#region Start menu

6
Sophia Script/Sophia Script for Windows 10/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.12.5
Date: 24.10.2021
Version: v5.12.6
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

49
Sophia Script/Sophia Script for Windows 10/Localizations/de-DE/Sophia.psd1

@ -4,47 +4,48 @@ UnsupportedOSBuild = Das Skript unterstützt Windows 10 2
UpdateWarning = Das kumulative Windows 10-Update wurde installiert: {0}. Unterstütztes kumulatives Update: 1151 und höher
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen, ein Skript über PowerShell {0}.{1} auszuführen. Führen Sie das Skript in der entsprechenden PowerShell-Version aus
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
UnsupportedISE = Das Skript unterstützt nicht die Ausführung über Windows PowerShell ISE
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert
Windows10DebloaterWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des Windows10Debloater PowerShell-Skripts von Sycnex beeinträchtigt worden sein. Installieren Sie vorsorglich das gesamte Betriebssystem neu
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen?
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = Deinstalliere OneDrive...
OneDriveInstalling = Installieren von OneDrive...
OneDriveDownloading = OneDrive herunterladen... ~33 MB
OneDriveUninstalling = OneDrive deinstallieren
OneDriveInstalling = OneDrive installieren
OneDriveDownloading = OneDrive herunterladen ~33 MB
OneDriveWarning = Die "{0}"-Funktion wird nur angewendet, wenn die Voreinstellung so konfiguriert ist, dass OneDrive entfernt wird, andernfalls wird die Backup-Funktionalität für die Ordner "Desktop" und "Bilder" in OneDrive unterbrochen
WindowsFeaturesTitle = Windows-Features
OptionalFeaturesTitle = Optionale Features
EnableHardwareVT = Virtualisierung in UEFI aktivieren
UserShellFolderNotEmpty = Im Ordner "{0}" befinden sich noch Dateien \nVerschieben Sie sie manuell an einen neuen Ort
RetrievingDrivesList = Abrufen der Laufwerksliste...
RetrievingDrivesList = Laufwerksliste abrufen
DriveSelect = Wählen Sie das Laufwerk aus, in dessen Stammverzeichnis der Ordner "{0}" erstellt werden soll
CurrentUserFolderLocation = Der aktuelle Speicherort des Ordners "{0}" lautet: "{1}"
UserFolderRequest = Möchten Sie den Speicherort des Ordners "{0}" ändern?
UserFolderSelect = Wählen Sie einen Ordner für den Ordner "{0}"
UserDefaultFolder = Möchten Sie den Speicherort des Ordners "{0}" auf den Standardwert ändern?
ReservedStorageIsInUse = Dieser Vorgang wird nicht unterstützt, wenn reservierter Speicher verwendet wird\nBitte führen Sie die Funktion "{0}" nach dem PC-Neustart erneut aus
ShortcutPinning = Die Verknüpfung "{0}" wird an Start angeheftet...
ShortcutPinning = Die Verknüpfung "{0}" wird an Start angeheftet
UninstallUWPForAll = Für alle Benutzer
UWPAppsTitle = UWP-Apps
HEVCDownloading = Herunterladen von HEVC-Videoerweiterungen vom Gerätehersteller... ~2,8 MB
HEVCDownloading = HEVC-Videoerweiterungen vom Gerätehersteller herunterladen ~2,8 MB
GraphicsPerformanceTitle = Bevorzugte Grafikleistung
GraphicsPerformanceRequest = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" setzen?
GraphicsPerformanceRequest = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" einstellen?
TaskNotificationTitle = Benachrichtigung
CleanupTaskNotificationTitle = Wichtige informationen
CleanupTaskDescription = Bereinigung ungenutzter Windows-Dateien und -Updates mit der integrierten Datenträgerbereinigung
CleanupTaskNotificationEventTitle = Aufgabe ausführen, um nicht verwendete Windows-Dateien und -Updates zu bereinigen?
CleanupTaskNotificationEvent = Die Datenträgerbereinigung dauert nicht lange. Das nächste Mal wird die Benachrichtigung in 30 Tagen angezeigt
CleanupTaskNotificationSnoozeInterval = Wählen Sie einen Erinnerungsintervall
CleanupNotificationTaskDescription = Bereinigung ungenutzter Windows-Dateien und -Updates mit der integrierten Datenträgerbereinigung
SoftwareDistributionTaskNotificationEvent = Der Cache von Windows Update wurde erfolgreich gelöscht
CleanupTaskNotificationTitle = Wichtige Informationen
CleanupTaskDescription = Bereinigung von nicht verwendeten Windows-Dateien und Updates mit der integrierten Festplattenbereinigung
CleanupTaskNotificationEventTitle = Aufgabe zum Bereinigen nicht verwendeter Windows-Dateien und -Updates ausführen?
CleanupTaskNotificationEvent = Die Bereinigung von Windows wird nicht lange dauern. Das nächste Mal wird diese Benachrichtigung in 30 Tagen erscheinen
CleanupTaskNotificationSnoozeInterval = Ein Erinnerungsintervall auswählen
CleanupNotificationTaskDescription = Popup-Benachrichtigung zur Erinnerung an die Bereinigung von nicht verwendeten Windows-Dateien und Updates
SoftwareDistributionTaskNotificationEvent = Der Windows Update-Cache wurde erfolgreich gelöscht
TempTaskNotificationEvent = Der Ordner mit den temporären Dateien wurde erfolgreich bereinigt
FolderTaskDescription = Die Bereinigung des Ordners "{0}"
EventViewerCustomViewName = Prozess-Erstellung
EventViewerCustomViewDescription = Ereignisse zur Prozesserstellung und Befehlszeilen-Auditierung
RestartWarning = Achten Sie darauf, Ihren PC neu zu starten
FolderTaskDescription = Ordner "{0}" bereinigen
EventViewerCustomViewName = Prozesserstellung
EventViewerCustomViewDescription = Prozesserstellungen und Befehlszeilen-Auditing-Ereignisse
RestartWarning = Sicherstellen, dass Sie Ihren PC neu starten
ErrorsLine = Zeile
ErrorsFile = Datei
ErrorsMessage = Fehler/Warnungen
@ -52,11 +53,11 @@ Add = Hinzufügen
AllFilesFilter = Alle Dateien (*.*)|*.*
Browse = Durchsuchen
Change = Ändern
DialogBoxOpening = Anzeigen des Dialogfensters...
DialogBoxOpening = Anzeigen des Dialogfensters
Disable = Deaktivieren
Enable = Aktivieren
EXEFilesFilter = *.exe|*.exe|Alle Dateien (*.*)|*.*
FolderSelect = Wählen Sie einen Ordner aus
FolderSelect = Einen Ordner auswählen
FilesWontBeMoved = Dateien werden nicht verschoben
FourHours = 4 Stunden
HalfHour = 30 Minuten
@ -64,15 +65,15 @@ Install = Installieren
Minute = 1 Minute
NoData = Nichts anzuzeigen
NoInternetConnection = Keine Internetverbindung
RestartFunction = Bitte starten Sie die Funktion "{0}" neu
RestartFunction = Bitte die Funktion "{0}" neustarten
NoResponse = Eine Verbindung mit {0} konnte nicht hergestellt werden
No = Nein
Yes = Ja
Open = Öffnen
Patient = Bitte Warten...
Patient = Bitte warten
Restore = Wiederherstellen
Run = Starten
SelectAll = Wählen Sie Alle
SelectAll = Alle auswählen
Skip = Überspringen
Skipped = Übersprungen
FileExplorerRestartPrompt = \nManchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden

1
Sophia Script/Sophia Script for Windows 10/Localizations/en-US/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = The logged-on user doesn't have admi
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
UnsupportedISE = The script doesn't support running via Windows PowerShell ISE
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor
Windows10DebloaterWarning = The Windows OS stability may have been compromised by using Sycnex's Windows10Debloater PowerShell script. Preventively, reinstall the entire OS
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the Sophia.ps1 preset file before running Sophia Script?
ControlledFolderAccessDisabled = Controlled folder access disabled

1
Sophia Script/Sophia Script for Windows 10/Localizations/es-ES/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = El usuario que inició sesión no ti
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
UnsupportedISE = El script no es compatible con la ejecución a través de Windows PowerShell ISE
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker
Windows10DebloaterWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el script PowerShell Windows10Debloater de Sycnex. De forma preventiva, reinstale todo el sistema operativo
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado Sophia.ps1 antes de ejecutar Sophia Script?
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado

1
Sophia Script/Sophia Script for Windows 10/Localizations/fr-FR/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de d
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
UnsupportedISE = Le script ne supporte pas l'exécution via Windows PowerShell ISE
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker
Windows10DebloaterWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du script PowerShell Windows10Debloater de Sycnex. De manière préventive, réinstallez l'ensemble de l'OS
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage Sophia.ps1 avant d'exécuter Sophia Script?
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé

1
Sophia Script/Sophia Script for Windows 10/Localizations/hu-HU/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = A bejelentkezett felhasználó nem r
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
UnsupportedISE = A szkript nem támogatja a Windows PowerShell ISE futtatását
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg
Windows10DebloaterWarning = A Windows operációs rendszer stabilitását veszélyeztethette a Sycnex Windows10Debloater PowerShell szkriptje. Megelőzésképpen telepítse újra a teljes operációs rendszert
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a Sophia.ps1 preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva

1
Sophia Script/Sophia Script for Windows 10/Localizations/it-IT/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = L'utente connesso non ha i diritti d
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
UnsupportedISE = Lo script non supporta l'esecuzione tramite Windows PowerShell ISE
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker
Windows10DebloaterWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello script PowerShell Windows10Debloater di Sycnex. Preventivamente, reinstallare l'intero sistema operativo
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file delle preimpostazioni Sophia.ps1 prima di eseguire Sophia Script?
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata

1
Sophia Script/Sophia Script for Windows 10/Localizations/pt-BR/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = O usuário logado não tem direitos
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
UnsupportedISE = O guião não suporta a execução através do Windows PowerShell ISE
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker
Windows10DebloaterWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do script Windows10Debloater PowerShell da Sycnex. Preventivamente, reinstale todo o sistema operacional
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição Sophia.ps1 antes de executar o Sophia Script?
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada

1
Sophia Script/Sophia Script for Windows 10/Localizations/ru-RU/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = Текущий вошедший по
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
UnsupportedISE = Скрипт не поддерживает работу через Windows PowerShell ISE
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном
Windows10DebloaterWarning = Стабильность Вашей ОС могла быть нарушена использованием скрипта Windows10Debloater от Sycnex. В целях профилактики переустановите ОС
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен

1
Sophia Script/Sophia Script for Windows 10/Localizations/tr-TR/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = Oturum açan kullanıcının yöneti
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
UnsupportedISE = Komut dosyası, Windows PowerShell ISE üzerinden çalıştırmayı desteklemiyor
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı
Windows10DebloaterWarning = Windows işletim sistemi kararlılığı, Sycnex'in Windows10Debloater PowerShell betiği kullanılarak tehlikeye atılmış olabilir. Önleyici olarak, tüm işletim sistemini yeniden yükleyin
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce Sophia.ps1 ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı

1
Sophia Script/Sophia Script for Windows 10/Localizations/uk-UA/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = Поточний увійшов ко
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
UnsupportedISE = Скрипт не підтримує роботу через Windows PowerShell ISE
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker заражена трояном
Windows10DebloaterWarning = Стабільність вашої ОС могла бути порушена використанням скрипту Windows10Debloater від Sycnex. З метою профілактики перевстановіть ОС
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений

1
Sophia Script/Sophia Script for Windows 10/Localizations/zh-CN/Sophia.psd1

@ -7,6 +7,7 @@ LoggedInUserNotAdmin = 登录的用户没有管理员的权
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
UnsupportedISE = 该脚本不支持通过Windows PowerShell ISE运行
Win10TweakerWarning = 可能你的操作系统是通过Win 10 Tweaker后门感染的
Windows10DebloaterWarning = 使用Sycnex的Windows10Debloater PowerShell脚本Windows操作系统的稳定性可能已经受到影响预防性地重新安装整个操作系统
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前您是否已自定义Sophia.ps1预设文件中的每个函数
ControlledFolderAccessDisabled = 受控文件夹访问已禁用

2
Sophia Script/Sophia Script for Windows 10/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '5.12.5'
ModuleVersion = '5.12.6'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2021 farag & Inestic. All rights reserved'

120
Sophia Script/Sophia Script for Windows 10/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v5.12.5
Date: 24.10.2021
Version: v5.12.6
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -118,7 +118,7 @@ function Checkings
# Check whether the logged-in user is an admin
$CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf
$CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
$LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
switch ($CurrentUserName -ne $LoginUserName)
{
@ -143,7 +143,8 @@ function Checkings
exit
}
# Check whether the OS was infected by Win 10 Tweaker
# Check whether the OS was infected by Win 10 Tweaker's trojan
# https://win10tweaker.ru
if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker")
{
Write-Warning -Message $Localization.Win10TweakerWarning
@ -154,6 +155,14 @@ function Checkings
exit
}
# Check whether the OS was destroyed by Sycnex's Windows10Debloater script
# https://github.com/Sycnex/Windows10Debloater
if (Test-Path -Path $env:SystemDrive\Temp\Windows10Debloater)
{
Write-Warning -Message $Localization.Windows10DebloaterWarning
exit
}
# Check if the current module version is the latest one
try
{
@ -254,7 +263,7 @@ function Logging
function CreateRestorePoint
{
$SystemDriveUniqueID = (Get-Volume | Where-Object -FilterScript {$_.DriveLetter -eq "$($env:SystemDrive[0])"}).UniqueID
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients")."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients" -ErrorAction Ignore)."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$ComputerRestorePoint = $false
@ -3554,7 +3563,7 @@ public static bool MarkFileDelete (string sourcefile)
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# Terminate the File Explorer process
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
@ -3568,7 +3577,7 @@ public static bool MarkFileDelete (string sourcefile)
}
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 1 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 1 -Force
# Attempt to unregister FileSyncShell64.dll and remove
$FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\amd64\FileSyncShell64.dll" -Force
@ -4788,7 +4797,6 @@ function WindowsFeatures
{
"Enable"
{
$State = @("Disabled", "DisablePending")
$ButtonContent = $Localization.Enable
$ButtonAdd_Click = {EnableButton}
@ -6676,7 +6684,7 @@ function WinPrtScrFolder
if ((Get-Content -Path $PSScriptRoot\..\Sophia.ps1 -Encoding UTF8 -Force | Select-String -SimpleMatch "OneDrive -Uninstall").Line.StartsWith("#") -eq $false)
{
$DesktopFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -PropertyType ExpandString -Value $DesktopFolder -Force
}
else
{
@ -7227,11 +7235,11 @@ function SaveRestartableApps
{
"Enable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 1 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 0 -Force
}
}
}
@ -7276,11 +7284,9 @@ function NetworkDiscovery
$FirewallRules = @(
# File and printer sharing
# Общий доступ к файлам и принтерам
"@FirewallAPI.dll,-32752",
# Network discovery
# Сетевое обнаружение
"@FirewallAPI.dll,-28502"
)
@ -8057,6 +8063,67 @@ public static void Refresh()
[WinAPI.UpdateExplorer]::Refresh()
}
<#
.SYNOPSIS
Uninstall the "PC Health Check" app
.EXAMPLE
UninstallPCHealthCheck
.LINK
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
.NOTES
This application is installed with the KB5005463 update to check if PC meets the system requirements of Windows 11
.NOTES
Machine-wide
#>
function UninstallPCHealthCheck
{
$Folder = (New-Object -ComObject Shell.Application).NameSpace("$env:SystemRoot\Installer")
# Find the necessary .msi with the Subject property equal to "Windows PC Health Check"
foreach ($MSI in @(Get-ChildItem -Path "$env:SystemRoot\Installer" -Filter *.msi -File -Force))
{
$File = $Folder.Items() | Where-Object -FilterScript {$_.Name -eq $MSI.Name}
# "22" is the "Subject" property for a file
if ($Folder.GetDetailsOf($File, 22) -eq "Windows PC Health Check")
{
Start-Process -FilePath msiexec.exe -ArgumentList "/uninstall $($MSI.FullName) /quiet /norestart" -Wait
break
}
}
}
<#
.SYNOPSIS
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
.EXAMPLE
VCRedistx64
.LINK
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
.NOTES
Machine-wide
#>
function InstallVCRedistx64
{
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
$Parameters = @{
Uri = "https://aka.ms/vs/16/release/vc_redist.x64.exe"
OutFile = "$DownloadsFolder\vc_redist.x64.exe"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
Start-Process -FilePath "$DownloadsFolder\vc_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
Remove-Item -Path "$DownloadsFolder\vc_redist.x64.exe", "$env:TEMP\dd_vcredist_amd64_*.log" -Force -ErrorAction Ignore
}
#endregion System
#region WSL
@ -8713,8 +8780,6 @@ public static string GetString(uint strId)
.EXAMPLE
UninstallUWPApps -ForAllUsers
.NOTES
.NOTES
Current user
#>
@ -8763,7 +8828,6 @@ function UninstallUWPApps
"Microsoft.XboxIdentityProvider",
# Xbox Console Companion
# Компаньон консоли Xbox
"Microsoft.XboxApp",
# Xbox
@ -8795,7 +8859,6 @@ function UninstallUWPApps
"Microsoft.DesktopAppInstaller",
# Store Experience Host
# Узел для покупок Microsoft Store
"Microsoft.StorePurchaseApp",
# Microsoft Store
@ -9831,19 +9894,13 @@ function XboxGameBar
{
"Disable"
{
if ((Get-AppxPackage -Name Microsoft.XboxGamingOverlay) -or (Get-AppxPackage -Name Microsoft.GamingApp))
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 0 -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
if ((Get-AppxPackage -Name Microsoft.XboxGamingOverlay) -or (Get-AppxPackage -Name Microsoft.GamingApp))
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 1 -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 1 -Force
}
}
}
@ -10086,34 +10143,27 @@ function CleanupTask
$VolumeCaches = @(
# Delivery Optimization Files
# Файлы оптимизации доставки
"Delivery Optimization Files",
# Device driver packages
# Пакеты драйверов устройств
"Device Driver Packages",
# Previous Windows Installation(s)
# Предыдущие установки Windows
"Previous Installations",
# Setup log files
# Файлы журнала установки
"Setup Log Files",
# Temporary Setup Files
# Временные файлы установки
"Temporary Setup Files",
# Windows Update Cleanup
# Очистка обновлений Windows
"Update Cleanup",
# Microsoft Defender
"Windows Defender",
# Windows upgrade log files
# Файлы журнала обновления Windows
"Windows Upgrade Log Files"
)
foreach ($VolumeCache in $VolumeCaches)
@ -10216,7 +10266,7 @@ while (`$true)
New-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command -Force
}
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "(default)" -PropertyType String -Value "URL:WindowsCleanup" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name EditFlags -PropertyType DWord -Value 2162688 -Force
# Start the "Windows Cleanup" task if the "Run" button clicked

27
Sophia Script/Sophia Script for Windows 10/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 10"
Version: v5.12.5
Date: 24.10.2021
Version: v5.12.6
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -72,7 +72,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 10 v5.12.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -914,6 +914,25 @@ RestartDeviceAfterUpdate -Enable
Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
#>
# Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
<#
Uninstall the "PC Health Check" app
This application is installed with the KB5005463 update to check if PC meets the system requirements of Windows 11
Удалить приложение "Проверка работоспособности ПК WIndows"
Данное приложение устанавливается обновлением KB5005463 для проверки соответствия компьютера системным требованиям Windows 11
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
#>
UninstallPCHealthCheck
<#
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
Установить последнюю поддерживаемую версию Microsoft Visual C++ Redistributable 2015-2022 x64
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
#>
InstallVCRedistx64
#endregion System
#region WSL
@ -924,7 +943,7 @@ RestartDeviceAfterUpdate -Enable
Установить подсистему Windows для Linux (WSL), последний пакет обновления ядра Linux и дистрибутив Linux, используя всплывающую форму
Чтобы получать обновления ядра, включите параметр "При обновлении Windows поулчать обновления для других продуктов Майкрософт" в Центре обновлении Windows
#>
# WSL -Enable
# WSL
#endregion WSL
#region Start menu

8
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v6.0.6
Date: 24.10.2021
Version: v6.0.7
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -31,7 +31,7 @@
#>
#Requires -RunAsAdministrator
#Requires -Version 7.1
#Requires -Version 7.2
function Sophia
{
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

BIN
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Libraries/Microsoft.Windows.SDK.NET.dll

Binary file not shown.

2
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '6.0.6'
ModuleVersion = '6.0.7'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2021 farag & Inestic. All rights reserved'

151
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.0.6
Date: 24.10.2021
Version: v6.0.7
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -16,7 +16,7 @@
.NOTES
Supported Windows 11 version
Version: 21H2
Build: 22000.258
Build: 22000.318
Editions: Home/Pro/Enterprise
.NOTES
@ -66,8 +66,8 @@ function Checkings
}
}
# Check whether the OS minor build version is 258 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 258)
# Check whether the OS minor build version is 318 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 318)
{
$false
{
@ -107,7 +107,7 @@ function Checkings
# Check whether the logged-in user is an admin
$CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf
$CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
$LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
switch ($CurrentUserName -ne $LoginUserName)
{
@ -132,7 +132,8 @@ function Checkings
exit
}
# Check whether the OS was infected by Win 10 Tweaker
# Check whether the OS was infected by Win 10 Tweaker's trojan
# https://win10tweaker.ru
if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker")
{
Write-Warning -Message $Localization.Win10TweakerWarning
@ -156,6 +157,14 @@ function Checkings
exit
}
# Check whether the OS was destroyed by Sycnex's Windows10Debloater script
# https://github.com/Sycnex/Windows10Debloater
if (Test-Path -Path $env:SystemDrive\Temp\Windows10Debloater)
{
Write-Warning -Message $Localization.Windows10DebloaterWarning
exit
}
# Check if the current module version is the latest one
try
{
@ -258,7 +267,7 @@ function Logging
function CreateRestorePoint
{
$SystemDriveUniqueID = (Get-Volume | Where-Object -FilterScript {$_.DriveLetter -eq "$($env:SystemDrive[0])"}).UniqueID
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients")."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients" -ErrorAction Ignore)."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$ComputerRestorePoint = $false
@ -3302,7 +3311,7 @@ public static bool MarkFileDelete (string sourcefile)
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# Terminate the File Explorer process
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
@ -3316,7 +3325,7 @@ public static bool MarkFileDelete (string sourcefile)
}
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 1 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 1 -Force
# Attempt to unregister FileSyncShell64.dll and remove
$FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\amd64\FileSyncShell64.dll" -Force
@ -4549,7 +4558,6 @@ function WindowsFeatures
{
"Enable"
{
$State = @("Disabled", "DisablePending")
$ButtonContent = $Localization.Enable
$ButtonAdd_Click = {EnableButton}
@ -6437,7 +6445,7 @@ function WinPrtScrFolder
if ((Get-Content -Path $PSScriptRoot\..\Sophia.ps1 -Encoding UTF8 -Force | Select-String -SimpleMatch "OneDrive -Uninstall").Line.StartsWith("#") -eq $false)
{
$DesktopFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -PropertyType ExpandString -Value $DesktopFolder -Force
}
else
{
@ -6988,11 +6996,11 @@ function SaveRestartableApps
{
"Enable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 1 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 0 -Force
}
}
}
@ -7037,11 +7045,9 @@ function NetworkDiscovery
$FirewallRules = @(
# File and printer sharing
# Общий доступ к файлам и принтерам
"@FirewallAPI.dll,-32752",
# Network discovery
# Сетевое обнаружение
"@FirewallAPI.dll,-28502"
)
@ -7877,6 +7883,35 @@ function DefaultTerminalApp
}
}
}
<#
.SYNOPSIS
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
.EXAMPLE
VCRedistx64
.LINK
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
.NOTES
Machine-wide
#>
function InstallVCRedistx64
{
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
$Parameters = @{
Uri = "https://aka.ms/vs/16/release/vc_redist.x64.exe"
OutFile = "$DownloadsFolder\vc_redist.x64.exe"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
Start-Process -FilePath "$DownloadsFolder\vc_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
Remove-Item -Path "$DownloadsFolder\vc_redist.x64.exe", "$env:TEMP\dd_vcredist_amd64_*.log" -Force -ErrorAction Ignore
}
#endregion System
#region WSL
@ -8065,6 +8100,26 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
#endregion WSL
#region Start menu
<#
.SYNOPSIS
Unpin all Start apps
.EXAMPLE
UnpinAllStartApps
.NOTES
Current user
#>
function UnpinAllStartApps
{
$Parameters = @{
Path = "$PSScriptRoot\..\Start_Layout\start.bin"
Destination = "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState"
Force = $true
}
Copy-Item @Parameters
}
<#
.SYNOPSIS
How to run the Windows PowerShell shortcut
@ -8193,7 +8248,6 @@ function UninstallUWPApps
"Microsoft.XboxIdentityProvider",
# Xbox Console Companion
# Компаньон консоли Xbox
"Microsoft.XboxApp",
# Xbox
@ -8228,7 +8282,6 @@ function UninstallUWPApps
"Microsoft.DesktopAppInstaller",
# Store Experience Host
# Узел для покупок Microsoft Store
"Microsoft.StorePurchaseApp",
# Notepad
@ -9260,6 +9313,59 @@ function CheckUWPAppsUpdates
#endregion UWP apps
#region Gaming
<#
.SYNOPSIS
Xbox Game Bar
.PARAMETER Disable
Disable Xbox Game Bar
.PARAMETER Enable
Enable Xbox Game Bar
.EXAMPLE
XboxGameBar -Disable
.EXAMPLE
XboxGameBar -Enable
.NOTES
Current user
#>
function XboxGameBar
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Disable"
)]
[switch]
$Disable,
[Parameter(
Mandatory = $true,
ParameterSetName = "Enable"
)]
[switch]
$Enable
)
switch ($PSCmdlet.ParameterSetName)
{
"Disable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 1 -Force
}
}
}
<#
.SYNOPSIS
Xbox Game Bar tips
@ -9498,34 +9604,27 @@ function CleanupTask
$VolumeCaches = @(
# Delivery Optimization Files
# Файлы оптимизации доставки
"Delivery Optimization Files",
# Device driver packages
# Пакеты драйверов устройств
"Device Driver Packages",
# Previous Windows Installation(s)
# Предыдущие установки Windows
"Previous Installations",
# Setup log files
# Файлы журнала установки
"Setup Log Files",
# Temporary Setup Files
# Временные файлы установки
"Temporary Setup Files",
# Windows Update Cleanup
# Очистка обновлений Windows
"Update Cleanup",
# Microsoft Defender
"Windows Defender",
# Windows upgrade log files
# Файлы журнала обновления Windows
"Windows Upgrade Log Files"
)
foreach ($VolumeCache in $VolumeCaches)
@ -9628,7 +9727,7 @@ while (`$true)
New-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command -Force
}
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "(default)" -PropertyType String -Value "URL:WindowsCleanup" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name EditFlags -PropertyType DWord -Value 2162688 -Force
# Start the "Windows Cleanup" task if the "Run" button clicked

49
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11"
Version: v6.0.6
Date: 24.10.2021
Version: v6.0.7
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -59,7 +59,7 @@
#>
#Requires -RunAsAdministrator
#Requires -Version 5.1
#Requires -Version 7.2
[CmdletBinding()]
param
@ -71,7 +71,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.6 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.7 (PowerShell 7) | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -885,6 +885,33 @@ DefaultTerminalApp -WindowsTerminal
# Set Windows Console Host as default terminal app to host the user interface for command-line applications (default value)
# Установить Windows Console Host как приложение терминала по умолчанию для размещения пользовательского интерфейса для приложений командной строки (значение по умолчанию)
# DefaultTerminalApp -ConsoleHost
<#
Uninstall the KB5005463 update and block it from the further intalling
The KB5005463 update installs the PC Health Check app to check if PC meets the system requirements of Windows 11
Удалить обновление KB5005463 и заблокировать его от дальнейшей установки
Обновление KB5005463 устанавливает приложение PC Health Check для проверки соответствия компьютера системным требованиям Windows 11
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
#>
PCHealthCheck -Block
<#
Unblock the KB5005463 update for the further intalling (default value)
Разблокировать обновление KB5005463 для дальнейшей установки (значение по умолчанию)
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
#>
# PCHealthCheck -Unblock
<#
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
Установить последнюю поддерживаемую версию Microsoft Visual C++ Redistributable 2015-2022 x64
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
#>
VCRedistx64
#endregion System
#region WSL
@ -895,10 +922,14 @@ DefaultTerminalApp -WindowsTerminal
Установить подсистему Windows для Linux (WSL), последний пакет обновления ядра Linux и дистрибутив Linux, используя всплывающую форму
Чтобы получать обновления ядра, включите параметр "При обновлении Windows поулчать обновления для других продуктов Майкрософт" в Центре обновлении Windows
#>
# WSL -Enable
# WSL
#endregion WSL
#region Start menu
# Unpin all Start apps
# Открепить все приложения от начального экрана
# UnpinAllStartApps
# Run the Windows PowerShell shortcut from the Start menu as Administrator
# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
RunPowerShellShortcut -Elevated
@ -964,6 +995,14 @@ CheckUWPAppsUpdates
#endregion UWP apps
#region Gaming
# Disable Xbox Game Bar
# Отключить Xbox Game Bar
XboxGameBar -Disable
# Enable Xbox Game Bar (default value)
# Включить Xbox Game Bar (значение по умолчанию)
# XboxGameBar -Enable
# Disable Xbox Game Bar tips
# Отключить советы Xbox Game Bar
XboxGameTips -Disable

BIN
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Start_Layout/start.bin

Binary file not shown.

6
Sophia Script/Sophia Script for Windows 11/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v6.0.6
Date: 24.10.2021
Version: v6.0.7
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force

50
Sophia Script/Sophia Script for Windows 11/Localizations/de-DE/Sophia.psd1

@ -1,50 +1,50 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Das Skript unterstützt Windows 11 2004/20H2/21H1-Versionen und höher
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Build: 22000.282 und höher
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Build: 22000.318 und höher
UnsupportedLanguageMode = Die PowerShell-Sitzung wird in einem eingeschränkten Sprachmodus ausgeführt
LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine Administratorrechte
UnsupportedPowerShell = Sie versuchen, ein Skript über PowerShell {0}.{1} auszuführen. Führen Sie das Skript in der entsprechenden PowerShell-Version aus
UnsupportedPowerShell = Sie versuchen ein Skript über PowerShell {0}.{1} auszuführen. Das Skript in der entsprechenden PowerShell-Version ausführen
UnsupportedISE = Das Skript unterstützt nicht die Ausführung über Windows PowerShell ISE
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen?
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = Deinstalliere OneDrive...
OneDriveInstalling = Installieren von OneDrive...
OneDriveDownloading = OneDrive herunterladen... ~33 MB
OneDriveUninstalling = OneDrive deinstallieren
OneDriveInstalling = OneDrive installieren
OneDriveDownloading = OneDrive herunterladen ~33 MB
OneDriveWarning = Die "{0}"-Funktion wird nur angewendet, wenn die Voreinstellung so konfiguriert ist, dass OneDrive entfernt wird, andernfalls wird die Backup-Funktionalität für die Ordner "Desktop" und "Bilder" in OneDrive unterbrochen
WindowsFeaturesTitle = Windows-Features
OptionalFeaturesTitle = Optionale Features
EnableHardwareVT = Virtualisierung in UEFI aktivieren
OpenInWindowsTerminalAdmin = Im Windows-Terminal öffnen
UserShellFolderNotEmpty = Im Ordner "{0}" befinden sich noch Dateien \nVerschieben Sie sie manuell an einen neuen Ort
RetrievingDrivesList = Abrufen der Laufwerksliste...
RetrievingDrivesList = Laufwerksliste abrufen
DriveSelect = Wählen Sie das Laufwerk aus, in dessen Stammverzeichnis der Ordner "{0}" erstellt werden soll
CurrentUserFolderLocation = Der aktuelle Speicherort des Ordners "{0}" lautet: "{1}"
UserFolderRequest = Möchten Sie den Speicherort des Ordners "{0}" ändern?
UserFolderSelect = Wählen Sie einen Ordner für den Ordner "{0}"
UserDefaultFolder = Möchten Sie den Speicherort des Ordners "{0}" auf den Standardwert ändern?
ReservedStorageIsInUse = Dieser Vorgang wird nicht unterstützt, wenn reservierter Speicher verwendet wird\nBitte führen Sie die Funktion "{0}" nach dem PC-Neustart erneut aus
ShortcutPinning = Die Verknüpfung "{0}" wird an Start angeheftet...
ShortcutPinning = Die Verknüpfung "{0}" wird an Start angeheftet
UninstallUWPForAll = Für alle Benutzer
UWPAppsTitle = UWP-Apps
HEVCDownloading = Herunterladen von HEVC-Videoerweiterungen vom Gerätehersteller... ~2,8 MB
HEVCDownloading = HEVC-Videoerweiterungen vom Gerätehersteller herunterladen ~2,8 MB
GraphicsPerformanceTitle = Bevorzugte Grafikleistung
GraphicsPerformanceRequest = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" setzen?
GraphicsPerformanceRequest = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" einstellen?
TaskNotificationTitle = Benachrichtigung
CleanupTaskNotificationTitle = Wichtige informationen
CleanupTaskDescription = Bereinigung ungenutzter Windows-Dateien und -Updates mit der integrierten Datenträgerbereinigung
CleanupTaskNotificationEventTitle = Aufgabe ausführen, um nicht verwendete Windows-Dateien und -Updates zu bereinigen?
CleanupTaskNotificationEvent = Die Datenträgerbereinigung dauert nicht lange. Das nächste Mal wird die Benachrichtigung in 30 Tagen angezeigt
CleanupTaskNotificationSnoozeInterval = Wählen Sie einen Erinnerungsintervall
CleanupNotificationTaskDescription = Bereinigung ungenutzter Windows-Dateien und -Updates mit der integrierten Datenträgerbereinigung
SoftwareDistributionTaskNotificationEvent = Der Cache von Windows Update wurde erfolgreich gelöscht
CleanupTaskNotificationTitle = Wichtige Informationen
CleanupTaskDescription = Bereinigung von nicht verwendeten Windows-Dateien und Updates mit der integrierten Festplattenbereinigung
CleanupTaskNotificationEventTitle = Aufgabe zum Bereinigen nicht verwendeter Windows-Dateien und -Updates ausführen?
CleanupTaskNotificationEvent = Die Bereinigung von Windows wird nicht lange dauern. Das nächste Mal wird diese Benachrichtigung in 30 Tagen erscheinen
CleanupTaskNotificationSnoozeInterval = Ein Erinnerungsintervall auswählen
CleanupNotificationTaskDescription = Popup-Benachrichtigung zur Erinnerung an die Bereinigung von nicht verwendeten Windows-Dateien und Updates
SoftwareDistributionTaskNotificationEvent = Der Windows Update-Cache wurde erfolgreich gelöscht
TempTaskNotificationEvent = Der Ordner mit den temporären Dateien wurde erfolgreich bereinigt
FolderTaskDescription = Die Bereinigung des Ordners "{0}"
EventViewerCustomViewName = Prozess-Erstellung
EventViewerCustomViewDescription = Ereignisse zur Prozesserstellung und Befehlszeilen-Auditierung
RestartWarning = Achten Sie darauf, Ihren PC neu zu starten
FolderTaskDescription = Ordner "{0}" bereinigen
EventViewerCustomViewName = Prozesserstellung
EventViewerCustomViewDescription = Prozesserstellungen und Befehlszeilen-Auditing-Ereignisse
RestartWarning = Sicherstellen, dass Sie Ihren PC neu starten
ErrorsLine = Zeile
ErrorsFile = Datei
ErrorsMessage = Fehler/Warnungen
@ -52,11 +52,11 @@ Add = Hinzufügen
AllFilesFilter = Alle Dateien (*.*)|*.*
Browse = Durchsuchen
Change = Ändern
DialogBoxOpening = Anzeigen des Dialogfensters...
DialogBoxOpening = Anzeigen des Dialogfensters
Disable = Deaktivieren
Enable = Aktivieren
EXEFilesFilter = *.exe|*.exe|Alle Dateien (*.*)|*.*
FolderSelect = Wählen Sie einen Ordner aus
FolderSelect = Einen Ordner auswählen
FilesWontBeMoved = Dateien werden nicht verschoben
FourHours = 4 Stunden
HalfHour = 30 Minuten
@ -64,15 +64,15 @@ Install = Installieren
Minute = 1 Minute
NoData = Nichts anzuzeigen
NoInternetConnection = Keine Internetverbindung
RestartFunction = Bitte starten Sie die Funktion "{0}" neu
RestartFunction = Bitte die Funktion "{0}" neustarten
NoResponse = Eine Verbindung mit {0} konnte nicht hergestellt werden
No = Nein
Yes = Ja
Open = Öffnen
Patient = Bitte Warten...
Patient = Bitte warten
Restore = Wiederherstellen
Run = Starten
SelectAll = Wählen Sie Alle
SelectAll = Alle auswählen
Skip = Überspringen
Skipped = Übersprungen
FileExplorerRestartPrompt = \nManchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden

2
Sophia Script/Sophia Script for Windows 11/Localizations/en-US/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = The script supports Windows 11 21H2 version and higher
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported build: 22000.282 and higher
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported build: 22000.318 and higher
UnsupportedLanguageMode = The PowerShell session in running in a limited language mode
LoggedInUserNotAdmin = The logged-on user doesn't have admin rights
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version

2
Sophia Script/Sophia Script for Windows 11/Localizations/es-ES/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = El script es compatible con versión Windows 11 21H2 y superiores
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilación compatible: 22000.282 y superiores
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilación compatible: 22000.318 y superiores
UnsupportedLanguageMode = Sesión de PowerShell ejecutada en modo de lenguaje limitado
LoggedInUserNotAdmin = El usuario que inició sesión no tiene derechos de administrador
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell

2
Sophia Script/Sophia Script for Windows 11/Localizations/fr-FR/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Le script supporte les versions Windows 11 21H2 et ultérieures
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Version prise en charge : 22000.282 et ultérieures
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Version prise en charge : 22000.318 et ultérieures
UnsupportedLanguageMode = La session PowerShell s'exécute dans un mode de langue limité
LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de droits d'administrateur
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell

2
Sophia Script/Sophia Script for Windows 11/Localizations/hu-HU/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = A szkript a Windows 11 21H2 és újabb kiadásokat támogatja
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott build: 22000.282 és magasabb verziószámok
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott build: 22000.318 és magasabb verziószámok
UnsupportedLanguageMode = A PowerShell munkamenet korlátozott nyelvi üzemmódban fut
LoggedInUserNotAdmin = A bejelentkezett felhasználó nem rendelkezik admin jogokkal
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban

2
Sophia Script/Sophia Script for Windows 11/Localizations/it-IT/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Lo script supporta Windows 11, 21H2 versioni e superiori
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.282 e successive
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.318 e successive
UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in una modalità di lingua limitata
LoggedInUserNotAdmin = L'utente connesso non ha i diritti di amministratore
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata

2
Sophia Script/Sophia Script for Windows 11/Localizations/pt-BR/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = O script suporta versões Windows 11 21H2 e superior
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.282 e successive
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.318 e successive
UnsupportedLanguageMode = A sessão PowerShell em funcionamento em um modo de linguagem limitada
LoggedInUserNotAdmin = O usuário logado não tem direitos de administrador
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell

2
Sophia Script/Sophia Script for Windows 11/Localizations/ru-RU/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт поддерживает только Windows 11 21H2 и выше
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемый билд: 22000.282 и выше
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемый билд: 22000.318 и выше
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell

2
Sophia Script/Sophia Script for Windows 11/Localizations/tr-TR/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Bu betik sadece Windows 11 21H2 sürüm ve üstünü destekliyor
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapı: 22000.282 ve üstünü destekliyor
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapı: 22000.318 ve üstünü destekliyor
UnsupportedLanguageMode = Sınırlı bir dil modunda çalışan PowerShell oturumu
LoggedInUserNotAdmin = Oturum açan kullanıcının yönetici hakları yok
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın

2
Sophia Script/Sophia Script for Windows 11/Localizations/uk-UA/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт підтримує тільки Windows 11 версії 21H2 та вище
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримуваний білд: 22000.282 та вище
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримуваний білд: 22000.318 та вище
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний увійшов користувач не володіє правами адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell

2
Sophia Script/Sophia Script for Windows 11/Localizations/zh-CN/Sophia.psd1

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = 该脚本支持Windows 11版本21H2和更高版本
UpdateWarning = 您的Windows 11构建{0}.{1}支持的构建22000.282和更高版本
UpdateWarning = 您的Windows 11构建{0}.{1}支持的构建22000.318和更高版本
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本

2
Sophia Script/Sophia Script for Windows 11/Manifest/Sophia.psd1

@ -1,6 +1,6 @@
@{
RootModule = '..\Module\Sophia.psm1'
ModuleVersion = '6.0.6'
ModuleVersion = '6.0.7'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 2014—2021 farag & Inestic. All rights reserved'

153
Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.0.6
Date: 24.10.2021
Version: v6.0.7
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -16,7 +16,7 @@
.NOTES
Supported Windows 11 version
Version: 21H2
Build: 22000.258
Build: 22000.318
Editions: Home/Pro/Enterprise
.NOTES
@ -66,8 +66,8 @@ function Checkings
}
}
# Check whether the OS minor build version is 258 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 258)
# Check whether the OS minor build version is 318 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 318)
{
$false
{
@ -107,7 +107,7 @@ function Checkings
# Check whether the logged-in user is an admin
$CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf
$CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId
$LoginUserName = (Get-Process -IncludeUserName -ErrorAction SilentlyContinue | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
$LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf
switch ($CurrentUserName -ne $LoginUserName)
{
@ -132,7 +132,8 @@ function Checkings
exit
}
# Check whether the OS was infected by Win 10 Tweaker
# Check whether the OS was infected by Win 10 Tweaker's trojan
# https://win10tweaker.ru
if (Test-Path -Path "HKCU:\Software\Win 10 Tweaker")
{
Write-Warning -Message $Localization.Win10TweakerWarning
@ -143,6 +144,14 @@ function Checkings
exit
}
# Check whether the OS was destroyed by Sycnex's Windows10Debloater script
# https://github.com/Sycnex/Windows10Debloater
if (Test-Path -Path $env:SystemDrive\Temp\Windows10Debloater)
{
Write-Warning -Message $Localization.Windows10DebloaterWarning
exit
}
# Check if the current module version is the latest one
try
{
@ -243,7 +252,7 @@ function Logging
function CreateRestorePoint
{
$SystemDriveUniqueID = (Get-Volume | Where-Object -FilterScript {$_.DriveLetter -eq "$($env:SystemDrive[0])"}).UniqueID
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients")."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients" -ErrorAction Ignore)."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)}
$ComputerRestorePoint = $false
@ -3285,7 +3294,7 @@ public static bool MarkFileDelete (string sourcefile)
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# Terminate the File Explorer process
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 0 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 0 -Force
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
@ -3299,7 +3308,7 @@ public static bool MarkFileDelete (string sourcefile)
}
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 1 -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -PropertyType DWord -Value 1 -Force
# Attempt to unregister FileSyncShell64.dll and remove
$FileSyncShell64dlls = Get-ChildItem -Path "$OneDriveFolder\*\amd64\FileSyncShell64.dll" -Force
@ -4519,7 +4528,6 @@ function WindowsFeatures
{
"Enable"
{
$State = @("Disabled", "DisablePending")
$ButtonContent = $Localization.Enable
$ButtonAdd_Click = {EnableButton}
@ -6404,7 +6412,7 @@ function WinPrtScrFolder
if ((Get-Content -Path $PSScriptRoot\..\Sophia.ps1 -Encoding UTF8 -Force | Select-String -SimpleMatch "OneDrive -Uninstall").Line.StartsWith("#") -eq $false)
{
$DesktopFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name Desktop
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Type ExpandString -Value $DesktopFolder -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -PropertyType ExpandString -Value $DesktopFolder -Force
}
else
{
@ -6955,11 +6963,11 @@ function SaveRestartableApps
{
"Enable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 1 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 1 -Force
}
"Disable"
{
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -Value 0 -Force
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name RestartApps -PropertyType DWord -Value 0 -Force
}
}
}
@ -7004,11 +7012,9 @@ function NetworkDiscovery
$FirewallRules = @(
# File and printer sharing
# Общий доступ к файлам и принтерам
"@FirewallAPI.dll,-32752",
# Network discovery
# Сетевое обнаружение
"@FirewallAPI.dll,-28502"
)
@ -7844,6 +7850,35 @@ function DefaultTerminalApp
}
}
}
<#
.SYNOPSIS
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
.EXAMPLE
VCRedistx64
.LINK
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
.NOTES
Machine-wide
#>
function InstallVCRedistx64
{
$DownloadsFolder = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}"
$Parameters = @{
Uri = "https://aka.ms/vs/16/release/vc_redist.x64.exe"
OutFile = "$DownloadsFolder\vc_redist.x64.exe"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
Start-Process -FilePath "$DownloadsFolder\vc_redist.x64.exe" -ArgumentList "/install /passive /norestart" -Wait
Remove-Item -Path "$DownloadsFolder\vc_redist.x64.exe", "$env:TEMP\dd_vcredist_amd64_*.log" -Force -ErrorAction Ignore
}
#endregion System
#region WSL
@ -8032,6 +8067,26 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
#endregion WSL
#region Start menu
<#
.SYNOPSIS
Unpin all Start apps
.EXAMPLE
UnpinAllStartApps
.NOTES
Current user
#>
function UnpinAllStartApps
{
$Parameters = @{
Path = "$PSScriptRoot\..\Start_Layout\start.bin"
Destination = "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState"
Force = $true
}
Copy-Item @Parameters
}
<#
.SYNOPSIS
How to run the Windows PowerShell shortcut
@ -8102,8 +8157,6 @@ function RunPowerShellShortcut
.EXAMPLE
UninstallUWPApps -ForAllUsers
.NOTES
.NOTES
Current user
#>
@ -8152,7 +8205,6 @@ function UninstallUWPApps
"Microsoft.XboxIdentityProvider",
# Xbox Console Companion
# Компаньон консоли Xbox
"Microsoft.XboxApp",
# Xbox
@ -8187,7 +8239,6 @@ function UninstallUWPApps
"Microsoft.DesktopAppInstaller",
# Store Experience Host
# Узел для покупок Microsoft Store
"Microsoft.StorePurchaseApp",
# Notepad
@ -9204,6 +9255,59 @@ function CheckUWPAppsUpdates
#endregion UWP apps
#region Gaming
<#
.SYNOPSIS
Xbox Game Bar
.PARAMETER Disable
Disable Xbox Game Bar
.PARAMETER Enable
Enable Xbox Game Bar
.EXAMPLE
XboxGameBar -Disable
.EXAMPLE
XboxGameBar -Enable
.NOTES
Current user
#>
function XboxGameBar
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Disable"
)]
[switch]
$Disable,
[Parameter(
Mandatory = $true,
ParameterSetName = "Enable"
)]
[switch]
$Enable
)
switch ($PSCmdlet.ParameterSetName)
{
"Disable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR -Name AppCaptureEnabled -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\System\GameConfigStore -Name GameDVR_Enabled -PropertyType DWord -Value 1 -Force
}
}
}
<#
.SYNOPSIS
Xbox Game Bar tips
@ -9442,34 +9546,27 @@ function CleanupTask
$VolumeCaches = @(
# Delivery Optimization Files
# Файлы оптимизации доставки
"Delivery Optimization Files",
# Device driver packages
# Пакеты драйверов устройств
"Device Driver Packages",
# Previous Windows Installation(s)
# Предыдущие установки Windows
"Previous Installations",
# Setup log files
# Файлы журнала установки
"Setup Log Files",
# Temporary Setup Files
# Временные файлы установки
"Temporary Setup Files",
# Windows Update Cleanup
# Очистка обновлений Windows
"Update Cleanup",
# Microsoft Defender
"Windows Defender",
# Windows upgrade log files
# Файлы журнала обновления Windows
"Windows Upgrade Log Files"
)
foreach ($VolumeCache in $VolumeCaches)
@ -9572,7 +9669,7 @@ while (`$true)
New-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup\shell\open\command -Force
}
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "(default)" -PropertyType String -Value "URL:WindowsCleanup" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name "URL Protocol" -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Name EditFlags -PropertyType DWord -Value 2162688 -Force
# Start the "Windows Cleanup" task if the "Run" button clicked

58
Sophia Script/Sophia Script for Windows 11/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11"
Version: v6.0.6
Date: 24.10.2021
Version: v6.0.7
Date: 23.11.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -28,7 +28,7 @@
.NOTES
Supported Windows 11 version
Version: 21H2
Build: 22000.282
Build: 22000.318
Editions: Home/Pro/Enterprise
.NOTES
@ -71,7 +71,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -885,6 +885,42 @@ DefaultTerminalApp -WindowsTerminal
# Set Windows Console Host as default terminal app to host the user interface for command-line applications (default value)
# Установить Windows Console Host как приложение терминала по умолчанию для размещения пользовательского интерфейса для приложений командной строки (значение по умолчанию)
# DefaultTerminalApp -ConsoleHost
<#
Register app, calculate hash, and associate with an extension with the "How do you want to open this" pop-up hidden
Зарегистрировать приложение, вычислить хэш и ассоциировать его с расширением без всплывающего окна "Каким образом вы хотите открыть этот файл?"
Set-Association -ProgramPath "C:\SumatraPDF.exe" -Extension .pdf -Icon "shell32.dll,100"
Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
#>
# Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
<#
Uninstall the KB5005463 update and block it from the further intalling
The KB5005463 update installs the PC Health Check app to check if PC meets the system requirements of Windows 11
Удалить обновление KB5005463 и заблокировать его от дальнейшей установки
Обновление KB5005463 устанавливает приложение PC Health Check для проверки соответствия компьютера системным требованиям Windows 11
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
#>
PCHealthCheck -Block
<#
Unblock the KB5005463 update for the further intalling (default value)
Разблокировать обновление KB5005463 для дальнейшей установки (значение по умолчанию)
https://support.microsoft.com/en-us/topic/kb5005463-pc-health-check-application-e33cf4e2-49e2-4727-b913-f3c5b1ee0e56
#>
# PCHealthCheck -Unblock
<#
Install the latest supported Microsoft Visual C++ Redistributable 20152022 x64
Установить последнюю поддерживаемую версию Microsoft Visual C++ Redistributable 2015-2022 x64
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist
#>
VCRedistx64
#endregion System
#region WSL
@ -895,10 +931,14 @@ DefaultTerminalApp -WindowsTerminal
Установить подсистему Windows для Linux (WSL), последний пакет обновления ядра Linux и дистрибутив Linux, используя всплывающую форму
Чтобы получать обновления ядра, включите параметр "При обновлении Windows поулчать обновления для других продуктов Майкрософт" в Центре обновлении Windows
#>
# WSL -Enable
# WSL
#endregion WSL
#region Start menu
# Unpin all Start apps
# Открепить все приложения от начального экрана
# UnpinAllStartApps
# Run the Windows PowerShell shortcut from the Start menu as Administrator
# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
RunPowerShellShortcut -Elevated
@ -964,6 +1004,14 @@ CheckUWPAppsUpdates
#endregion UWP apps
#region Gaming
# Disable Xbox Game Bar
# Отключить Xbox Game Bar
XboxGameBar -Disable
# Enable Xbox Game Bar (default value)
# Включить Xbox Game Bar (значение по умолчанию)
# XboxGameBar -Enable
# Disable Xbox Game Bar tips
# Отключить советы Xbox Game Bar
XboxGameTips -Disable

206
Sophia Script/Sophia Script for Windows 11/Sophia_edited.ps1

@ -0,0 +1,206 @@
#Requires -RunAsAdministrator
#Requires -Version 5.1
[CmdletBinding()]
param
(
[Parameter(Mandatory = $false)]
[string[]]
$Functions
)
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 2014$([char]0x2013)2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
#region Protection
Checkings -Warning
CreateRestorePoint
#endregion Protection
#region Privacy & Telemetry
DiagTrackService -Disable
DiagnosticDataLevel -Minimal
ErrorReporting -Disable
FeedbackFrequency -Never
ScheduledTasks -Disable
SigninInfo -Disable
LanguageListAccess -Disable
AdvertisingID -Disable
WindowsWelcomeExperience -Hide
WindowsTips -Enable
SettingsSuggestedContent -Hide
AppsSilentInstalling -Disable
WhatsNewInWindows -Disable
TailoredExperiences -Disable
BingSearch -Disable
#endregion Privacy & Telemetry
#region UI & Personalization
ThisPC -Show
Windows10FileExplorer -Enable
CheckBoxes -Disable
HiddenItems -Enable
FileExtensions -Show
MergeConflicts -Show
OpenFileExplorerTo -ThisPC
FileExplorerCompactMode -Disable
OneDriveFileExplorerAd -Hide
SnapAssistFlyout -Enable
SnapAssist -Disable
FileTransferDialog -Detailed
RecycleBinDeleteConfirmation -Enable
QuickAccessRecentFiles -Hide
QuickAccessFrequentFolders -Hide
TaskbarAlignment -Left
TaskbarSearch -Hide
TaskViewButton -Hide
TaskbarWidgets -Hide
TaskbarChat -Hide
ControlPanelView -LargeIcons
WindowsColorMode -Dark
AppColorMode -Dark
FirstLogonAnimation -Disable
JPEGWallpapersQuality -Max
TaskManagerWindow -Expanded
RestartNotification -Show
ShortcutsSuffix -Disable
PrtScnSnippingTool -Enable
AppsLanguageSwitch -Enable
AeroShaking -Enable
UnpinTaskbarShortcuts -Shortcuts Edge, Store
#endregion UI & Personalization
#region OneDrive
OneDrive -Uninstall
#endregion OneDrive
#region System
StorageSense -Enable
StorageSenseFrequency -Month
StorageSenseTempFiles -Enable
Hibernation -Disable
Win32LongPathLimit -Disable
BSoDStopError -Enable
AdminApprovalMode -Never
MappedDrivesAppElevatedAccess -Enable
DeliveryOptimization -Disable
WaitNetworkStartup -Enable
WindowsManageDefaultPrinter -Disable
WindowsFeatures -Disable
WindowsCapabilities -Uninstall
UpdateMicrosoftProducts -Enable
PowerPlan -High
LatestInstalled.NET -Enable
NetworkAdaptersSavePower -Disable
IPv6Component -Disable
InputMethod -English
SetUserShellFolderLocation -Root
WinPrtScrFolder -Desktop
RecommendedTroubleshooting -Automatically
FoldersLaunchSeparateProcess -Enable
ReservedStorage -Disable
F1HelpPage -Disable
NumLock -Enable
StickyShift -Disable
Autoplay -Disable
ThumbnailCacheRemoval -Disable
SaveRestartableApps -Enable
NetworkDiscovery -Enable
ActiveHours -Automatically
RestartDeviceAfterUpdate -Enable
DefaultTerminalApp -WindowsTerminal
#endregion System
#region WSL
#endregion WSL
#region Start menu
RunPowerShellShortcut -Elevated
#endregion Start menu
#region UWP apps
HEIF -Install
CortanaAutostart -Disable
TeamsAutostart -Disable
UninstallUWPApps
CheckUWPAppsUpdates
#endregion UWP apps
#region Gaming
XboxGameBar -Disable
XboxGameTips -Disable
GPUScheduling -Enable
SetAppGraphicsPerformance
#endregion Gaming
#region Scheduled tasks
CleanupTask -Register
SoftwareDistributionTask -Register
TempTask -Register
#endregion Scheduled tasks
#region Microsoft Defender & Security
NetworkProtection -Enable
PUAppsDetection -Enable
DefenderSandbox -Enable
AuditProcess -Enable
CommandLineProcessAudit -Enable
EventViewerCustomView -Enable
PowerShellModulesLogging -Enable
PowerShellScriptsLogging -Enable
AppsSmartScreen -Disable
SaveZoneInformation -Disable
DismissMSAccount
DismissSmartScreenFilter
#endregion Microsoft Defender & Security
#region Context menu
MSIExtractContext -Show
CABInstallContext -Show
RunAsDifferentUserContext -Show
CastToDeviceContext -Hide
ShareContext -Hide
EditWithPhotosContext -Hide
CreateANewVideoContext -Hide
PrintCMDContext -Hide
IncludeInLibraryContext -Hide
SendToContext -Hide
BitLockerContext -Hide
CompressedFolderNewContext -Hide
MultipleInvokeContext -Enable
UseStoreOpenWith -Hide
OpenWindowsTerminalContext -Hide
OpenWindowsTerminalAdminContext -Show
Windows10ContextMenu -Disable
#endregion Context menu
RefreshEnvironment
Errors

BIN
Sophia Script/Sophia Script for Windows 11/Start_Layout/start.bin

Binary file not shown.
Loading…
Cancel
Save