Browse Source

07.05.2021 v5.2.4

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

8
Sophia/LTSC/Functions.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
The TAB completion for functions and their arguments
Version: v5.2.3
Date: 27.04.2021
Version: v5.2.4
Date: 07.05.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & oZ-Zo
@ -66,12 +66,12 @@ function Sophia
Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.3 | 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.4 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
$Parameters = @{
CommandName = "Sophia"

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = 该脚本仅支持Windows 10 x64
UnsupportedOSBuild = 该脚本支持Windows 10版本1809 Enterprise LTSC
UnsupportedRelease = 找到新版本
CustomizationWarning = \n在运行Sophia Script之前您是否已自定义Sophia.ps1预设文件中的每个功能
ControlledFolderAccessDisabled = 受控文件夹访问禁用
ScheduledTasks = 计划任务
WindowsFeaturesTitle = Windows功能
@ -56,6 +57,8 @@ Minute = 1分钟
NoData = 无数据
NoInternetConnection = 无网络连接
NoResponse = 无法建立https://store.rg-adguard.net连接
No =
Yes = 是的
Open = 打开
Patient = 请等待
Restore = 恢复

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = Das Skript unterstützt nur Windows 10 x64
UnsupportedOSBuild = Das Skript unterstützt Windows 10 1809 Enterprise LTSC
UnsupportedRelease = Neue Version gefunden
CustomizationWarning = \nHaben Sie alle Funktionen in der voreingestellten Datei Sophia.ps1 angepasst, bevor Sie Sophia Script ausführen?
ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert
ScheduledTasks = Geplante Aufgaben
WindowsFeaturesTitle = Windows Eigenschaften
@ -56,6 +57,8 @@ Minute = 1 Minute
NoData = Nichts anzuzeigen
NoInternetConnection = Keine Internetverbindung
NoResponse = Eine Verbindung mit https://store.rg-adguard.net konnte nicht hergestellt werden
No = Nein
Yes = Ja
Open = Öffnen
Patient = Bitte Warten...
Restore = Wiederherstellen
@ -66,4 +69,4 @@ Skip = Überspringen
Skipped = Übersprungen
TelegramTitle = Abonniere doch unseren offiziellen Kanal telegram
Uninstall = Deinstallieren
'@
'@

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = The script supports Windows 10 x64 only
UnsupportedOSBuild = The script supports Windows 10 1809 Enterprise LTSC
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
ScheduledTasks = Scheduled tasks
WindowsFeaturesTitle = Windows features
@ -56,6 +57,8 @@ Minute = 1 Minute
NoData = Nothing to display
NoInternetConnection = No Internet connection
NoResponse = A connection could not be established with https://store.rg-adguard.net
No = No
Yes = Yes
Open = Open
Patient = Please wait...
Restore = Restore

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = Este script solo soporta Windows 10 x64
UnsupportedOSBuild = Este script solo soporta Windows 10 1809 Enterprise LTSC
UnsupportedRelease = 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
ScheduledTasks = Tareas programadas
WindowsFeaturesTitle = Características de Windows
@ -56,6 +57,8 @@ Minute = 1 minuto
NoData = Nada que mostrar
NoInternetConnection = No hay conexión a Internet
NoResponse = No se pudo establecer una conexión con https://store.rg-adguard.net
No = No
Yes =
Open = Abierta
Patient = Por favor espere...
Restore = Restaurar

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = Le script supporte uniquement Windows 10 x64
UnsupportedOSBuild = Le script supporte le version Windows 10 1809 Enterprise LTSC
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é
ScheduledTasks = Tâches planifiées
WindowsFeaturesTitle = Fonctionnalités
@ -56,6 +57,8 @@ Minute = 1 minute
NoData = Rien à afficher
NoInternetConnection = Pas de connexion Internet
NoResponse = Une connexion n'a pas pu être établie avec https://store.rg-adguard.net
No = Non
Yes = Oui
Open = Ouvert
Patient = Veuillez patienter...
Restore = Restaurer

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

@ -0,0 +1,72 @@
ConvertFrom-StringData -StringData @'
UnsupportedOSBitness = A szkript csak a Windows 10 64 bites verziót támogatja
UnsupportedOSBuild = A szkript támogatja a Windows 10 1809 Enterprise LTSC kiadást
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
ScheduledTasks = Ütemezett feladatok
WindowsFeaturesTitle = Windows szolgáltatások
OptionalFeaturesTitle = Opcionális szolgáltatások
EnableHardwareVT = Virtualizáció engedélyezése UEFI-ben
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
UserFolderRequest = Kívánja megváltoztatni a "{0}" könyvtár helyét?
UserFolderSelect = Válasszon ki egy könyvtárat a "{0}" könyvtárhoz
UserDefaultFolder = Szeretné visszaállítani a "{0}" könyvtár helyét a gyári értékekre?
GraphicsPerformanceTitle = Grafikus teljesítmény tulajdonság
GraphicsPerformanceRequest = Szeretné megváltoztatni a grafikus teljesítmény beállítást az ön által kiválasztott alkalmazásban "Nagy teljesítményre"?
TaskNotificationTitle = Értesítés
CleanupTaskNotificationTitle = Fontos Információ
CleanupTaskDescription = A nem használt Windows fájlok és frissítések eltávolítása a beépített lemezkarbantartó alkalmazással
CleanupTaskNotificationEventTitle = Szeretné a nem használt fájlokat es frissitéseket eltávolítani?
CleanupTaskNotificationEvent = A Windows megtisztítása nem tart már sokáig. Legközelebb 30 nap múlva jelenik meg ez a figyelmeztetés
CleanupTaskNotificationSnoozeInterval = Válasszon ki egy emlékeztető időintervallumot
CleanupNotificationTaskDescription = Előugró emlékeztető figyelmeztetés a nem használt Windows fájlok és frissítések törléséről
SoftwareDistributionTaskNotificationEvent = A Windows frissités számára fenntartott ideiglenes tárhely sikeresen megtisztítva
TempTaskNotificationEvent = Az ideiglenes fájlok tárolására szolgáló könyvtár tisztítása sikeresen megtörtént
FolderTaskDescription = A {0} könyvtár tisztítása
ControlledFolderAccess = Vezérelt mappához való hozzáférés
ProtectedFoldersRequest = Kívánja engedélyezni a vezérelt mappához való hozzáférest és könyvtárat kijelölni, amit a Microsoft Defender majd megvéd a kártékony alkalmazásoktol es fenyegetésektől?
ProtectedFoldersListRemoved = Eltávolított könyvtárak
AppControlledFolderRequest = Szeretne megadni egy alkalmazást, ami a vezérelt mappához való hozzáférésben engedélyezett?
AllowedControlledFolderAppsRemoved = Engedélyezett alkalmazások eltávolítva
DefenderExclusionFolderRequest = Kíván könyvtárakat kihagyni a Microsoft Defender Malware ellenőrzéséből?
DefenderExclusionFoldersListRemoved = A kihagyott könyvtárak eltávolítva
AddDefenderExclusionFileRequest = Kíván fájlokat kihagyni a Microsoft Defender Malware ellenörzéséből?
DefenderExclusionFilesRemoved = A kihagyott fájlok eltávolítva
EventViewerCustomViewName = Folyamatok
EventViewerCustomViewDescription = Folyamatok létrehozása és parancssor ellenőrző események
RestartWarning = Kérem ne felejtse el újraindítani a számítógépét
ErrorsLine = Sor
ErrorsFile = Fájl
ErrorsMessage = Hibák/Figyelmeztetések
Add = Hozzáadás
AllFilesFilter = Összes fájl (*.*)|*.*
Change = Szerkesztés
DialogBoxOpening = Párbeszédablak megjelenítése...
Disable = Kikapcsolás
Enable = Engedélyezés
EXEFilesFilter = *.exe|*.exe|Minden fájl (*.*)|*.*
FolderSelect = Válasszon ki egy könyvtárat
FilesWontBeMoved = A fájlok nem lesznek áthelyezve
FourHours = 4 óra
HalfHour = 30 perc
Install = Telepítés
Minute = 1 perc
NoData = Nincs megjeleníthető információ
NoInternetConnection = Nincs internetkapcsolat
NoResponse = Nem hozható létre kapcsolat a https://store.rg-adguard.net weboldallal
No = Nem
Yes = Igen
Open = Megnyitás
Patient = Kérem várjon...
Restore = Visszaállítás
Run = Futtatás
Select = Kijelölés
SelectAll = Összes kijelölése
Skip = Átugrás
Skipped = Átugorva
TelegramTitle = Csatlakozzon a hivatalos Telegram csoportunkhoz
Uninstall = Eltávolít
'@

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = Lo script supporta solo Windows 10 x64
UnsupportedOSBuild = Lo script supporta Windows 10 versione 1809 Enterprise LTSC
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
ScheduledTasks = Attività pianificate
WindowsFeaturesTitle = Funzionalità di Windows
@ -56,6 +57,8 @@ Minute = 1 minuto
NoData = Niente da esposizione
NoInternetConnection = Nessuna connessione Internet
NoResponse = Non è stato possibile stabilire una connessione con https://store.rg-adguard.net
No = No
Yes =
Open = Aperto
Patient = Attendere prego...
Restore = Ristabilire

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = O script suporta somente Windows 10 x64
UnsupportedOSBuild = O script suporta versões Windows 10 1809 Enterprise LTSC
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
ScheduledTasks = Tarefas agendadas
WindowsFeaturesTitle = Recursos do Windows
@ -56,6 +57,8 @@ Minute = 1 minuto
NoData = Nada à exibir
NoInternetConnection = Sem conexão à Internet
NoResponse = Uma conexão não pôde ser estabelecida com https://store.rg-adguard.net
No = Não
Yes = Sim
Open = Abrir
Patient = Por favor, espere...
Restore = Restaurar

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = Скрипт поддерживает только Windows 10 x64
UnsupportedOSBuild = Скрипт поддерживает только Windows 10 1809 Enterprise LTSC
UnsupportedRelease = Обнаружена новая версия
CustomizationWarning = \nВы настроили все функции в пресет-файле Sophia.ps1 перед запуском Sophia Script?
ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен
ScheduledTasks = Запланированные задания
WindowsFeaturesTitle = Компоненты Windows
@ -24,7 +25,7 @@ CleanupTaskNotificationSnoozeInterval = Выберите интервал п
CleanupNotificationTaskDescription = Всплывающее уведомление с напоминанием об очистке неиспользуемых файлов и обновлений Windows
SoftwareDistributionTaskNotificationEvent = Кэш обновлений Windows успешно удален
TempTaskNotificationEvent = Папка временных файлов успешно очищена
FolderTaskDescription = Очистка папки "{0}"
FolderTaskDescription = Очистка папки {0}
ControlledFolderAccess = Контролируемый доступ к папкам
ProtectedFoldersRequest = Хотите включить контролируемый доступ к папкам и указать папку, которую Microsoft Defender будет защищать от вредоносных приложений и угроз?
ProtectedFoldersListRemoved = Удаленные папки
@ -56,6 +57,8 @@ Minute = 1 минута
NoData = Отсутствуют данные
NoInternetConnection = Отсутствует интернет-соединение
NoResponse = Невозможно установить соединение с https://store.rg-adguard.net
No = Нет
Yes = Да
Open = Открыть
Patient = Пожалуйста, подождите...
Restore = Восстановить

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = Bu betik sadece Windows 10 x64 destekliyor
UnsupportedOSBuild = Bu betik sadece Windows 10 1809 Enterprise LTSC
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ı
ScheduledTasks = Zamanlanan görevler
WindowsFeaturesTitle = Windows özellikleri
@ -56,6 +57,8 @@ Minute = 1 Dakika
NoData = Görüntülenecek bir şey yok
NoInternetConnection = İnternet bağlantısı yok
NoResponse = https://store.rg-adguard.net ile bağlantı kurulamadı
No = Hayır
Yes = Evet
Open = Açık
Patient = Lütfen bekleyin...
Restore = Onar
@ -66,4 +69,4 @@ Skip = Atla
Skipped = Atlandı
TelegramTitle = Resmi Telegram grubumuza katılın
Uninstall = Kaldır
'@
'@

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

@ -2,6 +2,7 @@
UnsupportedOSBitness = Скрипт підтримує тільки Windows 10 x64
UnsupportedOSBuild = Скрипт підтримує тільки Windows 10 1809 версії Enterprise LTSC
UnsupportedRelease = Виявлено нову версію
CustomizationWarning = \nHave you customized every function in the Sophia.ps1 preset file before running Sophia Script?
ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений
ScheduledTasks = Заплановані задачі
WindowsFeaturesTitle = Компоненти Windows
@ -56,6 +57,8 @@ Minute = 1 хвилина
NoData = Відсутні дані
NoInternetConnection = Відсутнє інтернет-з'єднання
NoResponse = Не вдалося встановити звязок із https://store.rg-adguard.net
No = Немає
Yes = Так
Open = Відкрити
Patient = Будь ласка, зачекайте...
Restore = Відновити

48
Sophia/LTSC/Sophia.ps1

@ -2,8 +2,8 @@
.SYNOPSIS
Default preset file for "Windows 10 Sophia Script" (LTSC version)
Version: v5.2.3
Date: 27.04.2021
Version: v5.2.4
Date: 07.05.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & oZ-Zo
@ -11,8 +11,8 @@
Thanks to all https://forum.ru-board.com members involved
.DESCRIPTION
Place the "#" char before function if you don't want it to be run
Remove the "#" char before function if you want it to be run
Place the "#" char before function if you don't want to run it
Remove the "#" char before function if you want to run it
Every tweak in the preset file has its' corresponding function to restore the default settings
.EXAMPLE Run the whole script
@ -71,12 +71,12 @@ param
Clear-Host
$Host.UI.RawUI.WindowTitle = "Windows 10 Sophia Script for LTSC v5.2.3 | 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.4 | Made with $([char]::ConvertFromUtf32(0x1F497)) of Windows 10 | $([char]0x00A9) farag & oz-zo, 2014–2021"
Remove-Module -Name Sophia -Force -ErrorAction Ignore
Import-Module -Name $PSScriptRoot\Sophia.psd1 -PassThru -Force
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia
Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations
<#
.SYNOPSIS
@ -91,7 +91,7 @@ Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia
#>
if ($Functions)
{
# Regardless of the functions entered as an argument, the "Checkings" function will be executed first,
# Regardless of functions entered as an argument, the "Checkings" function will be executed first,
# and the "Refresh" and "Errors" functions will be executed at the end
Invoke-Command -ScriptBlock {Checkings}
@ -107,17 +107,17 @@ if ($Functions)
#region Protection
<#
Checkings
Please, do not touch this function
Checkings. If you want disable a warning message about whether you've customized the preset file remove the Warning argument
Please, do not comment out this function
Проверки
Пожалуйста, не комментируйте данную функцию
#>
Checkings
Checkings -Warning
<#
Enable script logging. The log will be being recorded into the script folder
To stop logging just close the console or type "Stop-Transcript"
Enable script logging. Log will be recorded into the script folder
To stop logging just close console or type "Stop-Transcript"
Включить логирование работы скрипта. Лог будет записываться в папку скрипта
Чтобы остановить логгирование, закройте консоль или наберите "Stop-Transcript"
@ -482,7 +482,7 @@ Hibernate -Disable
# Change the %TEMP% environment variable path to "%SystemDrive%\Temp"
# Изменить путь переменной среды для %TEMP% на "%SystemDrive%\Temp"
# TempFolder -SystemDrive
TempFolder -SystemDrive
# Change %TEMP% environment variable path to "%LOCALAPPDATA%\Temp" (default value)
# Изменить путь переменной среды для %TEMP% на "LOCALAPPDATA%\Temp" (значение по умолчанию)
@ -612,28 +612,34 @@ SetInputMethod -English
<#
Move user folders location to the root of any drive using the interactive menu
User files or folders won't me moved to a new location
User files or folders won't me moved to a new location. Move them manually
They're located in the %SystemDrive%\Users\%Username% folder by default
Переместить пользовательские папки в корень любого диска на выбор с помощью интерактивного меню
Пользовательские файлы и папки не будут перемещены в новое расположение
Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную
По умолчанию они располагаются в папке %SystemDrive%\Users\%Username%
#>
SetUserShellFolderLocation -Root
<#
Select folders for user folders location manually using a folder browser dialog
User files or folders won't me moved to a new location
User files or folders won't me moved to a new location. Move them manually
They're located in the %SystemDrive%\Users\%Username% folder by default
Выбрать папки для расположения пользовательских папок вручную, используя диалог "Обзор папок"
Пользовательские файлы и папки не будут перемещены в новое расположение
Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную
По умолчанию они располагаются в папке %SystemDrive%\Users\%Username%
#>
# SetUserShellFolderLocation -Custom
<#
Change user folders location to the default values
User files or folders won't me moved to the new location
User files or folders won't me moved to the new location. Move them manually
They're located in the %SystemDrive%\Users\%Username% folder by default
Изменить расположение пользовательских папок на значения по умолчанию
Пользовательские файлы и папки не будут перемещены в новое расположение
Пользовательские файлы и папки не будут перемещены в новое расположение. Переместите их вручную
По умолчанию они располагаются в папке %SystemDrive%\Users\%Username%
#>
# SetUserShellFolderLocation -Default
@ -1118,7 +1124,7 @@ PreviousVersionsPage -Hide
Simulate pressing F5 to refresh the desktop
Refresh desktop icons, environment variables, taskbar
Restart the Start menu
Please, do not touch this function
Please, do not comment out this function
Симулировать нажатие F5 для обновления рабочего стола
Обновить иконки рабочего стола, переменные среды, панель задач
@ -1129,7 +1135,7 @@ Refresh
<#
Errors output
Please, do not touch this function
Please, do not comment out this function
Вывод ошибок
Пожалуйста, не комментируйте данную функцию

BIN
Sophia/LTSC/Sophia.psd1

Binary file not shown.

52
Sophia/LTSC/Sophia.psm1

@ -2,8 +2,8 @@
.SYNOPSIS
"Windows 10 Sophia Script" (LTSC version) is a PowerShell module for Windows 10 fine-tuning and automating the routine tasks
Version: v5.2.3
Date: 27.04.2021
Version: v5.2.4
Date: 07.05.2021
Copyright (c) 20142021 farag
Copyright (c) 20192021 farag & oZ-Zo
@ -45,6 +45,13 @@
#region Checkings
function Checkings
{
param
(
[Parameter(Mandatory = $false)]
[switch]
$Warning
)
Set-StrictMode -Version Latest
# Сlear the $Error variable
@ -108,6 +115,31 @@ function Checkings
# Unblock all files in the folder by removing the Zone.Identifier alternate data stream with a value of "3"
Get-ChildItem -Path $PSScriptRoot -Recurse -Force | Unblock-File
# Display a warning message about whether a user has customized the preset file
if ($Warning)
{
$Title = ""
$Message = $Localization.CustomizationWarning
$Yes = $Localization.Yes
$No = $Localization.No
$Options = "&$No", "&$Yes"
$DefaultChoice = 0
$Result = $Host.UI.PromptForChoice($Title, $Message, $Options, $DefaultChoice)
switch ($Result)
{
"0"
{
Invoke-Item -Path $PSScriptRoot\Sophia.ps1
exit
}
"1"
{
return
}
}
}
# Turn off Controlled folder access to let the script proceed
switch ((Get-MpPreference).EnableControlledFolderAccess)
{
@ -4480,6 +4512,7 @@ public extern static int SHSetKnownFolderPath(ref Guid folderId, uint flags, Int
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
# Save desktop.ini in the UTF-16 LE encoding
Set-Content -Path "$FolderPath\desktop.ini" -Value $DesktopINI[$UserFolder] -Encoding Unicode -Force
(Get-Item -Path "$FolderPath\desktop.ini" -Force).Attributes = "Hidden", "System", "Archive"
(Get-Item -Path "$FolderPath\desktop.ini" -Force).Refresh()
@ -6209,7 +6242,7 @@ namespace FileAssoc
{
[OutputType([array])]
# Secret static string stored in %SystemRoot%\SysWOW64\shell32.dll
# Secret static string stored in %SystemRoot%\SysWOW64\shell32.dll
$userExperience = "User Choice set via Windows User Experience {D18B6DD5-6124-4341-9318-804003BAFA0B}"
# Get user SID
$userSid = (Get-CimInstance -ClassName Win32_UserAccount | Where-Object -FilterScript {$_.Name -eq $env:USERNAME}).SID
@ -6872,10 +6905,16 @@ while (`$true)
}
"Delete"
{
Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches | ForEach-Object -Process {
Remove-ItemProperty -Path $_.PsPath -Name StateFlags1337 -Force -ErrorAction Ignore
}
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
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Recurse -Force
Remove-Item -Path Registry::HKEY_CLASSES_ROOT\WindowsCleanup -Recurse -Force -ErrorAction Ignore
}
}
}
@ -7637,13 +7676,14 @@ function EventViewerCustomView
</QueryConfig>
</ViewerConfig>
"@
if (-not (Test-Path -Path "$env:ProgramData\Microsoft\Event Viewer\Views"))
{
New-Item -Path "$env:ProgramData\Microsoft\Event Viewer\Views" -ItemType Directory -Force
}
# Saving ProcessCreation.xml in UTF-8 encoding
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding Default -Force
# Save ProcessCreation.xml in the UTF-8 with BOM encoding
Set-Content -Path "$env:ProgramData\Microsoft\Event Viewer\Views\ProcessCreation.xml" -Value $XML -Encoding UTF8 -Force
}
}
}

Loading…
Cancel
Save