Browse Source

05.10.2021 v6.0.5

pull/264/head
Dmitry Nefedov 3 years ago
committed by GitHub
parent
commit
7d717688cd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Functions.ps1
  2. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/de-DE/Sophia.psd1
  3. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/en-US/Sophia.psd1
  4. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/es-ES/Sophia.psd1
  5. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/fr-FR/Sophia.psd1
  6. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/hu-HU/Sophia.psd1
  7. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/it-IT/Sophia.psd1
  8. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/pt-BR/Sophia.psd1
  9. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/ru-RU/Sophia.psd1
  10. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/tr-TR/Sophia.psd1
  11. 5
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/uk-UA/Sophia.psd1
  12. 3
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/zh-CN/Sophia.psd1
  13. 175
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Module/Sophia.psm1
  14. 22
      Sophia Script/Sophia Script for Windows 11 PowerShell 7/Sophia.ps1

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

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

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

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = Der angemeldete Benutzer hat keine A
UnsupportedPowerShell = Sie versuchen, ein Skript über PowerShell {0}.{1} auszuführen. Führen Sie das Skript in der entsprechenden PowerShell-Version aus
UnsupportedISE = Das Skript unterstützt nicht die Ausführung über Windows PowerShell ISE
Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert
PowerShellLibraries = Im Ordner "Libraries" befinden sich keine Dateien. Bitte laden Sie das Archiv erneut herunter
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen?
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
@ -15,6 +16,7 @@ OneDriveInstalling = Installieren von OneDrive...
OneDriveDownloading = OneDrive herunterladen... ~33 MB
WindowsFeaturesTitle = Windows-Features
OptionalFeaturesTitle = Optionale Features
OpenInWindowsTerminalAdmin = Im Windows-Terminal öffnen (Admin)
EnableHardwareVT = Virtualisierung in UEFI aktivieren
UserShellFolderNotEmpty = Im Ordner "{0}" befinden sich noch Dateien \nVerschieben Sie sie manuell an einen neuen Ort
RetrievingDrivesList = Abrufen der Laufwerksliste...
@ -73,6 +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
TelegramGroupTitle = Treten Sie unserer offiziellen Telegram-Gruppe bei
TelegramChannelTitle = Treten Sie unserem offiziellen Telegram-Kanal bei
Uninstall = Deinstallieren

3
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/en-US/Sophia.psd1

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = The logged-on user doesn't have admi
UnsupportedPowerShell = You're trying to run script via PowerShell {0}.{1}. Run the script in the appropriate PowerShell version
UnsupportedISE = The script doesn't support running via Windows PowerShell ISE
Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor
PowerShellLibraries = There are no files in the Libraries folder. Please, re-download the archive
UnsupportedRelease = A new version found
CustomizationWarning = \nHave you customized every function in the Sophia.ps1 preset file before running Sophia Script?
ControlledFolderAccessDisabled = Controlled folder access disabled
@ -16,6 +17,7 @@ OneDriveDownloading = Downloading OneDrive... ~33 MB
WindowsFeaturesTitle = Windows features
OptionalFeaturesTitle = Optional features
EnableHardwareVT = Enable Virtualization in UEFI
OpenInWindowsTerminalAdmin = Open in Windows Terminal (Admin)
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
@ -73,6 +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
TelegramGroupTitle = Join our official Telegram group
TelegramChannelTitle = Join our official Telegram channel
Uninstall = Uninstall

3
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/es-ES/Sophia.psd1

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = El usuario que inició sesión no ti
UnsupportedPowerShell = Estás intentando ejecutar el script a través de PowerShell {0}.{1}. Ejecute el script en la versión apropiada de PowerShell
UnsupportedISE = El script no es compatible con la ejecución a través de Windows PowerShell ISE
Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker
PowerShellLibraries = No hay archivos en la carpeta Bibliotecas. Por favor, vuelva a descargar el archivo
UnsupportedRelease = Una nueva versión encontrada
CustomizationWarning = \n¿Ha personalizado todas las funciones del archivo predeterminado Sophia.ps1 antes de ejecutar Sophia Script?
ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado
@ -15,6 +16,7 @@ OneDriveInstalling = Instalación de OneDrive...
OneDriveDownloading = Descargando OneDrive... ~33 MB
WindowsFeaturesTitle = Características de Windows
OptionalFeaturesTitle = Características opcionales
OpenInWindowsTerminalAdmin = Abrir en el terminal de Windows (administrador)
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...
@ -73,6 +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
TelegramGroupTitle = Únete a nuestro grupo oficial de Telegram
TelegramChannelTitle = Únete a nuestro canal oficial de Telegram
Uninstall = Desinstalar

3
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/fr-FR/Sophia.psd1

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = L'utilisateur connecté n'a pas de d
UnsupportedPowerShell = Vous essayez d'exécuter le script via PowerShell {0}.{1}. Exécutez le script dans la version appropriée de PowerShell
UnsupportedISE = Le script ne supporte pas l'exécution via Windows PowerShell ISE
Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker
PowerShellLibraries = Il n'y a pas de fichiers dans le dossier Bibliothèques. Veuillez retélécharger l'archive
UnsupportedRelease = Nouvelle version trouvée
CustomizationWarning = \nAvez-vous personnalisé chaque fonction du fichier de préréglage Sophia.ps1 avant d'exécuter Sophia Script?
ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé
@ -15,6 +16,7 @@ OneDriveInstalling = Installation de OneDrive...
OneDriveDownloading = Téléchargement de OneDrive... ~33 Mo
WindowsFeaturesTitle = Fonctionnalités
OptionalFeaturesTitle = Fonctionnalités optionnelles
OpenInWindowsTerminalAdmin = Ouvrir dans le Windows Terminal (Admin)
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...
@ -73,6 +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
TelegramGroupTitle = Rejoignez notre groupe Telegram officiel
TelegramChannelTitle = Rejoignez notre canal Telegram officiel
Uninstall = Désinstaller

3
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/hu-HU/Sophia.psd1

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = A bejelentkezett felhasználó nem r
UnsupportedPowerShell = A PowerShell {0}.{1} segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a megfelelő PowerShell-verzióban
UnsupportedISE = A szkript nem támogatja a Windows PowerShell ISE futtatását
Win10TweakerWarning = Valószínűleg az operációs rendszerét a Win 10 Tweaker backdoor segítségével fertőzték meg
PowerShellLibraries = A Libraries mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot
UnsupportedRelease = Új verzió érhető el
CustomizationWarning = \nSzemélyre szabott minden opciót a Sophia.ps1 preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet?
ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva
@ -16,6 +17,7 @@ OneDriveDownloading = OneDrive letöltése... ~33 MB
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)
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
@ -73,6 +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
TelegramGroupTitle = Pridružite se našoj službenoj grupi Telegram
TelegramChannelTitle = Pridružite se našem službenom kanalu Telegram
Uninstall = Eltávolít

3
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/it-IT/Sophia.psd1

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = L'utente connesso non ha i diritti d
UnsupportedPowerShell = Stai cercando di eseguire lo script tramite PowerShell {0}.{1}. Esegui lo script nella versione di PowerShell appropriata
UnsupportedISE = Lo script non supporta l'esecuzione tramite Windows PowerShell ISE
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker
PowerShellLibraries = Non ci sono file nella cartella Libraries. Per favore, scarica di nuovo l'archivio
UnsupportedRelease = Nuova versione trovata
CustomizationWarning = \nSono state personalizzate tutte le funzioni nel file delle preimpostazioni Sophia.ps1 prima di eseguire Sophia Script?
ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata
@ -16,6 +17,7 @@ OneDriveDownloading = Download di OneDrive... ~33 MB
WindowsFeaturesTitle = Funzionalità di Windows
OptionalFeaturesTitle = Caratteristiche opzionali
EnableHardwareVT = Abilita virtualizzazione in UEFI
OpenInWindowsTerminalAdmin = Aprire in Windows Terminal (Admin)
UserShellFolderNotEmpty = Alcuni file lasciati nella cartella "{0}". li spostare manualmente in una nuova posizione
RetrievingDrivesList = Recupero lista unità...
DriveSelect = Selezionare l'unità all'interno della radice del quale verrà creato il "{0}" cartella
@ -73,6 +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
TelegramGroupTitle = Unisciti al nostro gruppo ufficiale Telegram
TelegramChannelTitle = Unisciti al nostro canale ufficiale di Telegram
Uninstall = Disinstallare

3
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/pt-BR/Sophia.psd1

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = O usuário logado não tem direitos
UnsupportedPowerShell = Você está tentando executar o script via PowerShell {0}.{1}. Execute o script na versão apropriada do PowerShell
UnsupportedISE = O guião não suporta a execução através do Windows PowerShell ISE
Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker
PowerShellLibraries = Não existem ficheiros na pasta Bibliotecas. Por favor, volte a descarregar o arquivo
UnsupportedRelease = Nova versão encontrada
CustomizationWarning = \nVocê personalizou todas as funções no arquivo de predefinição Sophia.ps1 antes de executar o Sophia Script?
ControlledFolderAccessDisabled = Acesso controlado a pasta desativada
@ -16,6 +17,7 @@ OneDriveDownloading = Baixando OneDrive... ~33 MB
WindowsFeaturesTitle = Recursos do Windows
OptionalFeaturesTitle = Recursos opcionais
EnableHardwareVT = Habilitar virtualização em UEFI
OpenInWindowsTerminalAdmin = Abrir no Windows Terminal (Admin)
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
@ -73,6 +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
TelegramGroupTitle = Entre no grupo oficial do Telegram
TelegramChannelTitle = Entre no canal oficial do Telegram
Uninstall = Desinstalar

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

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = Текущий вошедший по
UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell
UnsupportedISE = Скрипт не поддерживает работу через Windows PowerShell ISE
Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном
PowerShellLibraries = В папке Libraries отсутствутствуют файлы. Пожалуйста, перекачайте архив
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
@ -16,6 +17,7 @@ OneDriveDownloading = Скачивается OneDrive... ~
WindowsFeaturesTitle = Компоненты Windows
OptionalFeaturesTitle = Дополнительные компоненты
EnableHardwareVT = Включите виртуализацию в UEFI
OpenInWindowsTerminalAdmin = Открыть в Windows Terminal (администратор)
UserShellFolderNotEmpty = В папке "{0}" остались файлы. Переместите их вручную в новое расположение
RetrievingDrivesList = Получение списка дисков...
DriveSelect = Выберите диск, в корне которого будет создана папка "{0}"
@ -73,6 +75,7 @@ Run = Запустить
SelectAll = Выбрать всё
Skip = Пропустить
Skipped = Пропущено
FileExplorerRestartPrompt = Иногда для того, чтобы изменения вступили в силу, процесс проводника необходимо перезапустить
TelegramGroupTitle = Присоединяйтесь к нашей официальной группе в Telegram
TelegramChannelTitle = Присоединяйтесь к нашему официальному каналу в Telegram
Uninstall = Удалить

3
Sophia Script/Sophia Script for Windows 11 PowerShell 7/Localizations/tr-TR/Sophia.psd1

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = Oturum açan kullanıcının yöneti
UnsupportedPowerShell = Komut dosyasını PowerShell {0}.{1} aracılığıyla çalıştırmaya çalışıyorsunuz. Komut dosyasını uygun PowerShell sürümünde çalıştırın
UnsupportedISE = Komut dosyası, Windows PowerShell ISE üzerinden çalıştırmayı desteklemiyor
Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı
PowerShellLibraries = Kitaplıklar klasöründe dosya yok. Lütfen arşivi yeniden indirin
UnsupportedRelease = Yeni sürüm bulundu
CustomizationWarning = \nSophia Script'i çalıştırmadan önce Sophia.ps1 ön ayar dosyasındaki her işlevi özelleştirdiniz mi?
ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı
@ -16,6 +17,7 @@ OneDriveDownloading = OneDrive indiriliyor... ~33 MB
WindowsFeaturesTitle = Windows özellikleri
OptionalFeaturesTitle = İsteğe bağlı özellikler
EnableHardwareVT = UEFI'dan sanallaştırmayı aktifleştirin
OpenInWindowsTerminalAdmin = Windows Terminalinde (Yönetici)
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
@ -73,6 +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
TelegramGroupTitle = Resmi Telegram grubumuza katılın
TelegramChannelTitle = Resmi Telegram kanalımıza katılın
Uninstall = Kaldır

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

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = Поточний увійшов ко
UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell
UnsupportedISE = Скрипт не підтримує роботу через Windows PowerShell ISE
Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker заражена трояном
PowerShellLibraries = У папці «Бібліотеки» немає файлів. Будь ласка, повторно завантажте архів
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nВи налаштували всі функції в пресет-файлі Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
@ -16,6 +17,7 @@ OneDriveDownloading = Завантажується OneDriv
WindowsFeaturesTitle = Компоненти Windows
OptionalFeaturesTitle = Додаткові компоненти
EnableHardwareVT = Увімкніть віртуалізацію в UEFI
OpenInWindowsTerminalAdmin = Відкрити в Windows Terminal (адміністратор)
UserShellFolderNotEmpty = У папці "{0}" залишились файли. Перемістіть їх вручну у нове розташування
RetrievingDrivesList = Отримання списку дисків...
DriveSelect = Виберіть диск, в корні якого буде створена папка для "{0}"
@ -73,7 +75,8 @@ Run = Запустити
SelectAll = Вибрати все
Skip = Пропустити
Skipped = Пропущено
TelegramGroupTitle = Приєднуйтесь до нашої офіційної групи Telegram
FileExplorerRestartPrompt = Іноді для того, щоб зміни вступили в силу, процес провідника необхідно перезапустити
TelegramGroupTitle = Приєднуйтесь до нашої офіційної групи в Telegram
TelegramChannelTitle = Приєднуйтесь до нашого офіційного каналу в Telegram
Uninstall = Видалити
'@

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

@ -6,6 +6,7 @@ LoggedInUserNotAdmin = 登录的用户没有管理员的权
UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本在适当的PowerShell版本中运行该脚本
UnsupportedISE = 该脚本不支持通过Windows PowerShell ISE运行
Win10TweakerWarning = 可能你的操作系统是通过Win 10 Tweaker后门感染的
PowerShellLibraries = Libraries文件夹中没有文件请重新下载该档案
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前您是否已自定义Sophia.ps1预设文件中的每个函数
ControlledFolderAccessDisabled = 受控文件夹访问已禁用
@ -16,6 +17,7 @@ OneDriveDownloading = 正在下载OneDrive…… ~33 MB
WindowsFeaturesTitle = Windows功能
OptionalFeaturesTitle = 可选功能
EnableHardwareVT = UEFI中开启虚拟化
OpenInWindowsTerminalAdmin = 在Windows终端打开管理员
UserShellFolderNotEmpty = 一些文件留在了{0}文件夹请手动将它们移到一个新位置
RetrievingDrivesList = 取得驱动器列表
DriveSelect = 选择将在其根目录中创建{0}文件夹的驱动器
@ -73,6 +75,7 @@ Run = 运行
SelectAll = 全选
Skip = 跳过
Skipped = 已跳过
FileExplorerRestartPrompt = 有时为了使更改生效必须重新启动文件管理器进程
TelegramGroupTitle = 加入我们的官方Telegram
TelegramChannelTitle = 加入我们的官方Telegram 频道
Uninstall = 卸载

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

@ -3,7 +3,7 @@
Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks
Version: v6.0.5
Date: 25.09.2021
Date: 05.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -868,12 +868,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Force move the console window to the foreground
[WinAPI.ForegroundWindow]::SetForegroundWindow($_.MainWindowHandle)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Emulate the Backspace key sending
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE 1}")
@ -1544,24 +1544,6 @@ function Windows10FileExplorer
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{E2BF9676-5F8F-435C-97EB-11607A5BEDF7}" -Force -ErrorAction Ignore
}
}
# Save all opened folders in order to restore them after File Explorer restart
Clear-Variable -Name OpenedFolders -Force -ErrorAction Ignore
$OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# In order for the changes to take effect the File Explorer process has to be restarted
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
# Restoring closed folders
foreach ($OpenedFolder in $OpenedFolders)
{
if (Test-Path -Path $OpenedFolder)
{
Invoke-Item -Path $OpenedFolder
}
}
}
<#
@ -2083,74 +2065,6 @@ function FileTransferDialog
}
}
<#
.SYNOPSIS
The Windows 10 File Explorer ribbon
.PARAMETER Expanded
Expand the Windows 10 File Explorer ribbon
.PARAMETER Minimized
Minimize the Windows 10 File Explorer ribbon
.EXAMPLE
Windows10FileExplorerRibbon -Expanded
.EXAMPLE
Windows10FileExplorerRibbon -Minimized
.NOTES
In order this feature to work you need to enable the Windows 10 File Explorer (Windows10FileExplorer -Enable)
.NOTES
Current user
#>
function Windows10FileExplorerRibbon
{
param
(
[Parameter(
Mandatory = $true,
ParameterSetName = "Expanded"
)]
[switch]
$Expanded,
[Parameter(
Mandatory = $true,
ParameterSetName = "Minimized"
)]
[switch]
$Minimized
)
switch ($PSCmdlet.ParameterSetName)
{
"Expanded"
{
if (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" -ErrorAction Ignore)
{
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon))
{
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon -Name MinimizedStateTabletModeOff -PropertyType DWord -Value 0 -Force
}
}
"Minimized"
{
if (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}" -ErrorAction Ignore)
{
if (-not (Test-Path -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon))
{
New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon -Force
}
New-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Ribbon -Name MinimizedStateTabletModeOff -PropertyType DWord -Value 1 -Force
}
}
}
}
<#
.SYNOPSIS
The recycle bin files delete confirmation dialog
@ -3488,18 +3402,30 @@ public static bool MarkFileDelete (string sourcefile)
Remove-Item -Path HKLM:\SOFTWARE\WOW6432Node\Microsoft\OneDrive -Recurse -Force -ErrorAction Ignore
Remove-Item -Path "$env:ProgramData\Microsoft OneDrive" -Recurse -Force -ErrorAction Ignore
Remove-Item -Path $env:SystemDrive\OneDriveTemp -Recurse -Force -ErrorAction Ignore
Unregister-ScheduledTask -TaskName *OneDrive* -Confirm:$false
Unregister-ScheduledTask -TaskName *OneDrive* -Confirm:$false -ErrorAction Ignore
# Getting the OneDrive folder path
$OneDriveFolder = Split-Path -Path (Split-Path -Path $OneDriveSetup[0] -Parent)
# Save all opened folders in order to restore them after File Explorer restarting
Clear-Variable -Name OpenedFolders -Force -ErrorAction Ignore
$OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
$Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# Terminate the File Explorer process
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 0 -Force
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
}
}
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoRestartShell -Value 1 -Force
# Attempt to unregister FileSyncShell64.dll and remove
@ -4795,12 +4721,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Force move the console window to the foreground
[WinAPI.ForegroundWindow]::SetForegroundWindow($_.MainWindowHandle)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Emulate the Backspace key sending
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE 1}")
@ -5113,8 +5039,8 @@ function WindowsCapabilities
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
DisableKeepAlive = $true
SslProtocol = "Tls13"
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-RestMethod @Parameters).StatusDescription)
@ -5192,12 +5118,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Force move the console window to the foreground
[WinAPI.ForegroundWindow]::SetForegroundWindow($_.MainWindowHandle)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Emulate the Backspace key sending
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE 1}")
@ -5487,11 +5413,10 @@ function IPv6Component
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
DisableKeepAlive = $true
SslProtocol = "Tls13"
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
@ -6633,24 +6558,6 @@ function WinPrtScrFolder
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{B7BEDE81-DF94-4682-A7D8-57A52620B86F}" -Force -ErrorAction Ignore
}
}
# Save all opened folders in order to restore them after File Explorer restart
Clear-Variable -Name OpenedFolders -Force -ErrorAction Ignore
$OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke()
# In order for the changes to take effect the File Explorer process has to be restarted
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
# Restoring closed folders
foreach ($OpenedFolder in $OpenedFolders)
{
if (Test-Path -Path $OpenedFolder)
{
Start-Process -FilePath explorer -ArgumentList $OpenedFolder
}
}
}
<#
@ -8244,12 +8151,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Force move the console window to the foreground
[WinAPI.ForegroundWindow]::SetForegroundWindow($_.MainWindowHandle)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Emulate the Backspace key sending
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE 1}")
@ -8820,12 +8727,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Force move the console window to the foreground
[WinAPI.ForegroundWindow]::SetForegroundWindow($_.MainWindowHandle)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Emulate the Backspace key sending to prevent the console window to freeze
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE 1}")
@ -9157,12 +9064,12 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
# Show window, if minimized
[WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Force move the console window to the foreground
[WinAPI.ForegroundWindow]::SetForegroundWindow($_.MainWindowHandle)
Start-Sleep -Milliseconds 100
Start-Sleep -Seconds 1
# Emulate the Backspace key sending to prevent the console window to freeze
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE 1}")
@ -9244,7 +9151,6 @@ function HEIF
SslProtocol = "Tls13"
UseBasicParsing = $true
}
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
@ -9938,8 +9844,8 @@ while (`$true)
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\windows.immersivecontrolpanel_cw5n1h2txyewy!microsoft.windows.immersivecontrolpanel" -Name ShowInActionCenter -Force -ErrorAction Ignore
Unregister-ScheduledTask -TaskName "Windows Cleanup" -Confirm:$false
Unregister-ScheduledTask -TaskName "Windows Cleanup Notification" -Confirm:$false
Unregister-ScheduledTask -TaskName "Windows Cleanup" -Confirm:$false -ErrorAction Ignore
Unregister-ScheduledTask -TaskName "Windows Cleanup Notification" -Confirm:$false -ErrorAction Ignore
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Recurse -Force -ErrorAction Ignore
}
@ -10046,7 +9952,7 @@ Get-ChildItem -Path `$env:SystemRoot\SoftwareDistribution\Download -Recurse -For
}
"Delete"
{
Unregister-ScheduledTask -TaskName SoftwareDistribution -Confirm:$false
Unregister-ScheduledTask -TaskName SoftwareDistribution -Confirm:$false -ErrorAction Ignore
}
}
}
@ -10143,7 +10049,7 @@ Get-ChildItem -Path `$env:TEMP -Recurse -Force | Where-Object {`$_.CreationTime
}
"Delete"
{
Unregister-ScheduledTask -TaskName Temp -Confirm:$false
Unregister-ScheduledTask -TaskName Temp -Confirm:$false -ErrorAction Ignore
}
}
}
@ -11849,7 +11755,7 @@ function OpenWindowsTerminalContext
.NOTES
Current user
#>
function OpenWindowsTerminalAdminContext ###
function OpenWindowsTerminalAdminContext
{
param
(
@ -11877,7 +11783,14 @@ function OpenWindowsTerminalAdminContext ###
try
{
# Check the internet connection
if (-not (Invoke-WebRequest -Uri https://www.google.com -Method Head -UseBasicParsing -DisableKeepAlive).StatusDescription)
$Parameters = @{
Uri = "https://www.google.com"
Method = "Head"
SslProtocol = "Tls13"
DisableKeepAlive = $true
UseBasicParsing = $true
}
if (-not (Invoke-WebRequest @Parameters).StatusDescription)
{
return
}
@ -11903,7 +11816,7 @@ function OpenWindowsTerminalAdminContext ###
{
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 ###
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
@ -11917,7 +11830,7 @@ function OpenWindowsTerminalAdminContext ###
{
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 "Open in Windows Terminal (Admin)" -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

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

@ -3,7 +3,7 @@
Default preset file for "Sophia Script for Windows 11"
Version: v6.0.5
Date: 23.09.2021
Date: 05.10.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic
@ -353,24 +353,6 @@ FileTransferDialog -Detailed
# Отображать диалоговое окно передачи файлов в свернутом виде (значение по умолчанию)
# FileTransferDialog -Compact
<#
Expand the Windows 10 File Explorer ribbon
In order this feature to work you need to enable the Windows 10 File Explorer (Windows10FileExplorer -Enable)
Развернуть ленту проводника как в Windows 10
Для того, чтобы работал данный функционал, вам необходимо включить проводник из Windows 10 (Windows10FileExplorer -Enable)
#>
Windows10FileExplorerRibbon -Expanded
<#
Minimize the Windows 10 File Explorer ribbon
In order this feature to work you need to enable the Windows 10 File Explorer (Windows10FileExplorer -Enable)
Свернуть ленту проводника как в Windows 10
Для того, чтобы работал данный функционал, вам необходимо включить проводник из Windows 10 (Windows10FileExplorer -Enable)
#>
# Windows10FileExplorerRibbon -Minimized
# Display the recycle bin files delete confirmation dialog
# Запрашивать подтверждение на удаление файлов в корзину
RecycleBinDeleteConfirmation -Enable
@ -1338,7 +1320,7 @@ OpenWindowsTerminalContext -Hide
# Show the "Open in Windows Terminal (Admin)" item in the Desktop and folders context menu
# Отобразить пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок (значение по умолчанию)
OpenWindowsTerminalAdminContext -Show ### wrapper
OpenWindowsTerminalAdminContext -Show
# Hide the "Open in Windows Terminal (Admin)" item from the Desktop and folders context menu (default value)
# Скрыть пункт "Открыть в Терминале Windows (Администратор)" в контекстном меню Рабочего стола и папок (значение по умолчанию)

Loading…
Cancel
Save