Browse Source

13.06/2021 v5.2.7

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

8
Sophia/LTSC/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS .SYNOPSIS
The TAB completion for functions and their arguments The TAB completion for functions and their arguments
Version: v5.2.6 Version: v5.2.7
Date: 01.06.2021 Date: 13.06.2021
Copyright (c) 20142021 farag Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & oZ-Zo Copyright (c) 20192021 farag & oZ-Zo
@ -66,10 +66,10 @@ function Sophia
Clear-Host Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" $Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations

2
Sophia/LTSC/Localizations/cn-CN/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = 文件
ErrorsMessage = 错误/警告 ErrorsMessage = 错误/警告
Add = 添加 Add = 添加
AllFilesFilter = 所有文件 (*.*)|*.* AllFilesFilter = 所有文件 (*.*)|*.*
Browse = 浏览
Change = 更改 Change = 更改
DialogBoxOpening = 显示对话窗口 DialogBoxOpening = 显示对话窗口
Disable = 禁用 Disable = 禁用
@ -64,7 +65,6 @@ Open = 打开
Patient = 请等待 Patient = 请等待
Restore = 恢复 Restore = 恢复
Run = 运行 Run = 运行
Select = 选择
SelectAll = 全选 SelectAll = 全选
Skip = 跳过 Skip = 跳过
Skipped = 已跳过 Skipped = 已跳过

2
Sophia/LTSC/Localizations/de-DE/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Datei
ErrorsMessage = Fehler/Warnungen ErrorsMessage = Fehler/Warnungen
Add = Hinzufügen Add = Hinzufügen
AllFilesFilter = Alle Dateien (*.*)|*.* AllFilesFilter = Alle Dateien (*.*)|*.*
Browse = Durchsuche
Change = Ändern Change = Ändern
DialogBoxOpening = Anzeigen des Dialogfensters... DialogBoxOpening = Anzeigen des Dialogfensters...
Disable = Deaktivieren Disable = Deaktivieren
@ -64,7 +65,6 @@ Open = Öffnen
Patient = Bitte Warten... Patient = Bitte Warten...
Restore = Wiederherstellen Restore = Wiederherstellen
Run = Starten Run = Starten
Select = Wählen Sie
SelectAll = Wählen Sie Alle SelectAll = Wählen Sie Alle
Skip = Überspringen Skip = Überspringen
Skipped = Übersprungen Skipped = Übersprungen

2
Sophia/LTSC/Localizations/en-US/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = File
ErrorsMessage = Errors/Warnings ErrorsMessage = Errors/Warnings
Add = Add Add = Add
AllFilesFilter = All Files (*.*)|*.* AllFilesFilter = All Files (*.*)|*.*
Browse = Browse
Change = Change Change = Change
DialogBoxOpening = Displaying the dialog box... DialogBoxOpening = Displaying the dialog box...
Disable = Disable Disable = Disable
@ -64,7 +65,6 @@ Open = Open
Patient = Please wait... Patient = Please wait...
Restore = Restore Restore = Restore
Run = Run Run = Run
Select = Select
SelectAll = Select all SelectAll = Select all
Skip = Skip Skip = Skip
Skipped = Skipped Skipped = Skipped

2
Sophia/LTSC/Localizations/es-ES/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Archivo
ErrorsMessage = Errores/Advertencias ErrorsMessage = Errores/Advertencias
Add = Agregar Add = Agregar
AllFilesFilter = Todos los archivos (*.*)|*.* AllFilesFilter = Todos los archivos (*.*)|*.*
Browse = Examinar
Change = Cambio Change = Cambio
DialogBoxOpening = Viendo el cuadro de diálogo... DialogBoxOpening = Viendo el cuadro de diálogo...
Disable = Desactivar Disable = Desactivar
@ -64,7 +65,6 @@ Open = Abierta
Patient = Por favor espere... Patient = Por favor espere...
Restore = Restaurar Restore = Restaurar
Run = Iniciar Run = Iniciar
Select = Seleccionar
SelectAll = Seleccionar todo SelectAll = Seleccionar todo
Skip = Omitir Skip = Omitir
Skipped = Omitido Skipped = Omitido

2
Sophia/LTSC/Localizations/fr-FR/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Fichier
ErrorsMessage = Erreurs/Avertissements ErrorsMessage = Erreurs/Avertissements
Add = Ajouter Add = Ajouter
AllFilesFilter = Tous les Fichiers (*.*)|*.* AllFilesFilter = Tous les Fichiers (*.*)|*.*
Browse = Parcourir
Change = Changer Change = Changer
DialogBoxOpening = Afficher la boîte de dialogue... DialogBoxOpening = Afficher la boîte de dialogue...
Disable = Désactiver Disable = Désactiver
@ -64,7 +65,6 @@ Open = Ouvert
Patient = Veuillez patienter... Patient = Veuillez patienter...
Restore = Restaurer Restore = Restaurer
Run = Démarrer Run = Démarrer
Select = Sélectionner
SelectAll = Tout sélectionner SelectAll = Tout sélectionner
Skip = Passer Skip = Passer
Skipped = Passé Skipped = Passé

2
Sophia/LTSC/Localizations/hu-HU/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Fájl
ErrorsMessage = Hibák/Figyelmeztetések ErrorsMessage = Hibák/Figyelmeztetések
Add = Hozzáadás Add = Hozzáadás
AllFilesFilter = Összes fájl (*.*)|*.* AllFilesFilter = Összes fájl (*.*)|*.*
Browse = Pregledavati
Change = Szerkesztés Change = Szerkesztés
DialogBoxOpening = Párbeszédablak megjelenítése... DialogBoxOpening = Párbeszédablak megjelenítése...
Disable = Kikapcsolás Disable = Kikapcsolás
@ -64,7 +65,6 @@ Open = Megnyitás
Patient = Kérem várjon... Patient = Kérem várjon...
Restore = Visszaállítás Restore = Visszaállítás
Run = Futtatás Run = Futtatás
Select = Kijelölés
SelectAll = Összes kijelölése SelectAll = Összes kijelölése
Skip = Átugrás Skip = Átugrás
Skipped = Átugorva Skipped = Átugorva

2
Sophia/LTSC/Localizations/it-IT/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = File
ErrorsMessage = Errori/avvisi ErrorsMessage = Errori/avvisi
Add = Inserisci Add = Inserisci
AllFilesFilter = Tutti i file (*.*)|*.* AllFilesFilter = Tutti i file (*.*)|*.*
Browse = Sfogliare
Change = Modificare Change = Modificare
DialogBoxOpening = Visualizzazione della finestra di dialogo... DialogBoxOpening = Visualizzazione della finestra di dialogo...
Disable = Disattivare Disable = Disattivare
@ -64,7 +65,6 @@ Open = Aperto
Patient = Attendere prego... Patient = Attendere prego...
Restore = Ristabilire Restore = Ristabilire
Run = Eseguire Run = Eseguire
Select = Selezionare
SelectAll = Seleziona tutto SelectAll = Seleziona tutto
Skip = Salta Skip = Salta
Skipped = Saltato Skipped = Saltato

1
Sophia/LTSC/Localizations/pt-BR/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Arquivo
ErrorsMessage = Erros/Avisos ErrorsMessage = Erros/Avisos
Add = Adicionar Add = Adicionar
AllFilesFilter = Todos os arquivos (*.*)|*.* AllFilesFilter = Todos os arquivos (*.*)|*.*
Browse = Procurar
Change = Mudar Change = Mudar
DialogBoxOpening = Exibindo a caixa de diálogo... DialogBoxOpening = Exibindo a caixa de diálogo...
Disable = Desativar Disable = Desativar

2
Sophia/LTSC/Localizations/ru-RU/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Файл
ErrorsMessage = Ошибки/предупреждения ErrorsMessage = Ошибки/предупреждения
Add = Добавить Add = Добавить
AllFilesFilter = Все файлы (*.*)|*.* AllFilesFilter = Все файлы (*.*)|*.*
Browse = Обзор
Change = Изменить Change = Изменить
DialogBoxOpening = Диалоговое окно открывается... DialogBoxOpening = Диалоговое окно открывается...
Disable = Отключить Disable = Отключить
@ -64,7 +65,6 @@ Open = Открыть
Patient = Пожалуйста, подождите... Patient = Пожалуйста, подождите...
Restore = Восстановить Restore = Восстановить
Run = Запустить Run = Запустить
Select = Выбрать
SelectAll = Выбрать всё SelectAll = Выбрать всё
Skip = Пропустить Skip = Пропустить
Skipped = Пропущено Skipped = Пропущено

2
Sophia/LTSC/Localizations/tr-TR/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Dosya
ErrorsMessage = Hatalar/Uyarılar ErrorsMessage = Hatalar/Uyarılar
Add = Ekle Add = Ekle
AllFilesFilter = Tüm Dosyalar (*.*)|*.* AllFilesFilter = Tüm Dosyalar (*.*)|*.*
Browse = Gözat
Change = Değiştir Change = Değiştir
DialogBoxOpening = İletişim kutusu görüntüleniyor... DialogBoxOpening = İletişim kutusu görüntüleniyor...
Disable = Devre dışı bırak Disable = Devre dışı bırak
@ -64,7 +65,6 @@ Open = Açık
Patient = Lütfen bekleyin... Patient = Lütfen bekleyin...
Restore = Onar Restore = Onar
Run = Başlat Run = Başlat
Select = Seç
SelectAll = Hepsini seç SelectAll = Hepsini seç
Skip = Atla Skip = Atla
Skipped = Atlandı Skipped = Atlandı

2
Sophia/LTSC/Localizations/uk-UA/Sophia.psd1

@ -44,6 +44,7 @@ ErrorsFile = Файл
ErrorsMessage = Помилки/попередження ErrorsMessage = Помилки/попередження
Add = Додати Add = Додати
AllFilesFilter = Усі файли (*.*)|*.* AllFilesFilter = Усі файли (*.*)|*.*
Browse = Переглядати
Change = Змінити Change = Змінити
DialogBoxOpening = Діалогове вікно відкривається... DialogBoxOpening = Діалогове вікно відкривається...
Disable = Вимкнути Disable = Вимкнути
@ -64,7 +65,6 @@ Open = Відкрити
Patient = Будь ласка, зачекайте... Patient = Будь ласка, зачекайте...
Restore = Відновити Restore = Відновити
Run = Запустити Run = Запустити
Select = Вибрати
SelectAll = Вибрати все SelectAll = Вибрати все
Skip = Пропустити Skip = Пропустити
Skipped = Пропущено Skipped = Пропущено

4
Sophia/LTSC/Manifest/Sophia.psd1

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

58
Sophia/LTSC/Module/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS .SYNOPSIS
"Windows 10 Sophia Script" (LTSC version) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks "Windows 10 Sophia Script" (LTSC version) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Version: v5.2.6 Version: v5.2.7
Date: 01.06.2021 Date: 13.06.2021
Copyright (c) 20142021 farag Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic Copyright (c) 20192021 farag & Inestic
@ -137,7 +137,7 @@ function Checkings
{ {
"0" "0"
{ {
Invoke-Item -Path $PSScriptRoot\Sophia.ps1 Invoke-Item -Path $PSScriptRoot\..\Sophia.ps1
exit exit
} }
"1" "1"
@ -2632,11 +2632,11 @@ function StorageSense
.SYNOPSIS .SYNOPSIS
Configure Storage Sense running Configure Storage Sense running
.PARAMETER Disable .PARAMETER Month
Run Storage Sense every month/during low free disk space Run Storage Sense every month
.PARAMETER Enable .PARAMETER Default
Run Storage Sense every month/during low free disk space Run Storage Sense during low free disk space
.EXAMPLE .EXAMPLE
StorageSenseFrequency -Month StorageSenseFrequency -Month
@ -4583,14 +4583,14 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
Add-Type @Signature Add-Type @Signature
} }
foreach ($guid in $KnownFolders[$KnownFolder]) foreach ($GUID in $KnownFolders[$KnownFolder])
{ {
[WinAPI.KnownFolders]::SHSetKnownFolderPath([ref]$guid, 0, 0, $Path) [WinAPI.KnownFolders]::SHSetKnownFolderPath([ref]$GUID, 0, 0, $Path)
} }
(Get-Item -Path $Path -Force).Attributes = "ReadOnly" (Get-Item -Path $Path -Force).Attributes = "ReadOnly"
} }
$UserShellFoldersRegName = @{ $UserShellFoldersRegistryNames = @{
"Desktop" = "Desktop" "Desktop" = "Desktop"
"Documents" = "Personal" "Documents" = "Personal"
"Downloads" = "{374DE290-123F-4565-9164-39C4925E467B}" "Downloads" = "{374DE290-123F-4565-9164-39C4925E467B}"
@ -4599,7 +4599,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
"Videos" = "My Video" "Videos" = "My Video"
} }
$UserShellFoldersGUID = @{ $UserShellFoldersGUIDs = @{
"Desktop" = "{754AC886-DF64-4CBA-86B5-F7FBF4FBCEF5}" "Desktop" = "{754AC886-DF64-4CBA-86B5-F7FBF4FBCEF5}"
"Documents" = "{F42EE2D3-909F-4907-8871-4C22FC0BF756}" "Documents" = "{F42EE2D3-909F-4907-8871-4C22FC0BF756}"
"Downloads" = "{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}" "Downloads" = "{7D83EE9B-2244-4E70-B1F5-5393042AF1E4}"
@ -4644,12 +4644,12 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
} }
# Determining the current user folder path # Determining the current user folder path
$UserShellFolderRegValue = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name $UserShellFoldersRegName[$UserFolder] $UserShellFolderRegistryValue = Get-ItemPropertyValue -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name $UserShellFoldersRegistryNames[$UserFolder]
if ($UserShellFolderRegValue -ne $FolderPath) if ($UserShellFolderRegistryValue -ne $FolderPath)
{ {
if ((Get-ChildItem -Path $UserShellFolderRegValue | Measure-Object).Count -ne 0) if ((Get-ChildItem -Path $UserShellFolderRegistryValue | Measure-Object).Count -ne 0)
{ {
Write-Error -Message ($Localization.UserShellFolderNotEmpty -f $UserShellFolderRegValue) -ErrorAction SilentlyContinue Write-Error -Message ($Localization.UserShellFolderNotEmpty -f $UserShellFolderRegistryValue) -ErrorAction SilentlyContinue
} }
# Creating a new folder if there is no one # Creating a new folder if there is no one
@ -4661,11 +4661,11 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
# Removing old desktop.ini # Removing old desktop.ini
if ($RemoveDesktopINI.IsPresent) if ($RemoveDesktopINI.IsPresent)
{ {
Remove-Item -Path "$UserShellFolderRegValue\desktop.ini" -Force Remove-Item -Path "$UserShellFolderRegistryValue\desktop.ini" -Force
} }
KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath KnownFolderPath -KnownFolder $UserFolder -Path $FolderPath
New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name $UserShellFoldersGUID[$UserFolder] -PropertyType ExpandString -Value $FolderPath -Force New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name $UserShellFoldersGUIDs[$UserFolder] -PropertyType ExpandString -Value $FolderPath -Force
# Save desktop.ini in the UTF-16 LE encoding # Save desktop.ini in the UTF-16 LE encoding
Set-Content -Path "$FolderPath\desktop.ini" -Value $DesktopINI[$UserFolder] -Encoding Unicode -Force Set-Content -Path "$FolderPath\desktop.ini" -Value $DesktopINI[$UserFolder] -Encoding Unicode -Force
@ -4958,9 +4958,9 @@ public static string GetString(uint strId)
$Title = "" $Title = ""
$Message = $Localization.UserFolderSelect -f $DesktopLocalizedString $Message = $Localization.UserFolderSelect -f $DesktopLocalizedString
$Select = $Localization.Select $Select = $Localization.Browse
$Skip = $Localization.Skip $Skip = $Localization.Skip
$Options = "&$Select", "&$Skip" $Options = "&$Browse", "&$Skip"
$DefaultChoice = 1 $DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice) $Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
@ -4994,9 +4994,9 @@ public static string GetString(uint strId)
$Title = "" $Title = ""
$Message = $Localization.UserFolderSelect -f $DocumentsLocalizedString $Message = $Localization.UserFolderSelect -f $DocumentsLocalizedString
$Select = $Localization.Select $Select = $Localization.Browse
$Skip = $Localization.Skip $Skip = $Localization.Skip
$Options = "&$Select", "&$Skip" $Options = "&$Browse", "&$Skip"
$DefaultChoice = 1 $DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice) $Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
@ -5030,9 +5030,9 @@ public static string GetString(uint strId)
$Title = "" $Title = ""
$Message = $Localization.UserFolderSelect -f $DownloadsLocalizedString $Message = $Localization.UserFolderSelect -f $DownloadsLocalizedString
$Select = $Localization.Select $Select = $Localization.Browse
$Skip = $Localization.Skip $Skip = $Localization.Skip
$Options = "&$Select", "&$Skip" $Options = "&$Browse", "&$Skip"
$DefaultChoice = 1 $DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice) $Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
@ -5066,9 +5066,9 @@ public static string GetString(uint strId)
$Title = "" $Title = ""
$Message = $Localization.UserFolderSelect -f $MusicLocalizedString $Message = $Localization.UserFolderSelect -f $MusicLocalizedString
$Select = $Localization.Select $Select = $Localization.Browse
$Skip = $Localization.Skip $Skip = $Localization.Skip
$Options = "&$Select", "&$Skip" $Options = "&$Browse", "&$Skip"
$DefaultChoice = 1 $DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice) $Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
@ -5102,9 +5102,9 @@ public static string GetString(uint strId)
$Title = "" $Title = ""
$Message = $Localization.UserFolderSelect -f $PicturesLocalizedString $Message = $Localization.UserFolderSelect -f $PicturesLocalizedString
$Select = $Localization.Select $Select = $Localization.Browse
$Skip = $Localization.Skip $Skip = $Localization.Skip
$Options = "&$Select", "&$Skip" $Options = "&$Browse", "&$Skip"
$DefaultChoice = 1 $DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice) $Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
@ -5138,9 +5138,9 @@ public static string GetString(uint strId)
$Title = "" $Title = ""
$Message = $Localization.UserFolderSelect -f $VideosLocalizedString $Message = $Localization.UserFolderSelect -f $VideosLocalizedString
$Select = $Localization.Select $Select = $Localization.Browse
$Skip = $Localization.Skip $Skip = $Localization.Skip
$Options = "&$Select", "&$Skip" $Options = "&$Browse", "&$Skip"
$DefaultChoice = 1 $DefaultChoice = 1
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice) $Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)

23
Sophia/LTSC/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS .SYNOPSIS
Default preset file for "Windows 10 Sophia Script" (LTSC version) Default preset file for "Windows 10 Sophia Script" (LTSC version)
Version: v5.2.6 Version: v5.2.7
Date: 01.06.2021 Date: 13.06.2021
Copyright (c) 20142021 farag Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & Inestic Copyright (c) 20192021 farag & Inestic
@ -71,10 +71,10 @@ param
Clear-Host Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.6 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021" $Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.7 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
@ -107,10 +107,10 @@ if ($Functions)
#region Protection #region Protection
<# <#
Checkings. If you want to disable a warning message about whether you've customized the preset file remove the "-Warning" argument The necessary checkings. If you want to disable a warning message about whether you've customized the preset file remove the "-Warning" argument
Please, do not comment out this function Please, do not comment out this function
Проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning" Обязательные проверки. Чтобы выключить предупреждение о необходимости настройки пресет-файла, удалите аргумент "-Warning"
Пожалуйста, не комментируйте данную функцию Пожалуйста, не комментируйте данную функцию
#> #>
Checkings -Warning Checkings -Warning
@ -999,8 +999,15 @@ MSIExtractContext -Add
# Удалить пункт "Извлечь все" из контекстного меню Windows Installer (.msi) (значение по умолчанию) # Удалить пункт "Извлечь все" из контекстного меню Windows Installer (.msi) (значение по умолчанию)
# MSIExtractContext -Remove # MSIExtractContext -Remove
# Add the "Install" item to the .cab archives context menu <#
# Добавить пункт "Установить" в контекстное меню .cab архивов Add the "Install" item to the .cab archives context menu
If the .cab file extension type associated to open with a third party app by default, the "Install" context menu item won't be displayed,
so the default association for the .cab file type will be restored forcedly
Добавить пункт "Установить" в контекстное меню .cab архивов
Если .cab файлы ассоциированы со сторонним приложением, пункт "Установить" в контекстное меню не будет отображаться,
поэтому принудительно будет восстановлена ассоциация по умолчанию
#>
CABInstallContext -Add CABInstallContext -Add
# Remove the "Install" item from the .cab archives context menu (default value) # Remove the "Install" item from the .cab archives context menu (default value)

Loading…
Cancel
Save