Browse Source

24.10.2021 6.0.6

pull/277/head
Dmitry Nefedov 3 years ago
parent
commit
67435b7c17
  1. 6
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1
  2. BIN
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Libraries/Microsoft.Windows.SDK.NET.dll
  3. BIN
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Libraries/WinRT.Runtime.dll
  4. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/de-DE/Sophia.psd1
  5. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/en-US/Sophia.psd1
  6. 5
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/es-ES/Sophia.psd1
  7. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/fr-FR/Sophia.psd1
  8. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/hu-HU/Sophia.psd1
  9. 5
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/it-IT/Sophia.psd1
  10. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/pt-BR/Sophia.psd1
  11. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/ru-RU/Sophia.psd1
  12. 11
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/tr-TR/Sophia.psd1
  13. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/uk-UA/Sophia.psd1
  14. 7
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/zh-CN/Sophia.psd1
  15. 2
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Manifest/Sophia.psd1
  16. 459
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1
  17. 104
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1
  18. 6
      Sophia Script/Sophia Script for Windows 11/Functions.ps1
  19. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/de-DE/Sophia.psd1
  20. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/en-US/Sophia.psd1
  21. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/es-ES/Sophia.psd1
  22. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/fr-FR/Sophia.psd1
  23. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/hu-HU/Sophia.psd1
  24. 5
      Sophia Script/Sophia Script for Windows 11/Localizations/it-IT/Sophia.psd1
  25. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/pt-BR/Sophia.psd1
  26. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/ru-RU/Sophia.psd1
  27. 11
      Sophia Script/Sophia Script for Windows 11/Localizations/tr-TR/Sophia.psd1
  28. 7
      Sophia Script/Sophia Script for Windows 11/Localizations/uk-UA/Sophia.psd1
  29. 6
      Sophia Script/Sophia Script for Windows 11/Localizations/zh-CN/Sophia.psd1
  30. 2
      Sophia Script/Sophia Script for Windows 11/Manifest/Sophia.psd1
  31. 416
      Sophia Script/Sophia Script for Windows 11/Module/Sophia.psm1
  32. 104
      Sophia Script/Sophia Script for Windows 11/Sophia.ps1

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

@ -5,8 +5,8 @@
Version: v6.0.5
Date: 05.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 20142021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.5 | 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.

BIN
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Libraries/WinRT.Runtime.dll

Binary file not shown.

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

@ -1,6 +1,6 @@
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.194 und höher
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Build: 22000.282 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
@ -14,10 +14,11 @@ ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = Deinstalliere OneDrive...
OneDriveInstalling = Installieren von OneDrive...
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
OpenInWindowsTerminalAdmin = Im Windows-Terminal öffnen (Admin)
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...
DriveSelect = Wählen Sie das Laufwerk aus, in dessen Stammverzeichnis der Ordner "{0}" erstellt werden soll
@ -75,7 +76,7 @@ Run = Starten
SelectAll = Wählen Sie Alle
Skip = Überspringen
Skipped = Übersprungen
FileExplorerRestartPrompt = Manchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden
FileExplorerRestartPrompt = \nManchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden
TelegramGroupTitle = Treten Sie unserer offiziellen Telegram-Gruppe bei
TelegramChannelTitle = Treten Sie unserem offiziellen Telegram-Kanal bei
Uninstall = Deinstallieren

7
Sophia Script/Sophia Script for Windows 11 PowerShell 7/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.194 and higher
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported build: 22000.282 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
@ -14,10 +14,11 @@ ScheduledTasks = Scheduled tasks
OneDriveUninstalling = Uninstalling OneDrive...
OneDriveInstalling = Installing OneDrive...
OneDriveDownloading = Downloading OneDrive... ~33 MB
OneDriveWarning = The "{0}" function will be applied only if the preset is configured to remove OneDrive, otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks
WindowsFeaturesTitle = Windows features
OptionalFeaturesTitle = Optional features
EnableHardwareVT = Enable Virtualization in UEFI
OpenInWindowsTerminalAdmin = Open in Windows Terminal (Admin)
OpenInWindowsTerminalAdmin = Open in Windows Terminal
UserShellFolderNotEmpty = Some files left in the "{0}" folder. Move them manually to a new location
RetrievingDrivesList = Retrieving drives list...
DriveSelect = Select the drive within the root of which the "{0}" folder will be created
@ -75,7 +76,7 @@ Run = Run
SelectAll = Select all
Skip = Skip
Skipped = Skipped
FileExplorerRestartPrompt = Sometimes in order for the changes to take effect the File Explorer process has to be restarted
FileExplorerRestartPrompt = \nSometimes in order for the changes to take effect the File Explorer process has to be restarted
TelegramGroupTitle = Join our official Telegram group
TelegramChannelTitle = Join our official Telegram channel
Uninstall = Uninstall

5
Sophia Script/Sophia Script for Windows 11 PowerShell 7/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.194 y superiores
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilación compatible: 22000.282 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
@ -14,9 +14,10 @@ ScheduledTasks = Tareas programadas
OneDriveUninstalling = Desinstalar OneDrive...
OneDriveInstalling = Instalación de OneDrive...
OneDriveDownloading = Descargando OneDrive... ~33 MB
OneDriveWarning = La función "{0}" se aplicará sólo si el preajuste está configurado para eliminar OneDrive, de lo contrario la funcionalidad de copia de seguridad para las carpetas "Escritorio" e "Imágenes" en OneDrive se rompe
WindowsFeaturesTitle = Características de Windows
OptionalFeaturesTitle = Características opcionales
OpenInWindowsTerminalAdmin = Abrir en el terminal de Windows (administrador)
OpenInWindowsTerminalAdmin = Abrir en el terminal de Windows
EnableHardwareVT = Habilitar la virtualización en UEFI
UserShellFolderNotEmpty = Algunos archivos quedan en la carpeta "{0}". Moverlos manualmente a una nueva ubicación
RetrievingDrivesList = Recuperando lista de unidades...

7
Sophia Script/Sophia Script for Windows 11 PowerShell 7/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.194 et ultérieures
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Version prise en charge : 22000.282 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
@ -14,9 +14,10 @@ ScheduledTasks = Tâches planifiées
OneDriveUninstalling = Désinstalltion de OneDrive...
OneDriveInstalling = Installation de OneDrive...
OneDriveDownloading = Téléchargement de OneDrive... ~33 Mo
OneDriveWarning = La fonction "{0}" sera appliquée uniquement si le préréglage est configuré pour supprimer OneDrive, sinon la fonctionnalité de sauvegarde des dossiers "Desktop" et "Pictures" dans OneDrive s'interrompt.
WindowsFeaturesTitle = Fonctionnalités
OptionalFeaturesTitle = Fonctionnalités optionnelles
OpenInWindowsTerminalAdmin = Ouvrir dans le Windows Terminal (Admin)
OpenInWindowsTerminalAdmin = Ouvrir dans le Windows Terminal
EnableHardwareVT = Activer la virtualisation dans UEFI
UserShellFolderNotEmpty = Certains fichiers laissés dans le dossier "{0}". Déplacer les manuellement vers un nouvel emplacement
RetrievingDrivesList = Récupération de la liste des lecteurs...
@ -75,7 +76,7 @@ Run = Démarrer
SelectAll = Tout sélectionner
Skip = Passer
Skipped = Passé
FileExplorerRestartPrompt = Parfois, pour que les modifications soient prises en compte, il faut redémarrer l'Explorateur de fichiers
FileExplorerRestartPrompt = \nParfois, pour que les modifications soient prises en compte, il faut redémarrer l'Explorateur de fichiers
TelegramGroupTitle = Rejoignez notre groupe Telegram officiel
TelegramChannelTitle = Rejoignez notre canal Telegram officiel
Uninstall = Désinstaller

7
Sophia Script/Sophia Script for Windows 11 PowerShell 7/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.194 és magasabb verziószámok
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott build: 22000.282 é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
@ -14,10 +14,11 @@ ScheduledTasks = Ütemezett feladatok
OneDriveUninstalling = OneDrive eltávolítása...
OneDriveInstalling = OneDrive telepítése...
OneDriveDownloading = OneDrive letöltése... ~33 MB
OneDriveWarning = A "{0}" funkció csak akkor kerül alkalmazásra, ha az előbeállítás a OneDrive eltávolítására van beállítva, különben a OneDrive "Desktop" és "Pictures" mappáinak biztonsági mentési funkciója megszakad.
WindowsFeaturesTitle = Windows szolgáltatások
OptionalFeaturesTitle = Opcionális szolgáltatások
EnableHardwareVT = Virtualizáció engedélyezése UEFI-ben
OpenInWindowsTerminalAdmin = Megnyitás a Windows terminálon (admin)
OpenInWindowsTerminalAdmin = Megnyitás a Windows terminálon
UserShellFolderNotEmpty = Néhány fájl maradt a "{0}" könyvtárban. Kérem helyezze át ezeket egy új helyre
RetrievingDrivesList = A meghajtók listájának lekérése...
DriveSelect = Válassza ki a meghajtó jelét a gyökérkönyvtárban ahol a "{0}" könyvtár létre lesz hozva
@ -75,7 +76,7 @@ Run = Futtatás
SelectAll = Összes kijelölése
Skip = Átugrás
Skipped = Átugorva
FileExplorerRestartPrompt = Néha ahhoz, hogy a módosítások hatályba lépjenek, a File Explorer folyamatot újra kell indítani
FileExplorerRestartPrompt = \nNéha ahhoz, hogy a módosítások hatályba lépjenek, a File Explorer folyamatot újra kell indítani
TelegramGroupTitle = Pridružite se našoj službenoj grupi Telegram
TelegramChannelTitle = Pridružite se našem službenom kanalu Telegram
Uninstall = Eltávolít

5
Sophia Script/Sophia Script for Windows 11 PowerShell 7/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.194 e successive
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.282 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
@ -14,6 +14,7 @@ ScheduledTasks = Attività pianificate
OneDriveUninstalling = Disinstalla OneDrive...
OneDriveInstalling = Installazione di OneDrive...
OneDriveDownloading = Download di OneDrive... ~33 MB
OneDriveWarning = La funzione "{0}" sarà applicata solo se il preset è configurato per rimuovere OneDrive, altrimenti la funzionalità di backup per le cartelle "Desktop" e "Pictures" in OneDrive si interrompe
WindowsFeaturesTitle = Funzionalità di Windows
OptionalFeaturesTitle = Caratteristiche opzionali
EnableHardwareVT = Abilita virtualizzazione in UEFI
@ -75,7 +76,7 @@ Run = Eseguire
SelectAll = Seleziona tutto
Skip = Salta
Skipped = Saltato
FileExplorerRestartPrompt = A volte, affinché le modifiche abbiano effetto, il processo di File Explorer deve essere riavviato
FileExplorerRestartPrompt = \nA volte, affinché le modifiche abbiano effetto, il processo di File Explorer deve essere riavviato
TelegramGroupTitle = Unisciti al nostro gruppo ufficiale Telegram
TelegramChannelTitle = Unisciti al nostro canale ufficiale di Telegram
Uninstall = Disinstallare

7
Sophia Script/Sophia Script for Windows 11 PowerShell 7/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.194 e successive
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.282 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
@ -14,10 +14,11 @@ ScheduledTasks = Tarefas agendadas
OneDriveUninstalling = Desinstalar OneDrive...
OneDriveInstalling = Instalar o OneDrive...
OneDriveDownloading = Baixando OneDrive... ~33 MB
OneDriveWarning = A função "{0}" será aplicada somente se a predefinição for configurada para remover o OneDrive, caso contrário a funcionalidade de backup para as pastas "Desktop" e "Pictures" no OneDrive quebra
WindowsFeaturesTitle = Recursos do Windows
OptionalFeaturesTitle = Recursos opcionais
EnableHardwareVT = Habilitar virtualização em UEFI
OpenInWindowsTerminalAdmin = Abrir no Windows Terminal (Admin)
OpenInWindowsTerminalAdmin = Abrir no Windows Terminal
UserShellFolderNotEmpty = Alguns arquivos deixados na pasta "{0}". Movê-los manualmente para um novo local
RetrievingDrivesList = Recuperando lista de unidades...
DriveSelect = Selecione a unidade dentro da raiz da qual a pasta "{0}" será criada
@ -75,7 +76,7 @@ Run = Executar
SelectAll = Selecionar tudo
Skip = Pular
Skipped = Ignorados
FileExplorerRestartPrompt = Por vezes, para que as alterações tenham efeito, o processo File Explorer tem de ser reiniciado
FileExplorerRestartPrompt = \nPor vezes, para que as alterações tenham efeito, o processo File Explorer tem de ser reiniciado
TelegramGroupTitle = Entre no grupo oficial do Telegram
TelegramChannelTitle = Entre no canal oficial do Telegram
Uninstall = Desinstalar

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт поддерживает только Windows 11 21H2 и выше
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемый билд: 22000.194 и выше
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемый билд: 22000.282 и выше
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
@ -14,10 +14,11 @@ ScheduledTasks = Запланированные за
OneDriveUninstalling = Удаление OneDrive...
OneDriveInstalling = OneDrive устанавливается...
OneDriveDownloading = Скачивается OneDrive... ~33 МБ
OneDriveWarning = Функция "{0}" будет применена только в случае, если в пресете настроено удаление приложения OneDrive, иначе ломается функционал резервного копирования для папок "Рабочий стол" и "Изображения" в OneDrive
WindowsFeaturesTitle = Компоненты Windows
OptionalFeaturesTitle = Дополнительные компоненты
EnableHardwareVT = Включите виртуализацию в UEFI
OpenInWindowsTerminalAdmin = Открыть в Windows Terminal (администратор)
OpenInWindowsTerminalAdmin = Открыть в Терминале Windows
UserShellFolderNotEmpty = В папке "{0}" остались файлы. Переместите их вручную в новое расположение
RetrievingDrivesList = Получение списка дисков...
DriveSelect = Выберите диск, в корне которого будет создана папка "{0}"
@ -75,7 +76,7 @@ Run = Запустить
SelectAll = Выбрать всё
Skip = Пропустить
Skipped = Пропущено
FileExplorerRestartPrompt = Иногда для того, чтобы изменения вступили в силу, процесс проводника необходимо перезапустить
FileExplorerRestartPrompt = \nИногда для того, чтобы изменения вступили в силу, процесс проводника необходимо перезапустить
TelegramGroupTitle = Присоединяйтесь к нашей официальной группе в Telegram
TelegramChannelTitle = Присоединяйтесь к нашему официальному каналу в Telegram
Uninstall = Удалить

11
Sophia Script/Sophia Script for Windows 11 PowerShell 7/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.194 ve üstünü destekliyor
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapı: 22000.282 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
@ -14,10 +14,11 @@ ScheduledTasks = Zamanlanan görevler
OneDriveUninstalling = OneDrive kaldırılıyor...
OneDriveInstalling = OneDrive kuruluyor...
OneDriveDownloading = OneDrive indiriliyor... ~33 MB
WindowsFeaturesTitle = Windows özellikleri
OptionalFeaturesTitle = İsteğe bağlı özellikler
OneDriveWarning = "{0}" işlevi yalnızca ön ayar OneDrive'ı kaldıracak şekilde yapılandırılırsa uygulanır, aksi takdirde OneDrive'daki "Masaüstü" ve "Resimler" klasörleri için yedekleme işlevi bozulur
WindowsFeaturesTitle = Características do Windows
OptionalFeaturesTitle = Opsiyonel özellikler
EnableHardwareVT = UEFI'dan sanallaştırmayı aktifleştirin
OpenInWindowsTerminalAdmin = Windows Terminalinde (Yönetici)
OpenInWindowsTerminalAdmin = Windows Terminalinde
UserShellFolderNotEmpty = "{0}" klasöründe bazı dosyalar kaldı. \nKendiniz yeni konuma taşıyın
RetrievingDrivesList = Sürücü listesi alınıyor...
DriveSelect = "{0}" klasörünün oluşturulacağı kök içindeki sürücüyü seçin
@ -75,7 +76,7 @@ Run = Başlat
SelectAll = Hepsini seç
Skip = Atla
Skipped = Atlandı
FileExplorerRestartPrompt = Bazen değişikliklerin geçerli olması için Dosya Gezgini işleminin yeniden başlatılması gerekir
FileExplorerRestartPrompt = \nBazen değişikliklerin geçerli olması için Dosya Gezgini işleminin yeniden başlatılması gerekir
TelegramGroupTitle = Resmi Telegram grubumuza katılın
TelegramChannelTitle = Resmi Telegram kanalımıza katılın
Uninstall = Kaldır

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = Скрипт підтримує тільки Windows 11 версії 21H2 та вище
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримуваний білд: 22000.194 та вище
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримуваний білд: 22000.282 та вище
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний увійшов користувач не володіє правами адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
@ -14,10 +14,11 @@ ScheduledTasks = Заплановані задачі
OneDriveUninstalling = Видалення OneDrive...
OneDriveInstalling = OneDrive встановлюється...
OneDriveDownloading = Завантажується OneDrive... ~33 МБ
OneDriveWarning = Функція "{0}" буде застосована тільки в разі, якщо в пресете налаштоване щоб видалити програму OneDrive, інакше ламається функціонал резервного копіювання для папок "Робочий стіл" і "Зображення" в OneDrive
WindowsFeaturesTitle = Компоненти Windows
OptionalFeaturesTitle = Додаткові компоненти
EnableHardwareVT = Увімкніть віртуалізацію в UEFI
OpenInWindowsTerminalAdmin = Відкрити в Windows Terminal (адміністратор)
OpenInWindowsTerminalAdmin = Відкрити в Windows Terminal
UserShellFolderNotEmpty = У папці "{0}" залишились файли. Перемістіть їх вручну у нове розташування
RetrievingDrivesList = Отримання списку дисків...
DriveSelect = Виберіть диск, в корні якого буде створена папка для "{0}"
@ -75,7 +76,7 @@ Run = Запустити
SelectAll = Вибрати все
Skip = Пропустити
Skipped = Пропущено
FileExplorerRestartPrompt = Іноді для того, щоб зміни вступили в силу, процес провідника необхідно перезапустити
FileExplorerRestartPrompt = \nІноді для того, щоб зміни вступили в силу, процес провідника необхідно перезапустити
TelegramGroupTitle = Приєднуйтесь до нашої офіційної групи в Telegram
TelegramChannelTitle = Приєднуйтесь до нашого офіційного каналу в Telegram
Uninstall = Видалити

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

@ -1,6 +1,6 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBuild = 该脚本支持Windows 11版本21H2和更高版本
UpdateWarning = 您的Windows 11构建{0}.{1}支持的构建22000.194和更高版本
UpdateWarning = 您的Windows 11构建{0}.{1}支持的构建22000.282和更高版本
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -14,10 +14,11 @@ ScheduledTasks = 计划任务
OneDriveUninstalling = 卸载OneDrive
OneDriveInstalling = OneDrive正在安装
OneDriveDownloading = 正在下载OneDrive ~33 MB
OneDriveWarning = 只有当预设被配置为删除OneDrive时才会应用"{0}"功能否则OneDrive中的 "桌面 " "图片 "文件夹的备份功能就会中断
WindowsFeaturesTitle = Windows功能
OptionalFeaturesTitle = 可选功能
EnableHardwareVT = UEFI中开启虚拟化
OpenInWindowsTerminalAdmin = 在Windows终端打开管理员
OpenInWindowsTerminalAdmin = 在Windows终端打开
UserShellFolderNotEmpty = 一些文件留在了{0}文件夹请手动将它们移到一个新位置
RetrievingDrivesList = 取得驱动器列表
DriveSelect = 选择将在其根目录中创建{0}文件夹的驱动器
@ -75,7 +76,7 @@ Run = 运行
SelectAll = 全选
Skip = 跳过
Skipped = 已跳过
FileExplorerRestartPrompt = 有时为了使更改生效必须重新启动文件管理器进程
FileExplorerRestartPrompt = \n有时为了使更改生效必须重新启动文件管理器进程
TelegramGroupTitle = 加入我们的官方Telegram
TelegramChannelTitle = 加入我们的官方Telegram 频道
Uninstall = 卸载

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

@ -3,7 +3,7 @@
ModuleVersion = '6.0.5'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 20142021 farag & Inestic. All rights reserved'
Copyright = '(c) 20142021 farag & Inestic. All rights reserved'
Description = 'Module for Windows fine-tuning and automating the routine tasks'
PowerShellVersion = '5.1'
ProcessorArchitecture = 'AMD64'

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

@ -2,11 +2,11 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.0.5
Date: 05.10.2021
Version: v6.0.6
Date: 24.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -16,7 +16,7 @@
.NOTES
Supported Windows 11 version
Version: 21H2
Build: 22000.194
Build: 22000.258
Editions: Home/Pro/Enterprise
.NOTES
@ -66,8 +66,8 @@ function Checkings
}
}
# Check whether the OS minor build version is 194 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 194)
# Check whether the OS minor build version is 258 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 258)
{
$false
{
@ -91,22 +91,6 @@ function Checkings
}
}
<# Check whether fTPM 2.0 supported
$CurrentVersion = (Get-CimInstance -Namespace root/cimv2/Security/MicrosoftTpm -ClassName Win32_Tpm).SpecVersion.Split(",").Trim() | Select-Object -First 1
switch ([System.Version]$CurrentVersion -lt [System.Version]"2.0")
{
$true
{
Write-Warning -Message $Localization.UnsupportedTPM
Start-Sleep -Seconds 5
Start-Process -FilePath "https://docs.microsoft.com/windows/whats-new/windows-11-requirements"
exit
}
}
#>
# Check the language mode
switch ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage")
{
@ -175,8 +159,6 @@ function Checkings
# Check if the current module version is the latest one
try
{
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls13
# 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"
@ -257,6 +239,9 @@ function Checkings
$Script:ControlledFolderAccess = $false
}
}
# Save all opened folders in order to restore them after File Explorer restart
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
}
#endregion Checkings
@ -598,39 +583,30 @@ function ScheduledTasks
# The following tasks will have their checkboxes checked
[string[]]$CheckedScheduledTasks = @(
# Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program
# Сбор телеметрических данных программы при участии в программе улучшения качества ПО
"ProgramDataUpdater",
# This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program
# Эта задача собирает и загружает данные SQM при участии в программе улучшения качества программного обеспечения
"Proxy",
# If the user has consented to participate in the Windows Customer Experience Improvement Program, this job collects and sends usage data to Microsoft
# Если пользователь изъявил желание участвовать в программе по улучшению качества программного обеспечения Windows, эта задача будет собирать и отправлять сведения о работе программного обеспечения в Майкрософт
"Consolidator",
# The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft
# При выполнении задачи программы улучшения качества ПО шины USB (USB CEIP) осуществляется сбор статистических данных об использовании универсальной последовательной шины USB и с ведений о компьютере, которые направляются инженерной группе Майкрософт по вопросам подключения устройств в Windows
"UsbCeip",
# The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program
# Для пользователей, участвующих в программе контроля качества программного обеспечения, служба диагностики дисков Windows предоставляет общие сведения о дисках и системе в корпорацию Майкрософт
"Microsoft-Windows-DiskDiagnosticDataCollector",
# This task shows various Map related toasts
# Эта задача показывает различные тосты (всплывающие уведомления) приложения "Карты"
"MapsToastTask",
# This task checks for updates to maps which you have downloaded for offline use
# Эта задача проверяет наличие обновлений для карт, загруженных для автономного использования
"MapsUpdateTask",
# Initializes Family Safety monitoring and enforcement
# Инициализация контроля и применения правил семейной безопасности
"FamilySafetyMonitor",
# Synchronizes the latest settings with the Microsoft family features service
# Синхронизирует последние параметры со службой функций семьи учетных записей Майкрософт
"FamilySafetyRefreshTask",
# XblGameSave Standby Task
@ -864,7 +840,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -1738,11 +1714,11 @@ function MergeConflicts
{
"Show"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideMergeConflicts -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideMergeConflicts -PropertyType DWord -Value 0 -Force
}
"Hide"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideMergeConflicts -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideMergeConflicts -PropertyType DWord -Value 1 -Force
}
}
}
@ -1840,11 +1816,11 @@ function FileExplorerCompactMode
{
"Disable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 1 -Force
}
}
}
@ -2480,21 +2456,6 @@ function TaskbarChat
}
}
<#
.SYNOPSIS
Icons in the notification area
.NOTES
Open the "Notification Area Icons" page in Control Panel to enable "Always show all icons in the notification area" settings manually
.NOTES
Current user
#>
function NotificationAreaIcons
{
Start-Process -FilePath "shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}"
}
<#
.SYNOPSIS
Unpin shortcuts from the taskbar
@ -2580,74 +2541,6 @@ public static string GetString(uint strId)
}
}
<#
.SYNOPSIS
The taskbar size
.PARAMETER Large
Make the taskbar size large
.PARAMETER Default
Make the taskbar size default
.PARAMETER Small
Make the taskbar size small
.EXAMPLE
TaskbarSize -Large
.EXAMPLE
TaskbarSize -Default
.EXAMPLE
TaskbarSize -Small
.NOTES
Current user
#>
function TaskbarSize
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Large"
)]
[switch]
$Large,
[Parameter(
Mandatory = $true,
ParameterSetName = "Default"
)]
[switch]
$Default,
[Parameter(
Mandatory = $true,
ParameterSetName = "Small"
)]
[switch]
$Small
)
switch ($PSCmdlet.ParameterSetName)
{
"Large"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarSi -PropertyType DWord -Value 2 -Force
}
"Default"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarSi -PropertyType DWord -Value 1 -Force
}
"Small"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarSi -PropertyType DWord -Value 0 -Force
}
}
}
<#
.SYNOPSIS
The Control Panel icons view
@ -3368,7 +3261,7 @@ public static bool MarkFileDelete (string sourcefile)
"@
}
# If there are some files or folders left in %LOCALAPPDATA\Temp%
# If there are some files or folders left in %LOCALAPPDATA%\Temp
if ((Get-ChildItem -Path $env:OneDrive -ErrorAction Ignore | Measure-Object).Count -ne 0)
{
if (-not ("WinAPI.DeleteFiles" -as [type]))
@ -3535,6 +3428,9 @@ public static bool MarkFileDelete (string sourcefile)
}
}
# Save screenshots by pressing Win+PrtScr in the Pictures folder
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Force -ErrorAction Ignore
Get-ScheduledTask -TaskName "Onedrive* Update*" | Enable-ScheduledTask
Get-ScheduledTask -TaskName "Onedrive* Update*" | Start-ScheduledTask
}
@ -3915,6 +3811,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
#region main
# Change the %TEMP% environment variable path to %LOCALAPPDATA%\Temp
# The additional registry key creating are needed to fix the property type of the keys: SetEnvironmentVariable creates them with the "String" type instead of "ExpandString" as by default
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "User")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Machine")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Process")
@ -4464,7 +4361,6 @@ function WindowsFeatures
# The following Windows features will have their checkboxes checked
[string[]]$CheckedFeatures = @(
# Legacy Components
# Компоненты прежних версий
"LegacyComponents",
# PowerShell 2.0
@ -4472,11 +4368,9 @@ function WindowsFeatures
"MicrosoftWindowsPowershellV2Root",
# Microsoft XPS Document Writer
# Средство записи XPS-документов (Microsoft)
"Printing-XPSServices-Features",
# Work Folders Client
# Клиент рабочих папок
"WorkFolders-Client"
)
@ -4714,7 +4608,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -4791,11 +4685,9 @@ function WindowsCapabilities
# The following optional features will have their checkboxes checked
[string[]]$CheckedCapabilities = @(
# Steps Recorder
# Средство записи действий
"App.StepsRecorder*",
# Microsoft Quick Assist
# Быстрая поддержка (Майкрософт)
"App.Support.QuickAssist*",
# WordPad
@ -4808,7 +4700,6 @@ function WindowsCapabilities
"Browser.InternetExplorer*",
# Math Recognizer
# Распознаватель математических знаков
"MathRecognizer*",
# Windows Media Player
@ -4816,38 +4707,30 @@ function WindowsCapabilities
"Media.WindowsMediaPlayer*",
# OpenSSH Client
# Клиент OpenSSH
"OpenSSH.Client*"
)
# The following optional features will be excluded from the display
[string[]]$ExcludedCapabilities = @(
# The DirectX Database to configure and optimize apps when multiple Graphics Adapters are present
# База данных DirectX для настройки и оптимизации приложений при наличии нескольких графических адаптеров
"DirectX.Configuration.Database*",
# Language components
# Языковые компоненты
"Language.*",
# Notepad
# Блокнот
"Microsoft.Windows.Notepad*",
# Mail, contacts, and calendar sync component
# Компонент синхронизации почты, контактов и календаря
"OneCoreUAP.OneSync*",
# Windows PowerShell Intergrated Scripting Enviroment
# Интегрированная среда сценариев Windows PowerShell
"Microsoft.Windows.PowerShell.ISE*",
# Management of printers, printer drivers, and printer servers
# Управление принтерами, драйверами принтеров и принт-серверами
"Print.Management.Console*",
# Features critical to Windows functionality
# Компоненты, критичные для работоспособности Windows
"Windows.Client.ShellComponents*"
)
#endregion Variables
@ -5111,7 +4994,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -5184,7 +5067,7 @@ function UpdateMicrosoftProducts
}
"Disable"
{
if ((New-Object -ComObject Microsoft.Update.ServiceManager).Services | Where-Object -FilterScript {$_.ServiceID -eq "7971f918-a847-4430-9279-4a52d1efe18d"})
if (((New-Object -ComObject Microsoft.Update.ServiceManager).Services | Where-Object -FilterScript {$_.ServiceID -eq "7971f918-a847-4430-9279-4a52d1efe18d"}).IsDefaultAUService -eq $true)
{
(New-Object -ComObject Microsoft.Update.ServiceManager).RemoveService("7971f918-a847-4430-9279-4a52d1efe18d")
}
@ -5441,14 +5324,14 @@ function IPv6Component
{
if ($null -eq $IPv6Test)
{
Disable-NetAdapterBinding Name * ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name * -ComponentID ms_tcpip6
}
}
"Enable"
{
if ($IPv6Test)
{
Enable-NetAdapterBinding Name * ComponentID ms_tcpip6
Enable-NetAdapterBinding -Name * -ComponentID ms_tcpip6
}
}
}
@ -6521,6 +6404,10 @@ public static string GetString(uint strId)
.EXAMPLE
WinPrtScrFolder -Default
.NOTES
The function will be applied only if the preset is configured to remove OneDrive,
otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks
.NOTES
Current user
#>
@ -6547,8 +6434,16 @@ 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
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
}
else
{
Write-Warning -Message ($Localization.OneDriveWarning -f $MyInvocation.Line)
Write-Error -Message ($Localization.OneDriveWarning -f $MyInvocation.Line) -ErrorAction SilentlyContinue
}
}
"Default"
{
@ -7929,7 +7824,7 @@ public static void Refresh()
Default terminal app
.PARAMETER WindowsTerminal
Set Windows Terminal Preview as default terminal app to host the user interface for command-line applications
Set Windows Terminal as default terminal app to host the user interface for command-line applications
.PARAMETER ConsoleHost
Set Windows Console Host as default terminal app to host the user interface for command-line applications
@ -7966,12 +7861,15 @@ function DefaultTerminalApp
{
"WindowsTerminal"
{
if (-not (Test-Path -Path HKCU:\Console\%%Startup))
if (Get-AppxPackage -Name Microsoft.WindowsTerminal)
{
New-Item -Path HKCU:\Console\%%Startup -Force
if (-not (Test-Path -Path HKCU:\Console\%%Startup))
{
New-Item -Path HKCU:\Console\%%Startup -Force
}
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationConsole -PropertyType String -Value "{06EC847C-C0A5-46B8-92CB-7C92F6E35CD5}" -Force
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationTerminal -PropertyType String -Value "{86633F1F-6454-40EC-89CE-DA4EBA977EE2}" -Force
}
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationConsole -PropertyType String -Value "{06EC847C-C0A5-46B8-92CB-7C92F6E35CD5}" -Force
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationTerminal -PropertyType String -Value "{86633F1F-6454-40EC-89CE-DA4EBA977EE2}" -Force
}
"ConsoleHost"
{
@ -8144,7 +8042,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -8167,61 +8065,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
#endregion WSL
#region Start menu
<#
.SYNOPSIS
Recently added apps in the Start menu
.PARAMETER Hide
Hide recently added apps in the Start menu
.PARAMETER Show
Show recently added apps in the Start menu
.EXAMPLE
RecentlyAddedApps -Hide
.EXAMPLE
RecentlyAddedApps -Show
.NOTES
Machine-wide
#>
function RecentlyAddedApps
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,
[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -PropertyType DWord -Value 1 -Force
}
"Show"
{
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
How to run the Windows PowerShell shortcut
@ -8302,7 +8145,6 @@ function RunPowerShellShortcut
.NOTES
Current user
#>
function UninstallUWPApps
{
[CmdletBinding()]
@ -8509,12 +8351,21 @@ function UninstallUWPApps
Write-Verbose -Message $Localization.Patient -Verbose
$AppxPackages = @(Get-AppxPackage -PackageTypeFilter Bundle -AllUsers:$AllUsers | Where-Object -FilterScript {$_.Name -notin $ExcludedAppxPackages})
# The Bundle packages contains no Microsoft Teams
if (Get-AppxPackage -Name MicrosoftTeams -AllUsers:$AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Microsoft Teams packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name MicrosoftTeams -AllUsers:$AllUsers | Select-Object -Index 0
}
# The Bundle packages contains no Spotify
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers:$AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Microsoft Teams packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers:$AllUsers | Select-Object -Index 0
}
$PackagesIds = [Windows.Management.Deployment.PackageManager]::new().FindPackages().AdditionalTypeData[[Collections.IEnumerable].TypeHandle] | Select-Object -Property DisplayName -ExpandProperty Id | Select-Object -Property Name, DisplayName
foreach ($AppxPackage in $AppxPackages)
@ -8720,7 +8571,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -8767,7 +8618,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
.NOTES
Current user
#>
function RestoreUWPApps
{
Add-Type -AssemblyName "$PSScriptRoot\..\Libraries\WinRT.Runtime.dll"
@ -8867,12 +8717,21 @@ function RestoreUWPApps
# You cannot retrieve packages using -PackageTypeFilter Bundle, otherwise you won't get the InstallLocation attribute. It can be retrieved only by comparing with $Bundles
$Bundles = (Get-AppXPackage -PackageTypeFilter Bundle -AllUsers).Name
$AppxPackages = @(Get-AppxPackage -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} | Where-Object -FilterScript {$_.Name -in $Bundles})
# The Bundle packages contains no Microsoft Teams
if (Get-AppxPackage -Name MicrosoftTeams -AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Microsoft Teams packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name MicrosoftTeams -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} | Select-Object -Index 0
}
# The Bundle packages contains no Microsoft Teams
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Spotify packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} | Select-Object -Index 0
}
$PackagesIds = [Windows.Management.Deployment.PackageManager]::new().FindPackages().AdditionalTypeData[[Collections.IEnumerable].TypeHandle] | Select-Object -Property DisplayName -ExpandProperty Id | Select-Object -Property Name, DisplayName
foreach ($AppxPackage in $AppxPackages)
@ -9057,7 +8916,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -11000,18 +10859,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
}
}
}
@ -11138,9 +10997,6 @@ function CastToDeviceContext
.EXAMPLE
ShareContext -Show
.NOTES
Showing the "Share" item in the context menu will disable the Windows 10 File Explorer
.NOTES
Current user
#>
@ -11167,20 +11023,19 @@ function ShareContext
{
"Hide"
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked"))
if (-not (Test-Path -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Force
New-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{E2BF9676-5F8F-435C-97EB-11607A5BEDF7}" -PropertyType String -Value "" -Force
New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Name "(default)" -PropertyType String -Value "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" -Force
}
"Show"
{
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{E2BF9676-5F8F-435C-97EB-11607A5BEDF7}" -Force -ErrorAction Ignore
Remove-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Recurse -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
The "Edit with Photos" item in the media files context menu
@ -11777,75 +11632,89 @@ function OpenWindowsTerminalAdminContext
{
if (Get-AppxPackage -Name Microsoft.WindowsTerminal)
{
try
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}
$Parameters = @{
Uri = "https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico"
OutFile = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
}
catch [System.Net.WebException]
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
}
# Show the option in the Desktop context menu
if (-not (Test-Path -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin\command))
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command))
{
New-Item -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin\command -ItemType Directory -Force
New-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command -ItemType Directory -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
if (Test-Path -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico")
{
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin -Name Icon -PropertyType String -Value "%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico" -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin -Name NoWorkingDirectory -PropertyType String -Value "" -Force
$Value = "powershell.exe Start-Process -FilePath wt.exe -ArgumentList '-d `"`"`"%V`"`"`"' -Verb RunAs"
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHereAsAdmin\command -Name "(default)" -PropertyType String -Value $Value -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas -Name Icon -PropertyType String -Value "imageres.dll,73" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas -Name NoWorkingDirectory -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command -Name "(default)" -PropertyType String -Value "wt.exe -d ""%V""" -Force
# Show the option in the folders context menu
if (-not (Test-Path -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin\command))
{
New-Item -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin\command -ItemType Directory -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
if (Test-Path -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico")
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command))
{
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin -Name Icon -PropertyType String -Value "%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico" -Force
New-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command -ItemType Directory -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin -Name NoWorkingDirectory -PropertyType String -Value "" -Force
$Value = "powershell.exe Start-Process -FilePath wt.exe -ArgumentList '-d `"`"`"%1`"`"`"' -Verb RunAs"
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\OpenWTHereAsAdmin\command -Name "(default)" -PropertyType String -Value $Value -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas -Name Icon -PropertyType String -Value "imageres.dll,73" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas -Name NoWorkingDirectory -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command -Name "(default)" -PropertyType String -Value "wt.exe -d ""%1""" -Force
}
}
"Hide"
{
if (Get-AppxPackage -Name Microsoft.WindowsTerminal)
{
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHereAsAdmin -Recurse -Force -ErrorAction Ignore
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\OpenWTHereAsAdmin -Recurse -Force -ErrorAction Ignore
$Items = @(
"Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas",
"Registry::HKEY_CLASSES_ROOT\Directory\shell\runas"
)
Remove-Item -Path $Items -Recurse -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
The "Show more options" in the context menu
.PARAMETER Enable
Enable the Windows 10 context menu style
.PARAMETER Disable
Disable the Windows 10 context menu style
.EXAMPLE
Windows10ContextMenu -Enable
.EXAMPLE
Windows10ContextMenu -Disable
.NOTES
Current user
#>
function Windows10ContextMenu
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Enable"
)]
[switch]
$Enable,
[Parameter(
Mandatory = $true,
ParameterSetName = "Disable"
)]
[switch]
$Disable
)
Remove-Item -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico" -Force -ErrorAction Ignore
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
Remove-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Recurse -Force -ErrorAction Ignore
}
"Disable"
{
if (-not (Test-Path -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32"))
{
New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -ItemType Directory -Force
}
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Name "(default)" -PropertyType String -Value "" -Force
}
}
}
@ -11919,6 +11788,38 @@ public static void PostMessage()
Set-MpPreference -EnableControlledFolderAccess Enabled
}
# In order for the changes to take effect the File Explorer process has to be restarted
$Title = ""
$Message = $Localization.FileExplorerRestartPrompt
$Yes = $Localization.Yes
$No = $Localization.No
$Options = "&$No", "&$Yes"
$DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
continue
}
"1"
{
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
# Restoring closed folders
foreach ($Script:OpenedFolder in $Script:OpenedFolders)
{
if (Test-Path -Path $Script:OpenedFolder)
{
Invoke-Item -Path $Script:OpenedFolder
}
}
}
}
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message $Localization.RestartWarning

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

@ -2,11 +2,11 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11"
Version: v6.0.5
Date: 05.10.2021
Version: v6.0.6
Date: 24.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -28,7 +28,7 @@
.NOTES
Supported Windows 11 version
Version: 21H2
Build: 22000.194
Build: 22000.282
Editions: Home/Pro/Enterprise
.NOTES
@ -71,7 +71,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 20142021"
$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"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -334,11 +334,11 @@ SnapAssist -Disable
# Show snap layouts when I hover over a windows's maximaze button (default value)
# Показывать макеты прикрепления, частью которых является приложение, при наведении указателя мыши на кнопки панели задач (значение по умолчанию)
SnapAssistFlyout -Disable
SnapAssistFlyout -Enable
# Hide snap layouts when I hover over a windows's maximaze button
# Не показывать макеты прикрепления, частью которых является приложение, при наведении указателя мыши на кнопки панели задач
# SnapAssistFlyout -Enable
# SnapAssistFlyout -Disable
# Show the file transfer dialog box in the detailed mode
# Отображать диалоговое окно передачи файлов в развернутом виде
@ -412,26 +412,10 @@ TaskbarChat -Hide
# Отобразить кнопку чата (Microsoft Teams) на панели задач (значение по умолчанию)
# TaskbarChat -Show
# Open the "Notification Area Icons" page in Control Panel to enable "Always show all icons in the notification area" settings manually
# Открыть страницу "Значки области уведомлений" в Панели управления, чтобы вручную активировать настройку "Всегда отображать все значки и уведомления на панели задач"
NotificationAreaIcons
# Unpin the "Microsoft Edge", "Microsoft Store" shortcuts from the taskbar
# Открепить ярлыки "Microsoft Edge", "Microsoft Store" или "Почта" от панели задач
UnpinTaskbarShortcuts -Shortcuts Edge, Store
# Make the taskbar size large
# Сделать панели задач большой
# TaskbarSize -Large
# Make the taskbar size default
# Сделать панели задач по умолчанию
TaskbarSize -Default
# Make the taskbar size small
# Сделать панели задач маленькой
# TaskbarSize -Small
# View the Control Panel icons by large icons
# Просмотр иконок Панели управления как: крупные значки
ControlPanelView -LargeIcons
@ -545,14 +529,6 @@ StorageSense -Enable
# Выключить Контроль памяти (значение по умолчанию)
# StorageSense -Disable
# Turn on automatic cleaning up temporary system and app files
# Автоматически очищать временные файлы системы и приложений
StorageSenseTempFiles -Enable
# Turn off automatic cleaning up temporary system and app files
# Не очищать временные файлы системы и приложений
# StorageSenseTempFiles -Disable
# Run Storage Sense every month
# Запускать Контроль памяти каждый месяц
StorageSenseFrequency -Month
@ -560,6 +536,14 @@ StorageSenseFrequency -Month
# Run Storage Sense during low free disk space (default value)
# Запускать Контроль памяти, когда остается мало место на диске (значение по умолчанию)
# StorageSenseFrequency -Default
# Turn on automatic cleaning up temporary system and app files
# Автоматически очищать временные файлы системы и приложений
StorageSenseTempFiles -Enable
# Turn off automatic cleaning up temporary system and app files
# Не очищать временные файлы системы и приложений
# StorageSenseTempFiles -Disable
#endregion StorageSense
# Disable hibernation. Do not recommend turning it off on laptops
@ -756,11 +740,18 @@ SetUserShellFolderLocation -Root
#>
# SetUserShellFolderLocation -Default
# Save screenshots by pressing Win+PrtScr on the Desktop
# Сохранять скриншоты по нажатию Win+PrtScr на рабочий столе
<#
Save screenshots by pressing Win+PrtScr on the Desktop
The function will be applied only if the preset is configured to remove the OneDrive application
Otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks
Сохранять скриншоты по нажатию Win+PrtScr на рабочий столе
Функция будет применена только в случае, если в пресете настроено удаление приложения OneDrive,
иначе ломается функционал резервного копирования для папок "Рабочий стол" и "Изображения" в OneDrive
#>
WinPrtScrFolder -Desktop
# Save screenshots by pressing Win+PrtScr on the Pictures folder (default value)
# Save screenshots by pressing Win+PrtScr in the Pictures folder (default value)
# Cохранять скриншоты по нажатию Win+PrtScr в папку "Изображения" (значение по умолчанию)
# WinPrtScrFolder -Default
@ -814,14 +805,14 @@ NumLock -Enable
# Выключить Num Lock при загрузке (значение по умолчанию)
# NumLock -Disable
# Enable Caps Lock
# Включить Caps Lock
# CapsLock -Enable
# Disable Caps Lock (default value)
# Выключить Caps Lock (значение по умолчанию)
# Disable Caps Lock
# Выключить Caps Lock
# CapsLock -Disable
# Enable Caps Lock (default value)
# Включить Caps Lock (значение по умолчанию)
# CapsLock -Enable
# Turn off pressing the Shift key 5 times to turn Sticky keys
# Выключить залипание клавиши Shift после 5 нажатий
StickyShift -Disable
@ -887,8 +878,8 @@ RestartDeviceAfterUpdate -Enable
#>
# Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
# Set Windows Terminal Preview as default terminal app to host the user interface for command-line applications
# Установить Windows Terminal Preview как приложение терминала по умолчанию для размещения пользовательского интерфейса для приложений командной строки
# Set Windows Terminal as default terminal app to host the user interface for command-line applications
# Установить Windows Terminal как приложение терминала по умолчанию для размещения пользовательского интерфейса для приложений командной строки
DefaultTerminalApp -WindowsTerminal
# Set Windows Console Host as default terminal app to host the user interface for command-line applications (default value)
@ -908,14 +899,6 @@ DefaultTerminalApp -WindowsTerminal
#endregion WSL
#region Start menu
# Hide recently added apps in the Start menu
# Скрывать недавно добавленные приложения в меню "Пуск"
RecentlyAddedApps -Hide
# Show recently added apps in the Start menu (default value)
# Показывать недавно добавленные приложения в меню "Пуск" (значение по умолчанию)
# RecentlyAddedApps -Show
# Run the Windows PowerShell shortcut from the Start menu as Administrator
# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
RunPowerShellShortcut -Elevated
@ -1224,13 +1207,8 @@ CastToDeviceContext -Hide
# Скрыть пункт "Отправить" (поделиться) из контекстного меню
ShareContext -Hide
<#
Show the "Share" item in the context menu (default value)
Showing the "Share" item in the context menu will disable the Windows 10 File Explorer
Отобразить пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию)
Отображение элемента "Поделиться" в контекстном меню приведет к отключению проводника из Windows 10
#>
# Show the "Share" item in the context menu (default value)
# Отобразить пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию)
# ShareContext -Show
# Hide the "Edit with Photos" item from the media files context menu
@ -1314,12 +1292,20 @@ OpenWindowsTerminalContext -Hide
# OpenWindowsTerminalContext -Show
# Show the "Open in Windows Terminal (Admin)" item in the Desktop and folders context menu
# Отобразить пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок (значение по умолчанию)
# Отобразить пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок
OpenWindowsTerminalAdminContext -Show
# Hide the "Open in Windows Terminal (Admin)" item from the Desktop and folders context menu (default value)
# Скрыть пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок (значение по умолчанию)
# OpenWindowsTerminalAdminContext -Hide
# Disable the Windows 10 context menu style (default value)
# Отключить стиль контекстного меню из Windows 10 (значение по умолчанию)
Windows10ContextMenu -Disable
# Enable the Windows 10 context menu style
# Включить стиль контекстного меню из Windows 10
# Windows10ContextMenu -Enable
#endregion Context menu
<#

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

@ -5,8 +5,8 @@
Version: v6.0.5
Date: 05.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -54,7 +54,7 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 20142021"
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.5 | 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

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

@ -1,6 +1,6 @@
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.194 und höher
UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Build: 22000.282 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
@ -13,10 +13,11 @@ ScheduledTasks = Geplante Aufgaben
OneDriveUninstalling = Deinstalliere OneDrive...
OneDriveInstalling = Installieren von OneDrive...
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 = Open in Windows Terminal (Admin)
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...
DriveSelect = Wählen Sie das Laufwerk aus, in dessen Stammverzeichnis der Ordner "{0}" erstellt werden soll
@ -74,7 +75,7 @@ Run = Starten
SelectAll = Wählen Sie Alle
Skip = Überspringen
Skipped = Übersprungen
FileExplorerRestartPrompt = Manchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden
FileExplorerRestartPrompt = \nManchmal muss der Datei-Explorer neu gestartet werden, damit die Änderungen wirksam werden
TelegramGroupTitle = Treten Sie unserer offiziellen Telegram-Gruppe bei
TelegramChannelTitle = Treten Sie unserem offiziellen Telegram-Kanal bei
Uninstall = Deinstallieren

7
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.194 and higher
UpdateWarning = Your Windows 11 build: {0}.{1}. Supported build: 22000.282 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
@ -13,10 +13,11 @@ ScheduledTasks = Scheduled tasks
OneDriveUninstalling = Uninstalling OneDrive...
OneDriveInstalling = Installing OneDrive...
OneDriveDownloading = Downloading OneDrive... ~33 MB
OneDriveWarning = The "{0}" function will be applied only if the preset is configured to remove OneDrive, otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks
WindowsFeaturesTitle = Windows features
OptionalFeaturesTitle = Optional features
EnableHardwareVT = Enable Virtualization in UEFI
OpenInWindowsTerminalAdmin = Open in Windows Terminal (Admin)
OpenInWindowsTerminalAdmin = Open in Windows Terminal
UserShellFolderNotEmpty = Some files left in the "{0}" folder. Move them manually to a new location
RetrievingDrivesList = Retrieving drives list...
DriveSelect = Select the drive within the root of which the "{0}" folder will be created
@ -74,7 +75,7 @@ Run = Run
SelectAll = Select all
Skip = Skip
Skipped = Skipped
FileExplorerRestartPrompt = Sometimes in order for the changes to take effect the File Explorer process has to be restarted
FileExplorerRestartPrompt = \nSometimes in order for the changes to take effect the File Explorer process has to be restarted
TelegramGroupTitle = Join our official Telegram group
TelegramChannelTitle = Join our official Telegram channel
Uninstall = Uninstall

7
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.194 y superiores
UpdateWarning = Su build de Windows 11: {0}.{1}. Compilación compatible: 22000.282 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
@ -13,9 +13,10 @@ ScheduledTasks = Tareas programadas
OneDriveUninstalling = Desinstalar OneDrive...
OneDriveInstalling = Instalación de OneDrive...
OneDriveDownloading = Descargando OneDrive... ~33 MB
OneDriveWarning = La función "{0}" se aplicará sólo si el preajuste está configurado para eliminar OneDrive, de lo contrario la funcionalidad de copia de seguridad para las carpetas "Escritorio" e "Imágenes" en OneDrive se rompe
WindowsFeaturesTitle = Características de Windows
OptionalFeaturesTitle = Características opcionales
OpenInWindowsTerminalAdmin = Abrir en el terminal de Windows (administrador)
OpenInWindowsTerminalAdmin = Abrir en el terminal de Windows
EnableHardwareVT = Habilitar la virtualización en UEFI
UserShellFolderNotEmpty = Algunos archivos quedan en la carpeta "{0}". Moverlos manualmente a una nueva ubicación
RetrievingDrivesList = Recuperando lista de unidades...
@ -74,7 +75,7 @@ Run = Iniciar
SelectAll = Seleccionar todo
Skip = Omitir
Skipped = Omitido
FileExplorerRestartPrompt = A veces, para que los cambios surtan efecto, hay que reiniciar el proceso del Explorador de archivos
FileExplorerRestartPrompt = \nA veces, para que los cambios surtan efecto, hay que reiniciar el proceso del Explorador de archivos
TelegramGroupTitle = Únete a nuestro grupo oficial de Telegram
TelegramChannelTitle = Únete a nuestro canal oficial de Telegram
Uninstall = Desinstalar

7
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.194 et ultérieures
UpdateWarning = Votre version de Windows 11 : {0}.{1}. Version prise en charge : 22000.282 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
@ -13,9 +13,10 @@ ScheduledTasks = Tâches planifiées
OneDriveUninstalling = Désinstalltion de OneDrive...
OneDriveInstalling = Installation de OneDrive...
OneDriveDownloading = Téléchargement de OneDrive... ~33 Mo
OneDriveWarning = La fonction "{0}" sera appliquée uniquement si le préréglage est configuré pour supprimer OneDrive, sinon la fonctionnalité de sauvegarde des dossiers "Desktop" et "Pictures" dans OneDrive s'interrompt.
WindowsFeaturesTitle = Fonctionnalités
OptionalFeaturesTitle = Fonctionnalités optionnelles
OpenInWindowsTerminalAdmin = Ouvrir dans le Windows Terminal (Admin)
OpenInWindowsTerminalAdmin = Ouvrir dans le Windows Terminal
EnableHardwareVT = Activer la virtualisation dans UEFI
UserShellFolderNotEmpty = Certains fichiers laissés dans le dossier "{0}". Déplacer les manuellement vers un nouvel emplacement
RetrievingDrivesList = Récupération de la liste des lecteurs...
@ -74,7 +75,7 @@ Run = Démarrer
SelectAll = Tout sélectionner
Skip = Passer
Skipped = Passé
FileExplorerRestartPrompt = Parfois, pour que les modifications soient prises en compte, il faut redémarrer l'Explorateur de fichiers
FileExplorerRestartPrompt = \nParfois, pour que les modifications soient prises en compte, il faut redémarrer l'Explorateur de fichiers
TelegramGroupTitle = Rejoignez notre groupe Telegram officiel
TelegramChannelTitle = Rejoignez notre canal Telegram officiel
Uninstall = Désinstaller

7
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.194 és magasabb verziószámok
UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott build: 22000.282 é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
@ -13,10 +13,11 @@ ScheduledTasks = Ütemezett feladatok
OneDriveUninstalling = OneDrive eltávolítása...
OneDriveInstalling = OneDrive telepítése...
OneDriveDownloading = OneDrive letöltése... ~33 MB
OneDriveWarning = A "{0}" funkció csak akkor kerül alkalmazásra, ha az előbeállítás a OneDrive eltávolítására van beállítva, különben a OneDrive "Desktop" és "Pictures" mappáinak biztonsági mentési funkciója megszakad.
WindowsFeaturesTitle = Windows szolgáltatások
OptionalFeaturesTitle = Opcionális szolgáltatások
EnableHardwareVT = Virtualizáció engedélyezése UEFI-ben
OpenInWindowsTerminalAdmin = Megnyitás a Windows terminálon (admin)
OpenInWindowsTerminalAdmin = Megnyitás a Windows terminálon
UserShellFolderNotEmpty = Néhány fájl maradt a "{0}" könyvtárban. Kérem helyezze át ezeket egy új helyre
RetrievingDrivesList = A meghajtók listájának lekérése...
DriveSelect = Válassza ki a meghajtó jelét a gyökérkönyvtárban ahol a "{0}" könyvtár létre lesz hozva
@ -74,7 +75,7 @@ Run = Futtatás
SelectAll = Összes kijelölése
Skip = Átugrás
Skipped = Átugorva
FileExplorerRestartPrompt = Néha ahhoz, hogy a módosítások hatályba lépjenek, a File Explorer folyamatot újra kell indítani
FileExplorerRestartPrompt = \nNéha ahhoz, hogy a módosítások hatályba lépjenek, a File Explorer folyamatot újra kell indítani
TelegramGroupTitle = Pridružite se našoj službenoj grupi Telegram
TelegramChannelTitle = Pridružite se našem službenom kanalu Telegram
Uninstall = Eltávolít

5
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.194 e successive
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.282 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
@ -13,6 +13,7 @@ ScheduledTasks = Attività pianificate
OneDriveUninstalling = Disinstalla OneDrive...
OneDriveInstalling = Installazione di OneDrive...
OneDriveDownloading = Download di OneDrive... ~33 MB
OneDriveWarning = La funzione "{0}" sarà applicata solo se il preset è configurato per rimuovere OneDrive, altrimenti la funzionalità di backup per le cartelle "Desktop" e "Pictures" in OneDrive si interrompe
WindowsFeaturesTitle = Funzionalità di Windows
OptionalFeaturesTitle = Caratteristiche opzionali
EnableHardwareVT = Abilita virtualizzazione in UEFI
@ -74,7 +75,7 @@ Run = Eseguire
SelectAll = Seleziona tutto
Skip = Salta
Skipped = Saltato
FileExplorerRestartPrompt = A volte, affinché le modifiche abbiano effetto, il processo di File Explorer deve essere riavviato
FileExplorerRestartPrompt = \nA volte, affinché le modifiche abbiano effetto, il processo di File Explorer deve essere riavviato
TelegramGroupTitle = Unisciti al nostro gruppo ufficiale Telegram
TelegramChannelTitle = Unisciti al nostro canale ufficiale di Telegram
Uninstall = Disinstallare

7
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.194 e successive
UpdateWarning = La tua build di Windows 11: {0}.{1}. Build supportata: 22000.282 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
@ -13,10 +13,11 @@ ScheduledTasks = Tarefas agendadas
OneDriveUninstalling = Desinstalar OneDrive...
OneDriveInstalling = Instalar o OneDrive...
OneDriveDownloading = Baixando OneDrive... ~33 MB
OneDriveWarning = A função "{0}" será aplicada somente se a predefinição for configurada para remover o OneDrive, caso contrário a funcionalidade de backup para as pastas "Desktop" e "Pictures" no OneDrive quebra
WindowsFeaturesTitle = Recursos do Windows
OptionalFeaturesTitle = Recursos opcionais
EnableHardwareVT = Habilitar virtualização em UEFI
OpenInWindowsTerminalAdmin = Abrir no Windows Terminal (Admin)
OpenInWindowsTerminalAdmin = Abrir no Windows Terminal
UserShellFolderNotEmpty = Alguns arquivos deixados na pasta "{0}". Movê-los manualmente para um novo local
RetrievingDrivesList = Recuperando lista de unidades...
DriveSelect = Selecione a unidade dentro da raiz da qual a pasta "{0}" será criada
@ -74,7 +75,7 @@ Run = Executar
SelectAll = Selecionar tudo
Skip = Pular
Skipped = Ignorados
FileExplorerRestartPrompt = Por vezes, para que as alterações tenham efeito, o processo File Explorer tem de ser reiniciado
FileExplorerRestartPrompt = \nPor vezes, para que as alterações tenham efeito, o processo File Explorer tem de ser reiniciado
TelegramGroupTitle = Entre no grupo oficial do Telegram
TelegramChannelTitle = Entre no canal oficial do Telegram
Uninstall = Desinstalar

7
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.194 и выше
UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемый билд: 22000.282 и выше
UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме
LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
@ -13,10 +13,11 @@ ScheduledTasks = Запланированные за
OneDriveUninstalling = Удаление OneDrive...
OneDriveInstalling = OneDrive устанавливается...
OneDriveDownloading = Скачивается OneDrive... ~33 МБ
OneDriveWarning = Функция "{0}" будет применена только в случае, если в пресете настроено удаление приложения OneDrive, иначе ломается функционал резервного копирования для папок "Рабочий стол" и "Изображения" в OneDrive
WindowsFeaturesTitle = Компоненты Windows
OptionalFeaturesTitle = Дополнительные компоненты
EnableHardwareVT = Включите виртуализацию в UEFI
OpenInWindowsTerminalAdmin = Открыть в Windows Terminal (администратор)
OpenInWindowsTerminalAdmin = Открыть в Терминале Windows
UserShellFolderNotEmpty = В папке "{0}" остались файлы. Переместите их вручную в новое расположение
RetrievingDrivesList = Получение списка дисков...
DriveSelect = Выберите диск, в корне которого будет создана папка "{0}"
@ -74,7 +75,7 @@ Run = Запустить
SelectAll = Выбрать всё
Skip = Пропустить
Skipped = Пропущено
FileExplorerRestartPrompt = Иногда для того, чтобы изменения вступили в силу, процесс проводника необходимо перезапустить
FileExplorerRestartPrompt = \nИногда для того, чтобы изменения вступили в силу, процесс проводника необходимо перезапустить
TelegramGroupTitle = Присоединяйтесь к нашей официальной группе в Telegram
TelegramChannelTitle = Присоединяйтесь к нашему официальному каналу в Telegram
Uninstall = Удалить

11
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.194 ve üstünü destekliyor
UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapı: 22000.282 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
@ -13,10 +13,11 @@ ScheduledTasks = Zamanlanan görevler
OneDriveUninstalling = OneDrive kaldırılıyor...
OneDriveInstalling = OneDrive kuruluyor...
OneDriveDownloading = OneDrive indiriliyor... ~33 MB
WindowsFeaturesTitle = Windows özellikleri
OptionalFeaturesTitle = İsteğe bağlı özellikler
OneDriveWarning = "{0}" işlevi yalnızca ön ayar OneDrive'ı kaldıracak şekilde yapılandırılırsa uygulanır, aksi takdirde OneDrive'daki "Masaüstü" ve "Resimler" klasörleri için yedekleme işlevi bozulur
WindowsFeaturesTitle = Características do Windows
OptionalFeaturesTitle = Opsiyonel özellikler
EnableHardwareVT = UEFI'dan sanallaştırmayı aktifleştirin
OpenInWindowsTerminalAdmin = Windows Terminalinde (Yönetici)
OpenInWindowsTerminalAdmin = Windows Terminalinde
UserShellFolderNotEmpty = "{0}" klasöründe bazı dosyalar kaldı. \nKendiniz yeni konuma taşıyın
RetrievingDrivesList = Sürücü listesi alınıyor...
DriveSelect = "{0}" klasörünün oluşturulacağı kök içindeki sürücüyü seçin
@ -74,7 +75,7 @@ Run = Başlat
SelectAll = Hepsini seç
Skip = Atla
Skipped = Atlandı
FileExplorerRestartPrompt = Bazen değişikliklerin geçerli olması için Dosya Gezgini işleminin yeniden başlatılması gerekir
FileExplorerRestartPrompt = \nBazen değişikliklerin geçerli olması için Dosya Gezgini işleminin yeniden başlatılması gerekir
TelegramGroupTitle = Resmi Telegram grubumuza katılın
TelegramChannelTitle = Resmi Telegram kanalımıza katılın
Uninstall = Kaldır

7
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.194 та вище
UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримуваний білд: 22000.282 та вище
UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі
LoggedInUserNotAdmin = Поточний увійшов користувач не володіє правами адміністратора
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
@ -13,10 +13,11 @@ ScheduledTasks = Заплановані задачі
OneDriveUninstalling = Видалення OneDrive...
OneDriveInstalling = OneDrive встановлюється...
OneDriveDownloading = Завантажується OneDrive... ~33 МБ
OneDriveWarning = Функція "{0}" буде застосована тільки в разі, якщо в пресете налаштоване щоб видалити програму OneDrive, інакше ламається функціонал резервного копіювання для папок "Робочий стіл" і "Зображення" в OneDrive
WindowsFeaturesTitle = Компоненти Windows
OptionalFeaturesTitle = Додаткові компоненти
EnableHardwareVT = Увімкніть віртуалізацію в UEFI
OpenInWindowsTerminalAdmin = Відкрити в Windows Terminal (адміністратор)
OpenInWindowsTerminalAdmin = Відкрити в Windows Terminal
UserShellFolderNotEmpty = У папці "{0}" залишились файли. Перемістіть їх вручну у нове розташування
RetrievingDrivesList = Отримання списку дисків...
DriveSelect = Виберіть диск, в корні якого буде створена папка для "{0}"
@ -74,7 +75,7 @@ Run = Запустити
SelectAll = Вибрати все
Skip = Пропустити
Skipped = Пропущено
FileExplorerRestartPrompt = Іноді для того, щоб зміни вступили в силу, процес провідника необхідно перезапустити
FileExplorerRestartPrompt = \nІноді для того, щоб зміни вступили в силу, процес провідника необхідно перезапустити
TelegramGroupTitle = Приєднуйтесь до нашої офіційної групи в Telegram
TelegramChannelTitle = Приєднуйтесь до нашого офіційного каналу в Telegram
Uninstall = Видалити

6
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.194和更高版本
UpdateWarning = 您的Windows 11构建{0}.{1}支持的构建22000.282和更高版本
UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行
LoggedInUserNotAdmin = 登录的用户没有管理员的权利
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
@ -13,9 +13,11 @@ ScheduledTasks = 计划任务
OneDriveUninstalling = 卸载OneDrive
OneDriveInstalling = OneDrive正在安装
OneDriveDownloading = 正在下载OneDrive ~33 MB
OneDriveWarning = 只有当预设被配置为删除OneDrive时才会应用"{0}"功能否则OneDrive中的 "桌面 " "图片 "文件夹的备份功能就会中断
WindowsFeaturesTitle = Windows功能
OptionalFeaturesTitle = 可选功能
EnableHardwareVT = UEFI中开启虚拟化
OpenInWindowsTerminalAdmin = 在Windows终端打开
UserShellFolderNotEmpty = 一些文件留在了{0}文件夹请手动将它们移到一个新位置
RetrievingDrivesList = 取得驱动器列表
DriveSelect = 选择将在其根目录中创建{0}文件夹的驱动器
@ -73,7 +75,7 @@ Run = 运行
SelectAll = 全选
Skip = 跳过
Skipped = 已跳过
FileExplorerRestartPrompt = 有时为了使更改生效必须重新启动文件管理器进程
FileExplorerRestartPrompt = \n有时为了使更改生效必须重新启动文件管理器进程
TelegramGroupTitle = 加入我们的官方Telegram
TelegramChannelTitle = 加入我们的官方Telegram 频道
Uninstall = 卸载

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

@ -3,7 +3,7 @@
ModuleVersion = '6.0.5'
GUID = '109cc881-c42b-45af-a74a-550781989d6a'
Author = 'Dmitry "farag" Nefedov'
Copyright = '(c) 20142021 farag & Inestic. All rights reserved'
Copyright = '(c) 20142021 farag & Inestic. All rights reserved'
Description = 'Module for Windows fine-tuning and automating the routine tasks'
PowerShellVersion = '5.1'
ProcessorArchitecture = 'AMD64'

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

@ -2,11 +2,11 @@
.SYNOPSIS
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.0.5
Date: 05.10.2021
Version: v6.0.6
Date: 24.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -16,7 +16,7 @@
.NOTES
Supported Windows 11 version
Version: 21H2
Build: 22000.194
Build: 22000.258
Editions: Home/Pro/Enterprise
.NOTES
@ -66,8 +66,8 @@ function Checkings
}
}
# Check whether the OS minor build version is 194 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 194)
# Check whether the OS minor build version is 258 minimum
switch ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -ge 258)
{
$false
{
@ -91,22 +91,6 @@ function Checkings
}
}
<# Check whether fTPM 2.0 supported
$CurrentVersion = (Get-CimInstance -Namespace root/cimv2/Security/MicrosoftTpm -ClassName Win32_Tpm).SpecVersion.Split(",").Trim() | Select-Object -First 1
switch ([System.Version]$CurrentVersion -lt [System.Version]"2.0")
{
$true
{
Write-Warning -Message $Localization.UnsupportedTPM
Start-Sleep -Seconds 5
Start-Process -FilePath "https://docs.microsoft.com/windows/whats-new/windows-11-requirements"
exit
}
}
#>
# Check the language mode
switch ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage")
{
@ -584,39 +568,30 @@ function ScheduledTasks
# The following tasks will have their checkboxes checked
[string[]]$CheckedScheduledTasks = @(
# Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program
# Сбор телеметрических данных программы при участии в программе улучшения качества ПО
"ProgramDataUpdater",
# This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program
# Эта задача собирает и загружает данные SQM при участии в программе улучшения качества программного обеспечения
"Proxy",
# If the user has consented to participate in the Windows Customer Experience Improvement Program, this job collects and sends usage data to Microsoft
# Если пользователь изъявил желание участвовать в программе по улучшению качества программного обеспечения Windows, эта задача будет собирать и отправлять сведения о работе программного обеспечения в Майкрософт
"Consolidator",
# The USB CEIP (Customer Experience Improvement Program) task collects Universal Serial Bus related statistics and information about your machine and sends it to the Windows Device Connectivity engineering group at Microsoft
# При выполнении задачи программы улучшения качества ПО шины USB (USB CEIP) осуществляется сбор статистических данных об использовании универсальной последовательной шины USB и с ведений о компьютере, которые направляются инженерной группе Майкрософт по вопросам подключения устройств в Windows
"UsbCeip",
# The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program
# Для пользователей, участвующих в программе контроля качества программного обеспечения, служба диагностики дисков Windows предоставляет общие сведения о дисках и системе в корпорацию Майкрософт
"Microsoft-Windows-DiskDiagnosticDataCollector",
# This task shows various Map related toasts
# Эта задача показывает различные тосты (всплывающие уведомления) приложения "Карты"
"MapsToastTask",
# This task checks for updates to maps which you have downloaded for offline use
# Эта задача проверяет наличие обновлений для карт, загруженных для автономного использования
"MapsUpdateTask",
# Initializes Family Safety monitoring and enforcement
# Инициализация контроля и применения правил семейной безопасности
"FamilySafetyMonitor",
# Synchronizes the latest settings with the Microsoft family features service
# Синхронизирует последние параметры со службой функций семьи учетных записей Майкрософт
"FamilySafetyRefreshTask",
# XblGameSave Standby Task
@ -850,7 +825,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -1826,11 +1801,11 @@ function FileExplorerCompactMode
{
"Disable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 1 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 0 -Force
}
"Enable"
{
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 0 -Force
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name UseCompactMode -PropertyType DWord -Value 1 -Force
}
}
}
@ -2466,21 +2441,6 @@ function TaskbarChat
}
}
<#
.SYNOPSIS
Icons in the notification area
.NOTES
Open the "Notification Area Icons" page in Control Panel to enable "Always show all icons in the notification area" settings manually
.NOTES
Current user
#>
function NotificationAreaIcons
{
Start-Process -FilePath "shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}"
}
<#
.SYNOPSIS
Unpin shortcuts from the taskbar
@ -2566,74 +2526,6 @@ public static string GetString(uint strId)
}
}
<#
.SYNOPSIS
The taskbar size
.PARAMETER Large
Make the taskbar size large
.PARAMETER Default
Make the taskbar size default
.PARAMETER Small
Make the taskbar size small
.EXAMPLE
TaskbarSize -Large
.EXAMPLE
TaskbarSize -Default
.EXAMPLE
TaskbarSize -Small
.NOTES
Current user
#>
function TaskbarSize
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Large"
)]
[switch]
$Large,
[Parameter(
Mandatory = $true,
ParameterSetName = "Default"
)]
[switch]
$Default,
[Parameter(
Mandatory = $true,
ParameterSetName = "Small"
)]
[switch]
$Small
)
switch ($PSCmdlet.ParameterSetName)
{
"Large"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarSi -PropertyType DWord -Value 2 -Force
}
"Default"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarSi -PropertyType DWord -Value 1 -Force
}
"Small"
{
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarSi -PropertyType DWord -Value 0 -Force
}
}
}
<#
.SYNOPSIS
The Control Panel icons view
@ -3352,7 +3244,7 @@ public static bool MarkFileDelete (string sourcefile)
"@
}
# If there are some files or folders left in %LOCALAPPDATA\Temp%
# If there are some files or folders left in %LOCALAPPDATA%\Temp
if ((Get-ChildItem -Path $env:OneDrive -ErrorAction Ignore | Measure-Object).Count -ne 0)
{
if (-not ("WinAPI.DeleteFiles" -as [type]))
@ -3516,6 +3408,9 @@ public static bool MarkFileDelete (string sourcefile)
}
}
# Save screenshots by pressing Win+PrtScr in the Pictures folder
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Force -ErrorAction Ignore
Get-ScheduledTask -TaskName "Onedrive* Update*" | Enable-ScheduledTask
Get-ScheduledTask -TaskName "Onedrive* Update*" | Start-ScheduledTask
}
@ -3891,6 +3786,7 @@ Unregister-ScheduledTask -TaskName SymbolicLink -Confirm:`$false
#region main
# Change the %TEMP% environment variable path to %LOCALAPPDATA%\Temp
# The additional registry key creating are needed to fix the property type of the keys: SetEnvironmentVariable creates them with the "String" type instead of "ExpandString" as by default
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "User")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Machine")
[Environment]::SetEnvironmentVariable("TMP", "$env:SystemDrive\Temp", "Process")
@ -4435,7 +4331,6 @@ function WindowsFeatures
# The following Windows features will have their checkboxes checked
[string[]]$CheckedFeatures = @(
# Legacy Components
# Компоненты прежних версий
"LegacyComponents",
# PowerShell 2.0
@ -4443,11 +4338,9 @@ function WindowsFeatures
"MicrosoftWindowsPowershellV2Root",
# Microsoft XPS Document Writer
# Средство записи XPS-документов (Microsoft)
"Printing-XPSServices-Features",
# Work Folders Client
# Клиент рабочих папок
"WorkFolders-Client"
)
@ -4685,7 +4578,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -4762,11 +4655,9 @@ function WindowsCapabilities
# The following optional features will have their checkboxes checked
[string[]]$CheckedCapabilities = @(
# Steps Recorder
# Средство записи действий
"App.StepsRecorder*",
# Microsoft Quick Assist
# Быстрая поддержка (Майкрософт)
"App.Support.QuickAssist*",
# WordPad
@ -4779,7 +4670,6 @@ function WindowsCapabilities
"Browser.InternetExplorer*",
# Math Recognizer
# Распознаватель математических знаков
"MathRecognizer*",
# Windows Media Player
@ -4787,38 +4677,30 @@ function WindowsCapabilities
"Media.WindowsMediaPlayer*",
# OpenSSH Client
# Клиент OpenSSH
"OpenSSH.Client*"
)
# The following optional features will be excluded from the display
[string[]]$ExcludedCapabilities = @(
# The DirectX Database to configure and optimize apps when multiple Graphics Adapters are present
# База данных DirectX для настройки и оптимизации приложений при наличии нескольких графических адаптеров
"DirectX.Configuration.Database*",
# Language components
# Языковые компоненты
"Language.*",
# Notepad
# Блокнот
"Microsoft.Windows.Notepad*",
# Mail, contacts, and calendar sync component
# Компонент синхронизации почты, контактов и календаря
"OneCoreUAP.OneSync*",
# Windows PowerShell Intergrated Scripting Enviroment
# Интегрированная среда сценариев Windows PowerShell
"Microsoft.Windows.PowerShell.ISE*",
# Management of printers, printer drivers, and printer servers
# Управление принтерами, драйверами принтеров и принт-серверами
"Print.Management.Console*",
# Features critical to Windows functionality
# Компоненты, критичные для работоспособности Windows
"Windows.Client.ShellComponents*"
)
#endregion Variables
@ -5081,7 +4963,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -5154,7 +5036,7 @@ function UpdateMicrosoftProducts
}
"Disable"
{
if ((New-Object -ComObject Microsoft.Update.ServiceManager).Services | Where-Object -FilterScript {$_.ServiceID -eq "7971f918-a847-4430-9279-4a52d1efe18d"})
if (((New-Object -ComObject Microsoft.Update.ServiceManager).Services | Where-Object -FilterScript {$_.ServiceID -eq "7971f918-a847-4430-9279-4a52d1efe18d"}).IsDefaultAUService -eq $true)
{
(New-Object -ComObject Microsoft.Update.ServiceManager).RemoveService("7971f918-a847-4430-9279-4a52d1efe18d")
}
@ -5409,14 +5291,14 @@ function IPv6Component
{
if ($null -eq $IPv6Test)
{
Disable-NetAdapterBinding Name * ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name * -ComponentID ms_tcpip6
}
}
"Enable"
{
if ($IPv6Test)
{
Enable-NetAdapterBinding Name * ComponentID ms_tcpip6
Enable-NetAdapterBinding -Name * -ComponentID ms_tcpip6
}
}
}
@ -6489,6 +6371,10 @@ public static string GetString(uint strId)
.EXAMPLE
WinPrtScrFolder -Default
.NOTES
The function will be applied only if the preset is configured to remove OneDrive,
otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks
.NOTES
Current user
#>
@ -6515,8 +6401,16 @@ 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
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
}
else
{
Write-Warning -Message ($Localization.OneDriveWarning -f $MyInvocation.Line)
Write-Error -Message ($Localization.OneDriveWarning -f $MyInvocation.Line) -ErrorAction SilentlyContinue
}
}
"Default"
{
@ -7897,7 +7791,7 @@ public static void Refresh()
Default terminal app
.PARAMETER WindowsTerminal
Set Windows Terminal Preview as default terminal app to host the user interface for command-line applications
Set Windows Terminal as default terminal app to host the user interface for command-line applications
.PARAMETER ConsoleHost
Set Windows Console Host as default terminal app to host the user interface for command-line applications
@ -7934,12 +7828,15 @@ function DefaultTerminalApp
{
"WindowsTerminal"
{
if (-not (Test-Path -Path HKCU:\Console\%%Startup))
if (Get-AppxPackage -Name Microsoft.WindowsTerminal)
{
New-Item -Path HKCU:\Console\%%Startup -Force
if (-not (Test-Path -Path HKCU:\Console\%%Startup))
{
New-Item -Path HKCU:\Console\%%Startup -Force
}
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationConsole -PropertyType String -Value "{06EC847C-C0A5-46B8-92CB-7C92F6E35CD5}" -Force
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationTerminal -PropertyType String -Value "{86633F1F-6454-40EC-89CE-DA4EBA977EE2}" -Force
}
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationConsole -PropertyType String -Value "{06EC847C-C0A5-46B8-92CB-7C92F6E35CD5}" -Force
New-ItemProperty -Path HKCU:\Console\%%Startup -Name DelegationTerminal -PropertyType String -Value "{86633F1F-6454-40EC-89CE-DA4EBA977EE2}" -Force
}
"ConsoleHost"
{
@ -8112,7 +8009,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -8135,61 +8032,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
#endregion WSL
#region Start menu
<#
.SYNOPSIS
Recently added apps in the Start menu
.PARAMETER Hide
Hide recently added apps in the Start menu
.PARAMETER Show
Show recently added apps in the Start menu
.EXAMPLE
RecentlyAddedApps -Hide
.EXAMPLE
RecentlyAddedApps -Show
.NOTES
Machine-wide
#>
function RecentlyAddedApps
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Hide"
)]
[switch]
$Hide,
[Parameter(
Mandatory = $true,
ParameterSetName = "Show"
)]
[switch]
$Show
)
switch ($PSCmdlet.ParameterSetName)
{
"Hide"
{
if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer))
{
New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -PropertyType DWord -Value 1 -Force
}
"Show"
{
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecentlyAddedApps -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
How to run the Windows PowerShell shortcut
@ -8468,12 +8310,21 @@ function UninstallUWPApps
Write-Verbose -Message $Localization.Patient -Verbose
$AppxPackages = @(Get-AppxPackage -PackageTypeFilter Bundle -AllUsers:$AllUsers | Where-Object -FilterScript {$_.Name -notin $ExcludedAppxPackages})
# The Bundle packages contains no Microsoft Teams
if (Get-AppxPackage -Name MicrosoftTeams -AllUsers:$AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Microsoft Teams packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name MicrosoftTeams -AllUsers:$AllUsers | Select-Object -Index 0
}
# The Bundle packages contains no Spotify
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers:$AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Microsoft Teams packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers:$AllUsers | Select-Object -Index 0
}
$PackagesIds = [Windows.Management.Deployment.PackageManager, Windows.Web, ContentType = WindowsRuntime]::new().FindPackages() | Select-Object -Property DisplayName -ExpandProperty Id | Select-Object -Property Name, DisplayName
foreach ($AppxPackage in $AppxPackages)
@ -8679,7 +8530,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -8815,12 +8666,21 @@ function RestoreUWPApps
# You cannot retrieve packages using -PackageTypeFilter Bundle, otherwise you won't get the InstallLocation attribute. It can be retrieved only by comparing with $Bundles
$Bundles = (Get-AppXPackage -PackageTypeFilter Bundle -AllUsers).Name
$AppxPackages = @(Get-AppxPackage -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} | Where-Object -FilterScript {$_.Name -in $Bundles})
# The Bundle packages contains no Microsoft Teams
if (Get-AppxPackage -Name MicrosoftTeams -AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Microsoft Teams packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name MicrosoftTeams -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} | Select-Object -Index 0
}
# The Bundle packages contains no Microsoft Teams
if (Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers)
{
# Temporarily hack: due to the fact that there are actually two Spotify packages, we need to choose the first one to display
$AppxPackages += Get-AppxPackage -Name SpotifyAB.SpotifyMusic -AllUsers | Where-Object -FilterScript {$_.PackageUserInformation -match "Staged"} | Select-Object -Index 0
}
$PackagesIds = [Windows.Management.Deployment.PackageManager, Windows.Web, ContentType = WindowsRuntime]::new().FindPackages() | Select-Object -Property DisplayName -ExpandProperty Id | Select-Object -Property Name, DisplayName
foreach ($AppxPackage in $AppxPackages)
@ -9005,7 +8865,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Add-Type @SetForegroundWindow
}
Get-Process | Where-Object -FilterScript {$_.MainWindowTitle -match "Sophia Script for Windows 11"} | ForEach-Object -Process {
Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 11")} | ForEach-Object -Process {
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
@ -9989,7 +9849,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object {`$_.CreationTime
}
"Delete"
{
Unregister-ScheduledTask -TaskName Temp2 -Confirm:$false -ErrorAction Ignore
Unregister-ScheduledTask -TaskName Temp -Confirm:$false -ErrorAction Ignore
}
}
}
@ -10768,7 +10628,7 @@ function WindowsSandbox
.NOTES
Machine-wide
#>
function DNSoverHTTPS ###
function DNSoverHTTPS
{
[CmdletBinding()]
param
@ -10943,18 +10803,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
}
}
}
@ -11107,20 +10967,19 @@ function ShareContext
{
"Hide"
{
if (-not (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked"))
if (-not (Test-Path -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing"))
{
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Force
New-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Force
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{E2BF9676-5F8F-435C-97EB-11607A5BEDF7}" -PropertyType String -Value "" -Force
New-ItemProperty -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Name "(default)" -PropertyType String -Value "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" -Force
}
"Show"
{
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{E2BF9676-5F8F-435C-97EB-11607A5BEDF7}" -Force -ErrorAction Ignore
Remove-Item -Path "Registry::HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" -Recurse -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
The "Edit with Photos" item in the media files context menu
@ -11717,74 +11576,89 @@ function OpenWindowsTerminalAdminContext
{
if (Get-AppxPackage -Name Microsoft.WindowsTerminal)
{
try
{
# Check the internet connection
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}
$Parameters = @{
Uri = "https://raw.githubusercontent.com/microsoft/terminal/master/res/terminal.ico"
OutFile = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico"
UseBasicParsing = $true
Verbose = $true
}
Invoke-WebRequest @Parameters
}
catch [System.Net.WebException]
{
Write-Warning -Message $Localization.NoInternetConnection
Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue
Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line) -ErrorAction SilentlyContinue
}
# Show the option in the Desktop context menu
if (-not (Test-Path -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin\command))
{
New-Item -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin\command -ItemType Directory -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
if (Test-Path -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico")
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command))
{
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin -Name Icon -PropertyType String -Value "%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico" -Force
New-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command -ItemType Directory -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\Background\shell\OpenWTHereAsAdmin -Name NoWorkingDirectory -PropertyType String -Value "" -Force
$Value = "powershell.exe Start-Process -FilePath wt.exe -ArgumentList '-d `"`"`"%V`"`"`"' -Verb RunAs"
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHereAsAdmin\command -Name "(default)" -PropertyType String -Value $Value -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas -Name Icon -PropertyType String -Value "imageres.dll,73" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas -Name NoWorkingDirectory -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command -Name "(default)" -PropertyType String -Value "wt.exe -d ""%V""" -Force
# Show the option in the folders context menu
if (-not (Test-Path -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin\command))
if (-not (Test-Path -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command))
{
New-Item -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin\command -ItemType Directory -Force
New-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command -ItemType Directory -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
if (Test-Path -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico")
{
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin -Name Icon -PropertyType String -Value "%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico" -Force
}
New-ItemProperty -Path HKLM:\SOFTWARE\Classes\Directory\shell\OpenWTHereAsAdmin -Name NoWorkingDirectory -PropertyType String -Value "" -Force
$Value = "powershell.exe Start-Process -FilePath wt.exe -ArgumentList '-d `"`"`"%1`"`"`"' -Verb RunAs"
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\OpenWTHereAsAdmin\command -Name "(default)" -PropertyType String -Value $Value -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas -Name "(default)" -PropertyType String -Value $Localization.OpenInWindowsTerminalAdmin -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas -Name Icon -PropertyType String -Value "imageres.dll,73" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas -Name NoWorkingDirectory -PropertyType String -Value "" -Force
New-ItemProperty -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\runas\command -Name "(default)" -PropertyType String -Value "wt.exe -d ""%1""" -Force
}
}
"Hide"
{
if (Get-AppxPackage -Name Microsoft.WindowsTerminal)
{
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\OpenWTHereAsAdmin -Recurse -Force -ErrorAction Ignore
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\Directory\shell\OpenWTHereAsAdmin -Recurse -Force -ErrorAction Ignore
$Items = @(
"Registry::HKEY_CLASSES_ROOT\Directory\Background\shell\runas",
"Registry::HKEY_CLASSES_ROOT\Directory\shell\runas"
)
Remove-Item -Path $Items -Recurse -Force -ErrorAction Ignore
}
}
}
<#
.SYNOPSIS
The "Show more options" in the context menu
.PARAMETER Enable
Enable the Windows 10 context menu style
.PARAMETER Disable
Disable the Windows 10 context menu style
.EXAMPLE
Windows10ContextMenu -Enable
Remove-Item -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\terminal.ico" -Force -ErrorAction Ignore
.EXAMPLE
Windows10ContextMenu -Disable
.NOTES
Current user
#>
function Windows10ContextMenu
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Enable"
)]
[switch]
$Enable,
[Parameter(
Mandatory = $true,
ParameterSetName = "Disable"
)]
[switch]
$Disable
)
switch ($PSCmdlet.ParameterSetName)
{
"Enable"
{
Remove-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Recurse -Force -ErrorAction Ignore
}
"Disable"
{
if (-not (Test-Path -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32"))
{
New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -ItemType Directory -Force
}
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Name "(default)" -PropertyType String -Value "" -Force
}
}
}

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

@ -2,11 +2,11 @@
.SYNOPSIS
Default preset file for "Sophia Script for Windows 11"
Version: v6.0.5
Date: 05.10.2021
Version: v6.0.6
Date: 24.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
Thanks to all https://forum.ru-board.com members involved
@ -28,7 +28,7 @@
.NOTES
Supported Windows 11 version
Version: 21H2
Build: 22000.194
Build: 22000.282
Editions: Home/Pro/Enterprise
.NOTES
@ -71,7 +71,7 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.0.5 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows | $([char]0x00A9) farag & Inestic, 20142021"
$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"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
@ -334,11 +334,11 @@ SnapAssist -Disable
# Show snap layouts when I hover over a windows's maximaze button (default value)
# Показывать макеты прикрепления, частью которых является приложение, при наведении указателя мыши на кнопки панели задач (значение по умолчанию)
SnapAssistFlyout -Disable
SnapAssistFlyout -Enable
# Hide snap layouts when I hover over a windows's maximaze button
# Не показывать макеты прикрепления, частью которых является приложение, при наведении указателя мыши на кнопки панели задач
# SnapAssistFlyout -Enable
# SnapAssistFlyout -Disable
# Show the file transfer dialog box in the detailed mode
# Отображать диалоговое окно передачи файлов в развернутом виде
@ -412,26 +412,10 @@ TaskbarChat -Hide
# Отобразить кнопку чата (Microsoft Teams) на панели задач (значение по умолчанию)
# TaskbarChat -Show
# Open the "Notification Area Icons" page in Control Panel to enable "Always show all icons in the notification area" settings manually
# Открыть страницу "Значки области уведомлений" в Панели управления, чтобы вручную активировать настройку "Всегда отображать все значки и уведомления на панели задач"
NotificationAreaIcons
# Unpin the "Microsoft Edge", "Microsoft Store" shortcuts from the taskbar
# Открепить ярлыки "Microsoft Edge", "Microsoft Store" или "Почта" от панели задач
UnpinTaskbarShortcuts -Shortcuts Edge, Store
# Make the taskbar size large
# Сделать панели задач большой
# TaskbarSize -Large
# Make the taskbar size default
# Сделать панели задач по умолчанию
TaskbarSize -Default
# Make the taskbar size small
# Сделать панели задач маленькой
# TaskbarSize -Small
# View the Control Panel icons by large icons
# Просмотр иконок Панели управления как: крупные значки
ControlPanelView -LargeIcons
@ -545,14 +529,6 @@ StorageSense -Enable
# Выключить Контроль памяти (значение по умолчанию)
# StorageSense -Disable
# Turn on automatic cleaning up temporary system and app files
# Автоматически очищать временные файлы системы и приложений
StorageSenseTempFiles -Enable
# Turn off automatic cleaning up temporary system and app files
# Не очищать временные файлы системы и приложений
# StorageSenseTempFiles -Disable
# Run Storage Sense every month
# Запускать Контроль памяти каждый месяц
StorageSenseFrequency -Month
@ -560,6 +536,14 @@ StorageSenseFrequency -Month
# Run Storage Sense during low free disk space (default value)
# Запускать Контроль памяти, когда остается мало место на диске (значение по умолчанию)
# StorageSenseFrequency -Default
# Turn on automatic cleaning up temporary system and app files
# Автоматически очищать временные файлы системы и приложений
StorageSenseTempFiles -Enable
# Turn off automatic cleaning up temporary system and app files
# Не очищать временные файлы системы и приложений
# StorageSenseTempFiles -Disable
#endregion StorageSense
# Disable hibernation. Do not recommend turning it off on laptops
@ -756,11 +740,18 @@ SetUserShellFolderLocation -Root
#>
# SetUserShellFolderLocation -Default
# Save screenshots by pressing Win+PrtScr on the Desktop
# Сохранять скриншоты по нажатию Win+PrtScr на рабочий столе
<#
Save screenshots by pressing Win+PrtScr on the Desktop
The function will be applied only if the preset is configured to remove the OneDrive application
Otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks
Сохранять скриншоты по нажатию Win+PrtScr на рабочий столе
Функция будет применена только в случае, если в пресете настроено удаление приложения OneDrive,
иначе ломается функционал резервного копирования для папок "Рабочий стол" и "Изображения" в OneDrive
#>
WinPrtScrFolder -Desktop
# Save screenshots by pressing Win+PrtScr on the Pictures folder (default value)
# Save screenshots by pressing Win+PrtScr in the Pictures folder (default value)
# Cохранять скриншоты по нажатию Win+PrtScr в папку "Изображения" (значение по умолчанию)
# WinPrtScrFolder -Default
@ -814,14 +805,14 @@ NumLock -Enable
# Выключить Num Lock при загрузке (значение по умолчанию)
# NumLock -Disable
# Enable Caps Lock
# Включить Caps Lock
# CapsLock -Enable
# Disable Caps Lock (default value)
# Выключить Caps Lock (значение по умолчанию)
# Disable Caps Lock
# Выключить Caps Lock
# CapsLock -Disable
# Enable Caps Lock (default value)
# Включить Caps Lock (значение по умолчанию)
# CapsLock -Enable
# Turn off pressing the Shift key 5 times to turn Sticky keys
# Выключить залипание клавиши Shift после 5 нажатий
StickyShift -Disable
@ -887,8 +878,8 @@ RestartDeviceAfterUpdate -Enable
#>
# Set-Association -ProgramPath "%ProgramFiles%\Notepad++\notepad++.exe" -Extension .txt -Icon "%ProgramFiles%\Notepad++\notepad++.exe,0"
# Set Windows Terminal Preview as default terminal app to host the user interface for command-line applications
# Установить Windows Terminal Preview как приложение терминала по умолчанию для размещения пользовательского интерфейса для приложений командной строки
# Set Windows Terminal as default terminal app to host the user interface for command-line applications
# Установить Windows Terminal как приложение терминала по умолчанию для размещения пользовательского интерфейса для приложений командной строки
DefaultTerminalApp -WindowsTerminal
# Set Windows Console Host as default terminal app to host the user interface for command-line applications (default value)
@ -908,14 +899,6 @@ DefaultTerminalApp -WindowsTerminal
#endregion WSL
#region Start menu
# Hide recently added apps in the Start menu
# Скрывать недавно добавленные приложения в меню "Пуск"
RecentlyAddedApps -Hide
# Show recently added apps in the Start menu (default value)
# Показывать недавно добавленные приложения в меню "Пуск" (значение по умолчанию)
# RecentlyAddedApps -Show
# Run the Windows PowerShell shortcut from the Start menu as Administrator
# Запускать ярлык Windows PowerShell в меню "Пуск" от имени Администратора
RunPowerShellShortcut -Elevated
@ -1224,13 +1207,8 @@ CastToDeviceContext -Hide
# Скрыть пункт "Отправить" (поделиться) из контекстного меню
ShareContext -Hide
<#
Show the "Share" item in the context menu (default value)
Showing the "Share" item in the context menu will disable the Windows 10 File Explorer
Отобразить пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию)
Отображение элемента "Поделиться" в контекстном меню приведет к отключению проводника из Windows 10
#>
# Show the "Share" item in the context menu (default value)
# Отобразить пункт "Отправить" (поделиться) в контекстном меню (значение по умолчанию)
# ShareContext -Show
# Hide the "Edit with Photos" item from the media files context menu
@ -1314,12 +1292,20 @@ OpenWindowsTerminalContext -Hide
# OpenWindowsTerminalContext -Show
# Show the "Open in Windows Terminal (Admin)" item in the Desktop and folders context menu
# Отобразить пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок (значение по умолчанию)
# Отобразить пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок
OpenWindowsTerminalAdminContext -Show
# Hide the "Open in Windows Terminal (Admin)" item from the Desktop and folders context menu (default value)
# Скрыть пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок (значение по умолчанию)
# OpenWindowsTerminalAdminContext -Hide
# Disable the Windows 10 context menu style (default value)
# Отключить стиль контекстного меню из Windows 10 (значение по умолчанию)
Windows10ContextMenu -Disable
# Enable the Windows 10 context menu style
# Включить стиль контекстного меню из Windows 10
# Windows10ContextMenu -Enable
#endregion Context menu
<#

Loading…
Cancel
Save