diff --git a/.github/workflows/Sophia.yml b/.github/workflows/Sophia.yml index 7f5b378e..6edb14e8 100644 --- a/.github/workflows/Sophia.yml +++ b/.github/workflows/Sophia.yml @@ -43,6 +43,10 @@ jobs: run: | . "Scripts\Windows_11_PS_7.ps1" + - name: Sophia Script for Windows 11 LTSC 2024 + run: | + . "Scripts\Windows_11_LTSC_2024.ps1" + - name: Sophia Script Wrapper run: | . "Scripts\Wrapper.ps1" @@ -76,6 +80,7 @@ jobs: $Sophia_Script_Windows_10_LTSC2021 = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_10_LTSC2021 $Sophia_Script_Windows_11_PowerShell_5_1 = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_PowerShell_5_1 $Sophia_Script_Windows_11_PowerShell_7 = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_PowerShell_7 + $Sophia_Script_Windows_11_LTSC2024 = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_LTSC2024 $Sophia_Script_Wrapper = (Invoke-RestMethod @Parameters).Sophia_Script_Wrapper # Replace variables with script latest versions @@ -89,6 +94,7 @@ jobs: -replace "Sophia_Script_Windows_10_LTSC2021", $Sophia_Script_Windows_10_LTSC2021 ` -replace "Sophia_Script_Windows_11_PowerShell_5_1", $Sophia_Script_Windows_11_PowerShell_5_1 ` -replace "Sophia_Script_Windows_11_PowerShell_7", $Sophia_Script_Windows_11_PowerShell_7 ` + -replace "Sophia_Script_Windows_11_LTSC2024", $Sophia_Script_Windows_11_LTSC2024 ` -replace "Sophia_Script_Wrapper", $Sophia_Script_Wrapper } | Set-Content -Path ReleaseNotesTemplate.md -Encoding utf8 -Force diff --git a/Scripts/Windows_11_LTSC_2024.ps1 b/Scripts/Windows_11_LTSC_2024.ps1 new file mode 100644 index 00000000..dfed4385 --- /dev/null +++ b/Scripts/Windows_11_LTSC_2024.ps1 @@ -0,0 +1,32 @@ +# 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" +} +$LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_LTSC2024 + +Write-Verbose -Message "Sophia.Script.for.Windows.11.LTSC.2024.v$LatestRelease.zip" -Verbose + +New-Item -Path "Sophia_Script_for_Windows_11_LTSC_2024_v$LatestRelease\bin" -ItemType Directory -Force + +$Parameters = @{ + Path = @("Scripts\LGPO.exe") + Destination = "Sophia_Script_for_Windows_11_LTSC_2024_v$LatestRelease\bin" + Recurse = $true + Force = $true +} +Copy-Item @Parameters + +Get-ChildItem -Path "src\Sophia_Script_for_Windows_11_LTSC_2024" -Force | Copy-Item -Destination "Sophia_Script_for_Windows_11_LTSC_2024_v$LatestRelease" -Recurse -Force + +$Parameters = @{ + Path = "Sophia_Script_for_Windows_11_LTSC_2024_v$LatestRelease" + DestinationPath = "Sophia.Script.for.Windows.11.LTSC.2024.v$LatestRelease.zip" + CompressionLevel = "Fastest" + Force = $true +} +Compress-Archive @Parameters + +# Calculate hash +Get-Item -Path "Sophia.Script.for.Windows.11.LTSC.2024.v$LatestRelease.zip" -Force | ForEach-Object -Process { + "$($_.Name) $((Get-FileHash -LiteralPath $_.FullName -Algorithm SHA256).Hash)" +} | Add-Content -Path SHA256SUM -Encoding utf8 -Force diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 7c8d64ef..968107f6 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -6323,9 +6323,6 @@ function WindowsCapabilities # Steps Recorder "App.StepsRecorder*", - # Microsoft Quick Assist - "App.Support.QuickAssist*", - # Microsoft Paint "Microsoft.Windows.MSPaint*", diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index 082ddcb0..e66992a9 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -10,9 +10,7 @@ Thanks to all https://forum.ru-board.com members involved .NOTES - Supported Windows 10 version - Version: 1809 - Edition: Enterprise LTSC + Supported Windows 10 Enterprise LTSC 2019 Architecture: x64 .LINK GitHub diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 index 9285550d..3154895e 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1 @@ -24,9 +24,7 @@ irm script.sophi.app -useb | iex .NOTES - Supported Windows 10 version - Version: 1809 - Edition: Enterprise LTSC 2019 + Supported Windows 10 Enterprise LTSC 2019 Architecture: x64 .NOTES diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 96ed6452..268e07ef 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -10,9 +10,7 @@ Thanks to all https://forum.ru-board.com members involved .NOTES - Supported Windows 10 version - Version: 21H2 - Edition: Enterprise LTSC 2021 + Supported Windows 10 Enterprise LTSC 2021 Architecture: x64 .LINK GitHub @@ -1706,7 +1704,7 @@ function ScheduledTasks Add-Type -AssemblyName System.Windows.Forms # We cannot use Get-Process -Id $PID as script might be invoked via Terminal with different $PID - Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC")} | ForEach-Object -Process { + Get-Process | Where-Object -FilterScript {(($_.ProcessName -eq "powershell") -or ($_.ProcessName -eq "WindowsTerminal")) -and ($_.MainWindowTitle -match "Sophia Script for Windows 10 LTSC 2021")} | ForEach-Object -Process { # Show window, if minimized [WinAPI.ForegroundWindow]::ShowWindowAsync($_.MainWindowHandle, 10) diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 index dbcfa118..772ab8c9 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1 @@ -24,9 +24,7 @@ irm script.sophi.app -useb | iex .NOTES - Supported Windows 10 version - Version: 21H2 - Edition: Enterprise LTSC 2021 + Supported Windows 10 Enterprise LTSC 2021 Architecture: x64 .NOTES diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index f30c091f..c346f8b0 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -6335,9 +6335,6 @@ function WindowsCapabilities # Steps Recorder "App.StepsRecorder*", - # Microsoft Quick Assist - "App.Support.QuickAssist*", - # Microsoft Paint "Microsoft.Windows.MSPaint*", diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index 888d4037..eb59a248 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -5916,9 +5916,6 @@ function WindowsCapabilities # Steps Recorder "App.StepsRecorder*", - # Microsoft Quick Assist - "App.Support.QuickAssist*", - # WordPad "Microsoft.Windows.WordPad*" ) diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Functions.ps1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Functions.ps1 new file mode 100644 index 00000000..c00dd7e9 --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Functions.ps1 @@ -0,0 +1,196 @@ +<# + .SYNOPSIS + The TAB completion for functions and their arguments + + Version: v6.6.9 + Date: 04.10.2024 + + Copyright (c) 2014—2024 farag, Inestic & lowl1f3 + + Thanks to all https://forum.ru-board.com members involved + + .DESCRIPTION + Dot source the script first: . .\Function.ps1 (with a dot at the beginning) + Start typing any characters contained in the function's name or its arguments, and press the TAB button + + .EXAMPLE + Sophia -Functions + Sophia -Functions temp + Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps + + .NOTES + Use commas to separate funtions + + .LINK + https://github.com/farag2/Sophia-Script-for-Windows +#> + +#Requires -RunAsAdministrator +#Requires -Version 5.1 + +function Sophia +{ + [CmdletBinding()] + param + ( + [Parameter(Mandatory = $false)] + [string[]] + $Functions + ) + + foreach ($Function in $Functions) + { + Invoke-Expression -Command $Function + } + + # The "PostActions" and "Errors" functions will be executed at the end + Invoke-Command -ScriptBlock {PostActions; Errors} +} + +Clear-Host + +$Host.UI.RawUI.WindowTitle = "Sophia Script for Windows 11 v6.6.9 | Made with $([System.Char]::ConvertFromUtf32(0x1F497)) of Windows | $([System.Char]0x00A9) farag, Inestic & lowl1f3, 2014$([System.Char]0x2013)2024" + +Remove-Module -Name Sophia -Force -ErrorAction Ignore +Import-Module -Name $PSScriptRoot\Manifest\Sophia.psd1 -PassThru -Force + +Import-LocalizedData -BindingVariable Global:Localization -FileName Sophia -BaseDirectory $PSScriptRoot\Localizations + +# The mandatory checks. Please, do not comment out this function +InitialActions + +$Parameters = @{ + CommandName = "Sophia" + ParameterName = "Functions" + ScriptBlock = { + param + ( + $commandName, + $parameterName, + $wordToComplete, + $commandAst, + $fakeBoundParameters + ) + + # Get functions list with arguments to complete + $Commands = (Get-Module -Name Sophia).ExportedCommands.Keys + foreach ($Command in $Commands) + { + $ParameterSets = (Get-Command -Name $Command).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames} + + # If a module command is OneDrive + if ($Command -eq "OneDrive") + { + (Get-Command -Name $Command).Name | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} + + # Get all command arguments, excluding defaults + foreach ($ParameterSet in $ParameterSets.Name) + { + # If an argument is AllUsers + if ($ParameterSet -eq "AllUsers") + { + # The "OneDrive -Install -AllUsers" construction + "OneDrive" + " " + "-Install" + " " + "-" + $ParameterSet | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + } + + continue + } + } + + # If a module command is UninstallUWPApps + if ($Command -eq "UninstallUWPApps") + { + (Get-Command -Name $Command).Name | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} + + # Get all command arguments, excluding defaults + foreach ($ParameterSet in $ParameterSets.Name) + { + # If an argument is ForAllUsers + if ($ParameterSet -eq "ForAllUsers") + { + # The "UninstallUWPApps -ForAllUsers" construction + "UninstallUWPApps" + " " + "-" + $ParameterSet | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + } + + continue + } + } + + # If a module command is InstallDotNetRuntimes + if ($Command -eq "InstallDotNetRuntimes") + { + # Get all command arguments, excluding defaults + foreach ($ParameterSet in $ParameterSets.Name) + { + # If an argument is Runtimes + if ($ParameterSet -eq "Runtimes") + { + $ValidValues = ((Get-Command -Name InstallDotNetRuntimes).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues + foreach ($ValidValue in $ValidValues) + { + # The "InstallDotNetRuntimes -Runtimes " construction + "InstallDotNetRuntimes" + " " + "-" + $ParameterSet + " " + $ValidValue | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + } + + # The "InstallDotNetRuntimes -Runtimes " construction + "InstallDotNetRuntimes" + " " + "-" + $ParameterSet + " " + ($ValidValues -join ", ") | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + } + + continue + } + } + + # If a module command is DNSoverHTTPS + if ($Command -eq "DNSoverHTTPS") + { + (Get-Command -Name $Command).Name | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} + + # Get the valid IPv4 addresses array + # ((Get-Command -Name DNSoverHTTPS).Parametersets.Parameters | Where-Object -FilterScript {$null -eq $_.Attributes.AliasNames}).Attributes.ValidValues | Select-Object -Unique + $ValidValues = @((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object {$_ -notmatch ":"} + foreach ($ValidValue in $ValidValues) + { + $ValidValuesDescending = @((Get-ChildItem -Path HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\DohWellKnownServers).PSChildName) | Where-Object {$_ -notmatch ":"} + foreach ($ValidValueDescending in $ValidValuesDescending) + { + # The "DNSoverHTTPS -Enable -PrimaryDNS x.x.x.x -SecondaryDNS x.x.x.x" construction + "DNSoverHTTPS -Enable -PrimaryDNS $ValidValue -SecondaryDNS $ValidValueDescending" | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + } + } + + "DNSoverHTTPS -Disable" | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + "DNSoverHTTPS -ComssOneDNS" | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + + continue + } + + # If a module command is Set-Policy + if ($Command -eq "Set-Policy") + { + continue + } + + foreach ($ParameterSet in $ParameterSets.Name) + { + # The "Function -Argument" construction + $Command + " " + "-" + $ParameterSet | Where-Object -FilterScript {$_ -like "*$wordToComplete*"} | ForEach-Object -Process {"`"$_`""} + + continue + } + + # Get functions list without arguments to complete + Get-Command -Name $Command | Where-Object -FilterScript {$null -eq $_.Parametersets.Parameters} | Where-Object -FilterScript {$_.Name -like "*$wordToComplete*"} + + continue + } + } +} +Register-ArgumentCompleter @Parameters + +Write-Information -MessageData "" -InformationAction Continue +Write-Verbose -Message "Sophia -Functions " -Verbose +Write-Verbose -Message "Sophia -Functions temp" -Verbose +Write-Verbose -Message "Sophia -Functions `"DiagTrackService -Disable`", `"DiagnosticDataLevel -Minimal`", UninstallUWPApps" -Verbose +Write-Information -MessageData "" -InformationAction Continue +Write-Verbose -Message "Sophia -Functions `"UninstallUWPApps, `"PinToStart -UnpinAll`" -Verbose" +Write-Verbose -Message "Sophia -Functions `"Set-Association -ProgramPath ```"%ProgramFiles%\Notepad++\notepad++.exe```" -Extension .txt -Icon ```"%ProgramFiles%\Notepad++\notepad++.exe,0```"`"" -Verbose diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/de-DE/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/de-DE/Sophia.psd1 new file mode 100644 index 00000000..a2c14bae --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/de-DE/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = Das Skript unterstützt Windows 11 24H2. +UpdateWarning = Ihr Windows 11-Build: {0}.{1}. Unterstützter Builds: {2}+. Führen Sie Windows Update aus und versuchen Sie es erneut. +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. Das Skript in der entsprechenden PowerShell-Version ausführen. +PowerShellx86Warning = Sie versuchen ein Skript über PowerShell (x86). Führen Sie das Skript in PowerShell (x64) aus. +UnsupportedHost = Das Skript unterstützt nicht die Ausführung über {0}. +Win10TweakerWarning = Wahrscheinlich wurde Ihr Betriebssystem über die Win 10 Tweaker-Hintertür infiziert. +TweakerWarning = Die Stabilität des Windows-Betriebssystems kann durch die Verwendung des {0} beeinträchtigt worden sein. Installieren Sie Windows vorsichtshalber neu. +Bin = Im Ordner "bin" befinden sich keine Dateien. Bitte das Archiv erneut herunterladen. +RebootPending = Der PC wartet darauf, neu gestartet zu werden. +UnsupportedRelease = Neue Version gefunden. +KeyboardArrows = Bitte verwenden Sie die Pfeiltasten {0} und {1} auf Ihrer Tastatur, um Ihre Antwort auszuwählen +CustomizationWarning = Haben Sie alle Funktionen in der voreingestellten Datei {0} angepasst, bevor Sie Sophia Script ausführen? +WindowsComponentBroken = {0} defekt oder aus dem Betriebssystem entfernt. +UpdateDefender = Die Microsoft Defender-Definitionen sind veraltet. Führen Sie Windows Update aus und versuchen Sie es erneut. +ControlledFolderAccessDisabled = Kontrollierter Ordnerzugriff deaktiviert. +InitialActionsCheckFailed = Die Funktion "InitialActions" kann nicht aus der Voreinstellungsdatei {0} geladen werden. +ScheduledTasks = Geplante Aufgaben +OneDriveUninstalling = OneDrive deinstallieren... +OneDriveInstalling = OneDrive installieren... +OneDriveDownloading = OneDrive herunterladen... +OneDriveWarning = Die "{0}"-Funktion wird nur angewendet, wenn die Voreinstellung so konfiguriert ist, dass OneDrive entfernt wird (oder die App bereits entfernt wurde), andernfalls wird die Backup-Funktionalität für die Ordner "Desktop" und "Bilder" in OneDrive unterbrochen. +WindowsFeaturesTitle = Windows-Features +OptionalFeaturesTitle = Optionale Features +EnableHardwareVT = Virtualisierung in UEFI aktivieren. +UserShellFolderNotEmpty = Im Ordner "{0}" befinden sich noch Dateien \nVerschieben Sie sie manuell an einen neuen Ort. +UserFolderLocationMove = Sie sollten den Speicherort des Benutzerordners nicht in das Stammverzeichnis des Laufwerks C ändern. +RetrievingDrivesList = Laufwerksliste abrufen... +DriveSelect = Wählen Sie das Laufwerk aus, in dessen Stammverzeichnis der Ordner "{0}" erstellt werden soll. +CurrentUserFolderLocation = Der aktuelle Speicherort des Ordners "{0}" lautet: "{1}". +UserFolderRequest = Möchten Sie den Speicherort des Ordners "{0}" ändern? +UserDefaultFolder = Möchten Sie den Speicherort des Ordners "{0}" auf den Standardwert ändern? +ReservedStorageIsInUse = Dieser Vorgang wird nicht unterstützt, wenn reservierter Speicher verwendet wird\nBitte führen Sie die Funktion "{0}" nach dem PC-Neustart erneut aus. +ShortcutPinning = Die Verknüpfung "{0}" wird an Start angeheftet... +SSDRequired = Um Windows Subsystem für Android™ auf Ihrem Gerät zu verwenden, muss auf Ihrem PC ein Solid State Drive (SSD) installiert sein. +UninstallUWPForAll = Für alle Benutzer +UWPAppsTitle = UWP-Apps +GraphicsPerformanceTitle = Möchten Sie die Einstellung der Grafikleistung einer App Ihrer Wahl auf "Hohe Leistung" einstellen? +ActionCenter = Um die Funktion "{0}" nutzen zu können, müssen Sie das Action Center aktivieren. +WindowsScriptHost = Der Zugriff auf Windows Script Host wurde für diesem Computer deaktiviert. Um die Funktion "{0}" nutzen zu können, müssen Sie den Windows Script Host aktivieren. +ScheduledTaskPresented = Die Funktion "{0}" wurde bereits als "{1}" angelegt. +CleanupTaskNotificationTitle = Windows aufräumen +CleanupTaskNotificationEvent = Aufgabe zum Bereinigen nicht verwendeter Windows-Dateien und -Updates ausführen? +CleanupTaskDescription = Bereinigung von nicht verwendeten Windows-Dateien und Updates mit der integrierten Festplattenbereinigung. +CleanupNotificationTaskDescription = Popup-Benachrichtigung zur Erinnerung an die Bereinigung von nicht verwendeten Windows-Dateien und Updates. +SoftwareDistributionTaskNotificationEvent = Der Windows Update-Cache wurde erfolgreich gelöscht. +TempTaskNotificationEvent = Der Ordner mit den temporären Dateien wurde erfolgreich bereinigt. +FolderTaskDescription = Ordner "{0}" bereinigen. +EventViewerCustomViewName = Prozesserstellung +EventViewerCustomViewDescription = Prozesserstellungen und Befehlszeilen-Auditing-Ereignisse. +RestartWarning = Sicherstellen, dass Sie Ihren PC neu starten. +ErrorsLine = Zeile +ErrorsMessage = Fehler/Warnungen +DialogBoxOpening = Anzeigen des Dialogfensters... +Disable = Deaktivieren +Enable = Aktivieren +UserChoiceWarning = Microsoft hat den Schreibzugriff auf den UserChoice-Schlüssel für die .pdf-Erweiterung und das http/https-Protokoll mit der Version KB5034765 gesperrt. +AllFilesFilter = Alle Dateien +FolderSelect = Einen Ordner auswählen +FilesWontBeMoved = Dateien werden nicht verschoben. +Install = Installieren +NoData = Nichts anzuzeigen. +NoInternetConnection = Keine Internetverbindung. +RestartFunction = Bitte die Funktion "{0}" neustarten. +NoResponse = Eine Verbindung mit {0} konnte nicht hergestellt werden. +Restore = Wiederherstellen +Run = Starten +Skipped = Übersprungen. +GPOUpdate = GPO-Aktualisierung... +TelegramGroupTitle = Treten Sie unserer offiziellen Telegram-Gruppe bei. +TelegramChannelTitle = Treten Sie unserem offiziellen Telegram-Kanal bei. +DiscordChannelTitle = Treten Sie unserem offiziellen Discord-Kanal bei. +Uninstall = Deinstallieren +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/en-US/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/en-US/Sophia.psd1 new file mode 100644 index 00000000..349324cf --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/en-US/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = The script supports Windows 11 24H2. +UpdateWarning = Your Windows 11 build: {0}.{1}. Supported builds: {2}+. Run Windows Update and try again. +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. +PowerShellx86Warning = You're trying to run script via PowerShell (x86). Run the script in PowerShell (x64). +UnsupportedHost = The script doesn't support running via {0}. +Win10TweakerWarning = Probably your OS was infected via the Win 10 Tweaker backdoor. +TweakerWarning = The Windows stability may have been compromised by using {0}. Just in case, reinstall Windows. +Bin = There are no files in the bin folder. Please, re-download the archive. +RebootPending = The PC is waiting to be restarted. +UnsupportedRelease = A new version found. +KeyboardArrows = Please use the arrow keys {0} and {1} on your keyboard to select your answer +CustomizationWarning = Have you customized every function in the {0} preset file before running Sophia Script? +WindowsComponentBroken = {0} broken or removed from Windows. +UpdateDefender = Microsoft Defender definitions are out-of-date. Run Windows Update and try again. +ControlledFolderAccessDisabled = Controlled folder access disabled. +InitialActionsCheckFailed = "InitialActions" function cannot be loaded from the {0} preset file. +ScheduledTasks = Scheduled tasks +OneDriveUninstalling = Uninstalling OneDrive... +OneDriveInstalling = Installing OneDrive... +OneDriveDownloading = Downloading OneDrive... +OneDriveWarning = The "{0}" function will be applied only if the preset is configured to remove OneDrive (or the app was already removed), otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks. +WindowsFeaturesTitle = Windows features +OptionalFeaturesTitle = Optional features +EnableHardwareVT = Enable Virtualization in UEFI. +UserShellFolderNotEmpty = Some files left in the "{0}" folder. Move them manually to a new location. +UserFolderLocationMove = You shouldn't change user folder location to C drive root. +RetrievingDrivesList = Retrieving drives list... +DriveSelect = Select the drive within the root of which the "{0}" folder will be created. +CurrentUserFolderLocation = The current "{0}" folder location: "{1}". +UserFolderRequest = Would you like to change the location of the "{0}" folder? +UserDefaultFolder = Would you like to change the location of the "{0}" folder to the default value? +ReservedStorageIsInUse = This operation is not supported when reserved storage is in use\nPlease re-run the "{0}" function again after PC restart. +ShortcutPinning = The "{0}" shortcut is being pinned to Start... +SSDRequired = To use Windows Subsystem for Android™ on your device, your PC needs to have Solid State Drive (SSD) installed. +UninstallUWPForAll = For all users +UWPAppsTitle = UWP Apps +GraphicsPerformanceTitle = Would you like to set the graphics performance setting of an app of your choice to "High performance"? +ActionCenter = In order to use "{0}" function you have to enable Action Center. +WindowsScriptHost = Windows Script Host access is disabled on this machine. In order to use "{0}" function you have to enable Windows Script Host. +ScheduledTaskPresented = The "{0}" function was already created as "{1}". +CleanupTaskNotificationTitle = Windows clean up +CleanupTaskNotificationEvent = Run task to clean up Windows unused files and updates? +CleanupTaskDescription = Cleaning up Windows unused files and updates using built-in Disk cleanup app. +CleanupNotificationTaskDescription = Pop-up notification reminder about cleaning up Windows unused files and updates. +SoftwareDistributionTaskNotificationEvent = Windows update cache successfully deleted. +TempTaskNotificationEvent = Temporary files folder successfully cleaned up. +FolderTaskDescription = The {0} folder cleanup. +EventViewerCustomViewName = Process Creation +EventViewerCustomViewDescription = Process creation and command-line auditing events. +RestartWarning = Make sure to restart your PC. +ErrorsLine = Line +ErrorsMessage = Errors/Warnings +DialogBoxOpening = Displaying the dialog box... +Disable = Disable +Enable = Enable +UserChoiceWarning = Microsoft has blocked write access to UserChoice key for .pdf extention and http/https protocols with KB5034765 release. +AllFilesFilter = All Files +FolderSelect = Select a folder +FilesWontBeMoved = Files will not be moved. +Install = Install +NoData = Nothing to display. +NoInternetConnection = No Internet connection. +RestartFunction = Please re-run the "{0}" function. +NoResponse = A connection could not be established with {0}. +Restore = Restore +Run = Run +Skipped = Skipped. +GPOUpdate = Updating GPO... +TelegramGroupTitle = Join our official Telegram group. +TelegramChannelTitle = Join our official Telegram channel. +DiscordChannelTitle = Join our official Discord channel. +Uninstall = Uninstall +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/es-ES/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/es-ES/Sophia.psd1 new file mode 100644 index 00000000..bd98479e --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/es-ES/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = El script es compatible con Windows 11 24H2. +UpdateWarning = Su build de Windows 11: {0}.{1}. Compilaciones compatibles: {2}+. Ejecute Windows Update y vuelva a intentarlo. +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. +PowerShellx86Warning = Está intentando ejecutar el script a través de PowerShell (x86). Ejecute el script en PowerShell (x64). +UnsupportedHost = El script no es compatible con la ejecución a través de {0}. +Win10TweakerWarning = Probablemente su sistema operativo fue infectado a través del backdoor Win 10 Tweaker. +TweakerWarning = La estabilidad del sistema operativo Windows puede haberse visto comprometida al utilizar el {0}. Por si acaso, reinstala Windows. +Bin = No hay archivos en la carpeta bin. Por favor, vuelva a descargar el archivo. +RebootPending = El PC está esperando a ser reiniciado. +UnsupportedRelease = Una nueva versión encontrada. +KeyboardArrows = Utilice las flechas {0} y {1} de su teclado para seleccionar la respuesta +CustomizationWarning = ¿Ha personalizado todas las funciones del archivo predeterminado {0} antes de ejecutar Sophia Script? +WindowsComponentBroken = {0} dañado o eliminado del sistema operativo. +UpdateDefender = Las definiciones de Microsoft Defender no están actualizadas. Ejecute Windows Update y vuelva a intentarlo. +ControlledFolderAccessDisabled = Acceso a la carpeta controlada deshabilitado. +InitialActionsCheckFailed = La función "InitialActions" no se puede cargar desde el archivo de preajuste {0}. +ScheduledTasks = Tareas programadas +OneDriveUninstalling = Desinstalar OneDrive... +OneDriveInstalling = Instalación de OneDrive... +OneDriveDownloading = Descargando OneDrive... +OneDriveWarning = La función "{0}" se aplicará sólo si el preajuste está configurado para eliminar OneDrive (o la aplicación ya fue eliminada), 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 +EnableHardwareVT = Habilitar la virtualización en UEFI. +UserShellFolderNotEmpty = Algunos archivos quedan en la carpeta "{0}". Moverlos manualmente a una nueva ubicación. +UserFolderLocationMove = No deberías cambiar la ubicación de la carpeta de usuario a la raíz de la unidad C. +RetrievingDrivesList = Recuperando lista de unidades... +DriveSelect = Seleccione la unidad dentro de la raíz de la cual se creó la carpeta "{0}". +CurrentUserFolderLocation = La ubicación actual de la carpeta "{0}": "{1}". +UserFolderRequest = ¿Le gustaría cambiar la ubicación de la "{0}" carpeta? +UserDefaultFolder = ¿Le gustaría cambiar la ubicación de la carpeta "{0}" para el valor por defecto? +ReservedStorageIsInUse = Esta operación no es compatible cuando el almacenamiento reservada está en uso\nPor favor, vuelva a ejecutar la función "{0}" después de reiniciar el PC. +ShortcutPinning = El acceso directo "{0}" está siendo clavado en Start... +SSDRequired = Para utilizar Windows Subsystem for Android™ en su dispositivo, su PC debe tener instalada una unidad de estado sólido (SSD). +UninstallUWPForAll = Para todos los usuarios +UWPAppsTitle = Aplicaciones UWP +GraphicsPerformanceTitle = ¿Le gustaría establecer la configuración de rendimiento gráfico de una aplicación de su elección a "alto rendimiento"? +ActionCenter = Um die Funktion "{0}" nutzen zu können, müssen Sie das Action Center aktivieren. +WindowsScriptHost = Acceso a Windows Script Host deshabilitado en este equipo. Um die Funktion "{0}" nutzen zu können, müssen Sie den Windows Script Host aktivieren. +ScheduledTaskPresented = La función "{0}" ya fue creada como "{1}". +CleanupTaskNotificationTitle = Limpieza de Windows +CleanupTaskNotificationEvent = ¿Ejecutar la tarea de limpiar los archivos no utilizados y actualizaciones de Windows? +CleanupTaskDescription = La limpieza de Windows los archivos no utilizados y actualizaciones utilizando una función de aplicación de limpieza de discos. +CleanupNotificationTaskDescription = Pop-up recordatorio de notificaciones sobre la limpieza de archivos no utilizados de Windows y actualizaciones. +SoftwareDistributionTaskNotificationEvent = La caché de actualización de Windows eliminado correctamente. +TempTaskNotificationEvent = Los archivos de la carpeta Temp limpiados con éxito. +FolderTaskDescription = La limpieza de la carpeta "{0}". +EventViewerCustomViewName = Creación de proceso +EventViewerCustomViewDescription = Eventos de auditoría de línea de comandos y creación de procesos. +RestartWarning = Asegúrese de reiniciar su PC. +ErrorsLine = Línea +ErrorsMessage = Errores/Advertencias +DialogBoxOpening = Viendo el cuadro de diálogo... +Disable = Desactivar +Enable = Habilitar +UserChoiceWarning = Microsoft ha bloqueado el acceso de escritura a la clave UserChoice para la extensión .pdf y el protocolo http/https con el lanzamiento de KB5034765. +AllFilesFilter = Todos los Archivos +FolderSelect = Seleccione una carpeta +FilesWontBeMoved = Los archivos no se transferirán. +Install = Instalar +NoData = Nada que mostrar. +NoInternetConnection = No hay conexión a Internet. +RestartFunction = Por favor, reinicie la función "{0}". +NoResponse = No se pudo establecer una conexión con {0}. +Restore = Restaurar +Run = Iniciar +Skipped = Omitido. +GPOUpdate = Actualización de GPO... +TelegramGroupTitle = Únete a nuestro grupo oficial de Telegram. +TelegramChannelTitle = Únete a nuestro canal oficial de Telegram. +DiscordChannelTitle = Únete a nuestro canal oficial de Discord. +Uninstall = Desinstalar +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/fr-FR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/fr-FR/Sophia.psd1 new file mode 100644 index 00000000..792551f6 --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/fr-FR/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = Le script prend en charge Windows 11 24H2. +UpdateWarning = Votre version de Windows 11 : {0}.{1}. Versions prises en charge: {2}+. Exécutez Windows Update et réessayez. +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. +PowerShellx86Warning = Vous essayez d'exécuter le script via PowerShell (x86). Exécutez le script dans PowerShell (x64). +UnsupportedHost = Le script ne supporte pas l'exécution via {0}. +Win10TweakerWarning = Votre système d'exploitation a probablement été infecté par la porte dérobée Win 10 Tweaker. +TweakerWarning = La stabilité de l'OS Windows peut avoir été compromise par l'utilisation du {0}. Au cas où, réinstallez Windows. +Bin = Il n'y a pas de fichiers dans le dossier bin. Veuillez retélécharger l'archive. +RebootPending = Le PC attend d'être redémarré. +UnsupportedRelease = Nouvelle version trouvée. +KeyboardArrows = Veuillez utiliser les touches fléchées {0} et {1} de votre clavier pour sélectionner votre réponse +CustomizationWarning = Avez-vous personnalisé chaque fonction du fichier de préréglage {0} avant d'exécuter Sophia Script? +WindowsComponentBroken = {0} cassé ou supprimé du système d'exploitation. +UpdateDefender = Les définitions de Microsoft Defender ne sont pas à jour. Exécutez Windows Update et réessayez. +ControlledFolderAccessDisabled = Contrôle d'accès aux dossiers désactivé. +InitialActionsCheckFailed = La fonction "InitialActions" ne peut pas être chargée à partir du fichier de présélection {0}. +ScheduledTasks = Tâches planifiées +OneDriveUninstalling = Désinstalltion de OneDrive... +OneDriveInstalling = Installation de OneDrive... +OneDriveDownloading = Téléchargement de OneDrive... +OneDriveWarning = La fonction "{0}" sera appliquée uniquement si le préréglage est configuré pour supprimer OneDrive (ou si l'application a déjà été supprimée), sinon la fonctionnalité de sauvegarde des dossiers "Desktop" et "Pictures" dans OneDrive s'interrompt. +WindowsFeaturesTitle = Fonctionnalités +OptionalFeaturesTitle = Fonctionnalités optionnelles +EnableHardwareVT = Activer la virtualisation dans UEFI. +UserShellFolderNotEmpty = Certains fichiers laissés dans le dossier "{0}". Déplacer les manuellement vers un nouvel emplacement. +UserFolderLocationMove = Vous ne devez pas changer l'emplacement du dossier de l'utilisateur pour la racine du lecteur C. +RetrievingDrivesList = Récupération de la liste des lecteurs... +DriveSelect = Sélectionnez le disque à la racine dans lequel le dossier "{0}" sera créé. +CurrentUserFolderLocation = L'emplacement actuel du dossier "{0}": "{1}". +UserFolderRequest = Voulez vous changer où est placé le dossier "{0}" ? +UserDefaultFolder = Voulez vous changer où est placé le dossier "{0}" à sa valeur par défaut? +ReservedStorageIsInUse = Cette opération n'est pas suppportée le stockage réservé est en cours d'utilisation\nVeuillez réexécuter la fonction "{0}" après le redémarrage du PC. +ShortcutPinning = Le raccourci "{0}" est épinglé sur Démarrer... +SSDRequired = Pour utiliser le sous-système Windows pour Android™ sur votre appareil, votre PC doit être équipé d'un lecteur à état solide (SSD). +UninstallUWPForAll = Pour tous les utilisateurs +UWPAppsTitle = Applications UWP +GraphicsPerformanceTitle = Souhaitez-vous définir le paramètre de performances graphiques d'une application de votre choix sur "Haute performance"? +ActionCenter = Pour utiliser la fonction "{0}", vous devez activer le Centre d'action. +WindowsScriptHost = L'accès à Windows Script Host est désactivé sur cette machine. Pour utiliser la fonction "{0}", vous devez activer Windows Script Host. +ScheduledTaskPresented = La fonction "{0}" a déjà été créée en tant que "{1}". +CleanupTaskNotificationTitle = Nettoyer Windows +CleanupTaskNotificationEvent = Exécuter la tâche pour nettoyer les fichiers et les mises à jour inutilisés de Windows? +CleanupTaskDescription = Nettoyage des fichiers Windows inutilisés et des mises à jour à l'aide de l'application intégrée pour le nettoyage de disque. +CleanupNotificationTaskDescription = Rappel de notification contextuelle sur le nettoyage des fichiers et des mises à jour inutilisés de Windows. +SoftwareDistributionTaskNotificationEvent = Le cache de mise à jour Windows a bien été supprimé. +TempTaskNotificationEvent = Le dossier des fichiers temporaires a été nettoyé avec succès. +FolderTaskDescription = Nettoyage du dossier "{0}". +EventViewerCustomViewName = Création du processus +EventViewerCustomViewDescription = Audit des événements de création du processus et de ligne de commande. +RestartWarning = Assurez-vous de redémarrer votre PC. +ErrorsLine = Ligne +ErrorsMessage = Erreurs/Avertissements +DialogBoxOpening = Afficher la boîte de dialogue... +Disable = Désactiver +Enable = Activer +UserChoiceWarning = Microsoft a bloqué l'accès en écriture à la clé UserChoice pour l'extension .pdf et le protocole http/https avec la version KB5034765. +AllFilesFilter = Tous les Fichiers +FolderSelect = Sélectionner un dossier +FilesWontBeMoved = Les fichiers ne seront pas déplacés. +Install = Installer +NoData = Rien à afficher. +NoInternetConnection = Pas de connexion Internet. +RestartFunction = Veuillez redémarrer la fonction "{0}". +NoResponse = Une connexion n'a pas pu être établie avec {0}. +Restore = Restaurer +Run = Démarrer +Skipped = Passé. +GPOUpdate = Mise à jour de la GPO... +TelegramGroupTitle = Rejoignez notre groupe Telegram officiel. +TelegramChannelTitle = Rejoignez notre canal Telegram officiel. +DiscordChannelTitle = Rejoignez notre canal Discord officiel. +Uninstall = Désinstaller +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/hu-HU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/hu-HU/Sophia.psd1 new file mode 100644 index 00000000..75a9f6c9 --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/hu-HU/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = A szkript támogatja a Windows 11 24H2 rendszert. +UpdateWarning = Az Ön Windows 11 építése: {0}.{1}. Támogatott buildek: {2}+. Futtassa a Windows Update programot, és próbálja meg újra. +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. +PowerShellx86Warning = A PowerShell (x86) segítségével próbálja futtatni a szkriptet. Futtassa a szkriptet a PowerShell (x64) programban. +UnsupportedHost = A szkript nem támogatja a {0} 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. +TweakerWarning = A Windows operációs rendszer stabilitását veszélyeztethette a {0}. A biztonság kedvéért telepítse újra a Windowst. +Bin = A bin mappában nincsenek fájlok. Kérjük, töltse le újra az archívumot. +RebootPending = A számítógép újraindításra vár. +UnsupportedRelease = Új verzió érhető el. +KeyboardArrows = Kérjük, használja a billentyűzet {0} és {1} nyílbillentyűit a válasz kiválasztásához +CustomizationWarning = Személyre szabott minden opciót a {0} preset fájlban, mielőtt futtatni kívánja a Sophia szkriptet? +WindowsComponentBroken = A {0} elromlott vagy eltávolították az operációs rendszerből. +UpdateDefender = A Microsoft Defender definíciói elavultak. Futtassa a Windows Update programot, és próbálja meg újra. +ControlledFolderAccessDisabled = Vezérelt mappához való hozzáférés kikapcsolva. +InitialActionsCheckFailed = Az "InitialActions" funkció nem tölthető be a {0} előre beállított fájlból. +ScheduledTasks = Ütemezett feladatok +OneDriveUninstalling = OneDrive eltávolítása... +OneDriveInstalling = OneDrive telepítése... +OneDriveDownloading = OneDrive letöltése... +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 (vagy az alkalmazás már eltávolításra került), 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. +UserShellFolderNotEmpty = Néhány fájl maradt a "{0}" könyvtárban. Kérem helyezze át ezeket egy új helyre. +UserFolderLocationMove = Nem szabad megváltoztatni a felhasználói mappa helyét a C meghajtó gyökerére. +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. +CurrentUserFolderLocation = Az aktuális "{0}" mappa helye: "{1}". +UserFolderRequest = Kívánja megváltoztatni a "{0}" könyvtár helyét? +UserDefaultFolder = Szeretné visszaállítani a "{0}" könyvtár helyét a gyári értékekre? +ReservedStorageIsInUse = Ez a művelet nem hajtható végre, amíg a fenntartott tárhely használatban van\nPonovno pokrenite funkciju "{0}" nakon ponovnog pokretanja računala. +ShortcutPinning = A gyorsindító ikon "{0}" Startmenüre helyezése... +SSDRequired = A Windows Subsystem for Android™ használatához a készüléken a számítógépen szilárdtest-meghajtónak (SSD) kell telepítve lennie. +UninstallUWPForAll = Az összes felhasználó számára +UWPAppsTitle = UWP Alkalmazások +GraphicsPerformanceTitle = Szeretné megváltoztatni a grafikus teljesítmény beállítást az ön által kiválasztott alkalmazásban "Nagy teljesítményre"? +ActionCenter = Az "{0}" funkció használatához engedélyeznie kell az Action Center funkciót. +WindowsScriptHost = A Windows Script Host ezen a gépen nem érhető el. Az "{0}" funkció használatához engedélyeznie kell a Windows Script Host. +ScheduledTaskPresented = A "{0}" funkciót már létrehoztuk "{1}" néven. +CleanupTaskNotificationTitle = Windows tisztítása +CleanupTaskNotificationEvent = Szeretné a nem használt fájlokat es frissitéseket eltávolítani? +CleanupTaskDescription = A nem használt Windows fájlok és frissítések eltávolítása a beépített lemezkarbantartó alkalmazással. +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. +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 +ErrorsMessage = Hibák/Figyelmeztetések +DialogBoxOpening = Párbeszédablak megjelenítése... +Disable = Kikapcsolás +Enable = Engedélyezés +UserChoiceWarning = A Microsoft a KB5034765 kiadással blokkolta a UserChoice kulcs írási hozzáférését a .pdf kiterjesztéshez és a http/https protokollhoz. +AllFilesFilter = Minden fájl +FolderSelect = Válasszon ki egy könyvtárat +FilesWontBeMoved = A fájlok nem lesznek áthelyezve. +Install = Telepítés +NoData = Nincs megjeleníthető információ. +NoInternetConnection = Nincs internetkapcsolat. +RestartFunction = Ponovo pokrenite funkciju "{0}". +NoResponse = Nem hozható létre kapcsolat a {0} weboldallal. +Restore = Visszaállítás +Run = Futtatás +Skipped = Átugorva. +GPOUpdate = GPO frissítése... +TelegramGroupTitle = Pridružite se našoj službenoj grupi Telegram. +TelegramChannelTitle = Pridružite se našem službenom kanalu Telegram. +DiscordChannelTitle = Pridružite se našem službenom kanalu Discord. +Uninstall = Eltávolít +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/it-IT/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/it-IT/Sophia.psd1 new file mode 100644 index 00000000..43ab0ba4 --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/it-IT/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = Lo script supporta Windows 11 24H2. +UpdateWarning = La tua build di Windows 11 {0}.{1} non è supportata. Build supportate: {2}+. Eseguire Windows Update e riprovare. +UnsupportedLanguageMode = La sessione PowerShell è in esecuzione in modalità lingua limitata. +LoggedInUserNotAdmin = L'utente in suo 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. +PowerShellx86Warning = Si sta cercando di eseguire lo script tramite PowerShell (x86). Eseguire lo script in PowerShell (x64). +UnsupportedHost = Lo script non supporta l'esecuzione tramite {0}. +Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite una backdoor in Win 10 Tweaker. +TweakerWarning = La stabilità del sistema operativo Windows potrebbe essere stata compromessa dall'utilizzo dello {0}. Per sicurezza, reinstallare Windows. +Bin = Non ci sono file nella cartella bin. Per favore, scarica di nuovo l'archivio. +RebootPending = Il PC è in attesa di essere riavviato. +UnsupportedRelease = Nuova versione trovata. +KeyboardArrows = Per selezionare la risposta, utilizzare i tasti freccia "{0}" e "{1}" della tastiera +CustomizationWarning = Sono state personalizzate tutte le funzioni nel file di configurazione {0} prima di eseguire Sophia Script? +WindowsComponentBroken = {0} rimosso dal sistema. +UpdateDefender = Le definizioni di Microsoft Defender non sono aggiornate. Eseguire Windows Update e riprovare. +ControlledFolderAccessDisabled = l'accesso alle cartelle controllata disattivata. +InitialActionsCheckFailed = La funzione "InitialActions" non può essere caricata dal file di preselezione {0}. +ScheduledTasks = Attività pianificate +OneDriveUninstalling = Disinstallazione di OneDrive... +OneDriveInstalling = Installazione di OneDrive... +OneDriveDownloading = Download di OneDrive... +OneDriveWarning = La funzione "{0}" sarà applicata solo se il preset è configurato per rimuovere OneDrive (o se l'app è già stata rimossa), altrimenti la funzionalità di backup per le cartelle "Desktop" e "Pictures" in OneDrive si interromperà. +WindowsFeaturesTitle = Funzionalità di Windows +OptionalFeaturesTitle = Caratteristiche opzionali +EnableHardwareVT = Abilita virtualizzazione in UEFI. +UserShellFolderNotEmpty = Alcuni file rimasti nella cartella "{0}". Spostali manualmente in una nuova posizione. +UserFolderLocationMove = Non si dovrebbe modificare la posizione della cartella utente nella radice dell'unità C. +RetrievingDrivesList = Recupero lista unità... +DriveSelect = Selezionare l'unità all'interno della radice del quale verrà creato la cartella "{0}" . +CurrentUserFolderLocation = La posizione attuale della cartella "{0}": "{1}". +UserFolderRequest = Volete cambiare la posizione della cartella "{0}"? +UserDefaultFolder = Volete cambiare la posizione della cartella "{0}" al valore di default? +ReservedStorageIsInUse = Questa operazione non è supportata quando spazio riservato è in uso Si prega di eseguire nuovamente la funzione "{0}" dopo il riavvio del PC. +ShortcutPinning = Il collegamento "{0}" è stato bloccato... +SSDRequired = Per utilizzare Windows Subsystem for Android™ sul proprio dispositivo, è necessario che sul PC sia installata un'unità a stato solido (SSD). +UninstallUWPForAll = Per tutti gli utenti +UWPAppsTitle = UWP Apps +GraphicsPerformanceTitle = Volete impostare l'impostazione delle prestazioni grafiche di un app di vostra scelta a "Prestazioni elevate"? +ActionCenter = Per utilizzare la funzione "{0}" è necessario attivare il Centro operativo. +WindowsScriptHost = Accesso a Windows Script Host disabilitato sul computer in uso. Per utilizzare la funzione "{0}" è necessario abilitare Windows Script Host. +ScheduledTaskPresented = La funzione "{0}" è già stata creata come "{1}". +CleanupTaskNotificationTitle = Pulizia di Windows +CleanupTaskNotificationEvent = Eseguire l'operazione di pulizia dei file inutilizzati e aggiornamenti di Windows? +CleanupTaskDescription = Pulizia di Windows e dei file inutilizzati degli aggiornamenti utilizzando l'app built-in ""pulizia disco". +CleanupNotificationTaskDescription = Pop-up promemoria di pulizia dei file inutilizzati e degli aggiornamenti di Windows. +SoftwareDistributionTaskNotificationEvent = La cache degli aggiornamenti di Windows cancellata con successo. +TempTaskNotificationEvent = I file cartella Temp puliti con successo. +FolderTaskDescription = Pulizia della cartella "{0}". +EventViewerCustomViewName = Creazione del processo +EventViewerCustomViewDescription = Creazione del processi e degli eventi di controllo della riga di comando. +RestartWarning = Assicurarsi di riavviare il PC. +ErrorsLine = Linea +ErrorsMessage = Errori/avvisi +DialogBoxOpening = Visualizzazione della finestra di dialogo... +Disable = Disattivare +Enable = Abilitare +UserChoiceWarning = Microsoft ha bloccato l'accesso in scrittura alla chiave UserChoice per l'estensione .pdf e il protocollo http/https con il rilascio della KB5034765. +AllFilesFilter = Tutti i file +FolderSelect = Selezionare una cartella +FilesWontBeMoved = I file non verranno trasferiti. +Install = Installare +NoData = Niente da esposizione. +NoInternetConnection = Nessuna connessione Internet. +RestartFunction = Si prega di riavviare la funzione "{0}". +NoResponse = Non è stato possibile stabilire una connessione con {0}. +Restore = Ristabilire +Run = Eseguire +Skipped = Saltato. +GPOUpdate = Aggiornamento GPO... +TelegramGroupTitle = Unisciti al nostro gruppo ufficiale Telegram. +TelegramChannelTitle = Unisciti al nostro canale ufficiale di Telegram. +DiscordChannelTitle = Unisciti al nostro canale ufficiale di Discord. +Uninstall = Disinstallare +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pl-PL/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pl-PL/Sophia.psd1 new file mode 100644 index 00000000..bb6b3430 --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pl-PL/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = Skrypt obsługuje system Windows 11 24H2. +UpdateWarning = Twoja wersja systemu Windows 11: {0}.{1}. Obsługiwane kompilacje: {2}+. Uruchom aktualizację systemu Windows i spróbuj ponownie. +UnsupportedLanguageMode = Sesja PowerShell działa w trybie ograniczonego języka. +LoggedInUserNotAdmin = Zalogowany użytkownik nie posiada uprawnień administratora. +UnsupportedPowerShell = Próbujesz uruchomić skrypt przy użyciu PowerShell {0}.{1}. Uruchom skrypt używając odpowiedniej wersji PowerShell. +PowerShellx86Warning = Próbujesz uruchomić skrypt przez PowerShell (x86). Uruchom skrypt w PowerShell (x64). +UnsupportedHost = Skrypt nie może być uruchamiany w {0}. +Win10TweakerWarning = Prawdopodobnie twój system operacyjny został zainfekowany przez backdoora pochodzącego z Win 10 Tweaker. +TweakerWarning = Stabilność systemu Windows mogła zostać naruszona przez użycie {0}. Na wszelki wypadek przeinstaluj system Windows. +Bin = W folderze bin nie ma żadnych plików. Proszę pobrać archiwum ponownie. +RebootPending = Komputer oczekuje na ponowne uruchomienie. +UnsupportedRelease = Znaleziono nową wersję. +KeyboardArrows = Użyj klawiszy strzałek {0} i {1} na klawiaturze, aby wybrać odpowiedź +CustomizationWarning = Czy dostosowałeś funkcje w predefiniowanym pliku {0} przed uruchomieniem Sophia Script? +WindowsComponentBroken = {0} jest uszkodzony lub usunięty z systemu operacyjnego. +UpdateDefender = Definicje programu Microsoft Defender są nieaktualne. Uruchom aktualizację systemu Windows i spróbuj ponownie. +ControlledFolderAccessDisabled = Kontrolowany dostęp do folderów został wyłączony. +InitialActionsCheckFailed = Funkcja "InitialActions" nie może zostać załadowana z pliku ustawień wstępnych {0}. +ScheduledTasks = Zaplanowane zadania +OneDriveUninstalling = Odinstalowywanie OneDrive... +OneDriveInstalling = Instalowanie OneDrive... +OneDriveDownloading = Pobieranie OneDrive... +OneDriveWarning = Funkcja "{0}" zostanie zastosowana tylko wtedy, gdy ustawienie wstępne są skonfigurowane do usunięcia OneDrive (lub aplikacja została już usunięta), w przeciwnym razie funkcja tworzenia kopii zapasowych folderów "Pulpit" i "Obrazy" w usłudze OneDrive ulegnie awarii. +WindowsFeaturesTitle = Funkcje Windows +OptionalFeaturesTitle = Funkcje opcjonalne +EnableHardwareVT = Włącz wirtualizację w UEFI. +UserShellFolderNotEmpty = Niektóre pliki pozostały w folderze "{0}". Przenieś je ręcznie w nowe miejsce. +UserFolderLocationMove = Nie należy zmieniać lokalizacji folderu użytkownika na katalog główny dysku C. +RetrievingDrivesList = Pobieranie listy dysków... +DriveSelect = Wybierz dysk w katalogu głównym, w którym zostanie utworzony folder "{0}". +CurrentUserFolderLocation = Lokalizacja folderu "{0}": "{1}". +UserFolderRequest = Czy chcesz zmienić lokalizację folderu "{0}"? +UserDefaultFolder = Czy chcesz zmienić lokalizację folderu "{0}" na wartość domyślną? +ReservedStorageIsInUse = Ta operacja nie jest obsługiwana, gdy używana jest zarezerwowana pamięć\nProszę ponownie uruchomić funkcję "{0}" po ponownym uruchomieniu komputera. +ShortcutPinning = Skrót "{0}" jest przypinany do Start... +SSDRequired = By korzystać z podsystemu Windows dla systemu Android™ urządzenie musi być wyposażone w dysk SSD. +UninstallUWPForAll = Dla wszystkich użytkowników +UWPAppsTitle = Aplikacje UWP +GraphicsPerformanceTitle = Czy chcesz ustawić wydajność grafiki wybranej aplikacji na "Wysoka wydajność"? +ActionCenter = Aby korzystać z funkcji "{0}" należy włączyć Action Center. +WindowsScriptHost = Dostęp do Hosta skryptów systemu Windows jest wyłączony na tym komputerze. Aby korzystać z funkcji "{0}" należy włączyć Windows Script Host. +ScheduledTaskPresented = Funkcja "{0}" została już utworzona jako "{1}". +CleanupTaskNotificationTitle = Oczyszczanie system Windows +CleanupTaskNotificationEvent = Uruchomić zadanie w celu usunięcia nieużywanych plików i aktualizacji systemu Windows? +CleanupTaskDescription = Czyszczenie nieużywanych plików i aktualizacji systemu Windows za pomocą wbudowanej aplikacji do czyszczenia dysku. +CleanupNotificationTaskDescription = Powiadomienie przypominające o czyszczeniu nieużywanych plików i aktualizacji systemu Windows. +SoftwareDistributionTaskNotificationEvent = Pomyślnie usunięto pamięć podręczną aktualizacji systemu Windows. +TempTaskNotificationEvent = Folder plików tymczasowych został pomyślnie wyczyszczony. +FolderTaskDescription = Czyszczenie folderu {0}. +EventViewerCustomViewName = Tworzenie procesu +EventViewerCustomViewDescription = Tworzenie procesu i zdarzeń audytu. +RestartWarning = Pamiętaj o ponownym uruchomieniu komputera. +ErrorsLine = Linia +ErrorsMessage = Błędy/Ostrzeżenia +DialogBoxOpening = Wyświetlanie okna dialogowego... +Disable = Wyłączyć +Enable = Włączać +UserChoiceWarning = Microsoft zablokował dostęp do zapisu klucza UserChoice dla rozszerzenia .pdf i protokołu http/https wraz z wydaniem KB5034765. +AllFilesFilter = Wszystkie pliki +FolderSelect = Wybierz folder +FilesWontBeMoved = Pliki nie zostaną przeniesione. +Install = Zainstalluj +NoData = Nic do wyświetlenia. +NoInternetConnection = Brak połączenia z internetem. +RestartFunction = Uruchom ponownie funkcję "{0}". +NoResponse = Nie można nawiązać połączenia z {0}. +Restore = Przywróć +Run = Uruchom +Skipped = Pominięto. +GPOUpdate = Aktualizowanie GPO... +TelegramGroupTitle = Dołącz do naszej oficjalnej grupy na Telegramie. +TelegramChannelTitle = Dołącz do naszego oficjalnego kanału Telegram. +DiscordChannelTitle = Dołącz do naszego oficjalnego kanału na Discordzie. +Uninstall = Odinstaluj +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pt-BR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pt-BR/Sophia.psd1 new file mode 100644 index 00000000..644b4126 --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/pt-BR/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = O script suporta Windows 11 24H2. +UpdateWarning = La tua build di Windows 11: {0}.{1}. Build suportadas: {2}+. Execute o Windows Update e tente novamente. +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. +PowerShellx86Warning = Você está tentando executar o script via PowerShell (x86). Execute o script no PowerShell (x64). +UnsupportedHost = O guião não suporta a execução através do {0}. +Win10TweakerWarning = Probabilmente il tuo sistema operativo è stato infettato tramite la backdoor Win 10 Tweaker. +TweakerWarning = A estabilidade do sistema operacional Windows pode ter sido comprometida pela utilização do {0}. Só por precaução, reinstale o Windows. +Bin = Não existem ficheiros na pasta bin. Por favor, volte a descarregar o arquivo. +RebootPending = O PC está esperando para ser reiniciado. +UnsupportedRelease = Nova versão encontrada. +KeyboardArrows = Use as teclas de seta {0} e {1} do teclado para selecionar sua resposta +CustomizationWarning = Você personalizou todas as funções no arquivo de predefinição {0} antes de executar o Sophia Script? +WindowsComponentBroken = {0} quebrado ou removido do sistema operativo. +UpdateDefender = As definições do Microsoft Defender estão desatualizadas. Execute o Windows Update e tente novamente. +ControlledFolderAccessDisabled = Acesso controlado a pasta desativada. +InitialActionsCheckFailed = A função "InitialActions" não pode ser carregada do arquivo de predefinição {0}. +ScheduledTasks = Tarefas agendadas +OneDriveUninstalling = Desinstalar OneDrive... +OneDriveInstalling = Instalar o OneDrive... +OneDriveDownloading = Baixando OneDrive... +OneDriveWarning = A função "{0}" será aplicada somente se a predefinição for configurada para remover o OneDrive (ou a aplicação já foi removida), 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. +UserShellFolderNotEmpty = Alguns arquivos deixados na pasta "{0}". Movê-los manualmente para um novo local. +UserFolderLocationMove = Você não deve alterar o local da pasta do usuário para a raiz da unidade C. +RetrievingDrivesList = Recuperando lista de unidades... +DriveSelect = Selecione a unidade dentro da raiz da qual a pasta "{0}" será criada. +CurrentUserFolderLocation = A localização actual da pasta "{0}": "{1}". +UserFolderRequest = Gostaria de alterar a localização da pasta "{0}"? +UserDefaultFolder = Gostaria de alterar a localização da pasta "{0}" para o valor padrão? +ReservedStorageIsInUse = Esta operação não é suportada quando o armazenamento reservada está em uso\nFavor executar novamente a função "{0}" após o reinício do PC. +ShortcutPinning = O atalho "{0}" está sendo fixado no Iniciar... +SSDRequired = Para utilizar o Subsistema Windows para Android™ no seu dispositivo, o seu PC necessita de ter a unidade de estado sólido (SSD) instalada. +UninstallUWPForAll = Para todos os usuários... +UWPAppsTitle = Apps UWP +GraphicsPerformanceTitle = Gostaria de definir a configuração de performance gráfica de um app de sua escolha para "alta performance"? +ActionCenter = Para utilizar a função {0}", tem de activar o Centro de Acção. +WindowsScriptHost = O acesso ao Windows Script Host está desactivado neste computador. Para usar a função "{0}", é necessário ativar o Windows Script Host. +ScheduledTaskPresented = A função "{0}" já foi criada como "{1}". +CleanupTaskNotificationTitle = Limpeza do Windows +CleanupTaskNotificationEvent = Executar tarefa para limpar arquivos e atualizações não utilizados do Windows? +CleanupTaskDescription = Limpando o Windows arquivos não utilizados e atualizações usando o aplicativo de limpeza aplicativo de limpeza embutido no disco. +CleanupNotificationTaskDescription = Pop-up lembrete de notificação sobre a limpeza do Windows arquivos não utilizados e actualizações. +SoftwareDistributionTaskNotificationEvent = O cache de atualização do Windows excluído com sucesso. +TempTaskNotificationEvent = Os arquivos da pasta Temp limpos com sucesso. +FolderTaskDescription = A limpeza da pasta "{0}". +EventViewerCustomViewName = Criação de processo +EventViewerCustomViewDescription = Criação de processos e eventos de auditoria de linha de comando. +RestartWarning = Certifique-se de reiniciar o PC. +ErrorsLine = Linha +ErrorsMessage = Erros/Avisos +DialogBoxOpening = Exibindo a caixa de diálogo... +Disable = Desativar +Enable = Habilitar +UserChoiceWarning = A Microsoft bloqueou o acesso de gravação à chave UserChoice para extensão .pdf e protocolo http/https com a versão KB5034765. +AllFilesFilter = Todos os arquivos +FolderSelect = Escolha uma pasta +FilesWontBeMoved = Os arquivos não serão transferidos. +Install = Instalar +NoData = Nada à exibir. +NoInternetConnection = Sem conexão à Internet. +RestartFunction = Favor reiniciar a função "{0}". +NoResponse = Uma conexão não pôde ser estabelecida com {0}. +Restore = Restaurar +Run = Executar +Skipped = Ignorados. +GPOUpdate = Actualização do GPO... +TelegramGroupTitle = Entre no grupo oficial do Telegram. +TelegramChannelTitle = Entre no canal oficial do Telegram. +DiscordChannelTitle = Entre no canal oficial do Discord. +Uninstall = Desinstalar +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/ru-RU/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/ru-RU/Sophia.psd1 new file mode 100644 index 00000000..b75e66f5 --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/ru-RU/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = Скрипт поддерживает Windows 11 24H2. +UpdateWarning = Ваш билд Windows 11: {0}.{1}. Поддерживаемые сборки: {2}+. Запустите обновление Windows и попробуйте заново. +UnsupportedLanguageMode = Сессия PowerShell работает в ограниченном режиме. +LoggedInUserNotAdmin = Текущий вошедший пользователь не обладает правами администратора. +UnsupportedPowerShell = Вы пытаетесь запустить скрипт в PowerShell {0}.{1}. Запустите скрипт в соответствующей версии PowerShell. +PowerShellx86Warning = Вы пытаетесь запустить скрипт в PowerShell (x86). Запустите скрипт в PowerShell (x64). +UnsupportedHost = Скрипт не поддерживает работу через {0}. +Win10TweakerWarning = Ваша ОС, возможно, через бэкдор в Win 10 Tweaker была заражена трояном. +TweakerWarning = Стабильность Windows могла быть нарушена использованием {0}. На всякий случай переустановите Windows. +Bin = В папке bin отсутствуют файлы. Пожалуйста, перекачайте архив. +RebootPending = Компьютер ожидает перезагрузки. +UnsupportedRelease = Обнаружена новая версия. +KeyboardArrows = Для выбора используйте на клавиатуре стрелки {0} и {1} +CustomizationWarning = Вы настроили все функции в пресет-файле {0} перед запуском Sophia Script? +WindowsComponentBroken = {0} сломан или удален из ОС. +UpdateDefender = Определения Microsoft Defender устарели. Запустите обновление Windows. +ControlledFolderAccessDisabled = Контролируемый доступ к папкам выключен. +InitialActionsCheckFailed = Функция "InitialActions" не может быть загружена из пресет-файла {0}. +ScheduledTasks = Запланированные задания +OneDriveUninstalling = Удаление OneDrive... +OneDriveInstalling = OneDrive устанавливается... +OneDriveDownloading = Скачивается OneDrive... +OneDriveWarning = Функция "{0}" будет применена только в случае, если в пресете настроено удаление OneDrive (или приложение уже удалено), иначе ломается функционал резервного копирования для папок "Рабочий стол" и "Изображения" в OneDrive. +WindowsFeaturesTitle = Компоненты Windows +OptionalFeaturesTitle = Дополнительные компоненты +EnableHardwareVT = Включите виртуализацию в UEFI. +UserShellFolderNotEmpty = В папке "{0}" остались файлы. Переместите их вручную в новое расположение. +UserFolderLocationMove = Не следует перемещать пользовательские папки в корень диска C. +RetrievingDrivesList = Получение списка дисков... +DriveSelect = Выберите диск, в корне которого будет создана папка "{0}". +CurrentUserFolderLocation = Текущее расположение папки "{0}": "{1}". +UserFolderRequest = Хотите изменить расположение папки "{0}"? +UserDefaultFolder = Хотите изменить расположение папки "{0}" на значение по умолчанию? +ReservedStorageIsInUse = Операция не поддерживается, пока используется зарезервированное хранилище\nПожалуйста, повторно запустите функцию "{0}" после перезагрузки. +ShortcutPinning = Ярлык "{0}" закрепляется на начальном экране... +SSDRequired = Чтобы использовать подсистему Windows для Android™ на вашем ПК должен быть установлен твердотельный накопитель (SSD). +UninstallUWPForAll = Для всех пользователей +UWPAppsTitle = UWP-приложения +GraphicsPerformanceTitle = Установить для любого приложения по вашему выбору настройки производительности графики на "Высокая производительность"? +ActionCenter = Чтобы использовать функцию "{0}" вам необходимо включить центр уведомлений. +WindowsScriptHost = На данном компьютере отключен доступ к серверу сценариев Windows. Чтобы использовать функцию "{0}", вам необходимо включить сервер сценариев Windows. +ScheduledTaskPresented = Функция "{0}" уже была создана от имени "{1}". +CleanupTaskNotificationTitle = Очистка Windows +CleanupTaskNotificationEvent = Запустить задание по очистке неиспользуемых файлов и обновлений Windows? +CleanupTaskDescription = Очистка неиспользуемых файлов и обновлений Windows, используя встроенную программу Очистка диска. +CleanupNotificationTaskDescription = Всплывающее уведомление с напоминанием об очистке неиспользуемых файлов и обновлений Windows. +SoftwareDistributionTaskNotificationEvent = Кэш обновлений Windows успешно удален. +TempTaskNotificationEvent = Папка временных файлов успешно очищена. +FolderTaskDescription = Очистка папки {0}. +EventViewerCustomViewName = Создание процесса +EventViewerCustomViewDescription = События создания нового процесса и аудит командной строки. +RestartWarning = Обязательно перезагрузите ваш ПК. +ErrorsLine = Строка +ErrorsMessage = Ошибки/предупреждения +DialogBoxOpening = Диалоговое окно открывается... +Disable = Отключить +Enable = Включить +UserChoiceWarning = Microsoft заблокировала возможность записать в раздел реестра UserChoice для расширения .pdf и протоколов http/https с релизом обновления KB5034765. +AllFilesFilter = Все файлы +FolderSelect = Выберите папку +FilesWontBeMoved = Файлы не будут перенесены. +Install = Установить +NoData = Отсутствуют данные. +NoInternetConnection = Отсутствует интернет-соединение. +RestartFunction = Пожалуйста, повторно запустите функцию "{0}". +NoResponse = Невозможно установить соединение с {0}. +Restore = Восстановить +Run = Запустить +Skipped = Пропущено. +GPOUpdate = Обновление GPO... +TelegramGroupTitle = Присоединяйтесь к нашей официальной группе в Telegram. +TelegramChannelTitle = Присоединяйтесь к нашему официальному каналу в Telegram. +DiscordChannelTitle = Присоединяйтесь к нашему официальному каналу в Discord. +Uninstall = Удалить +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/tr-TR/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/tr-TR/Sophia.psd1 new file mode 100644 index 00000000..50ba726a --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/tr-TR/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = Komut dosyası Windows 11 24H2'yı destekler. +UpdateWarning = Windows 11 yapınız: {0}.{1}. Desteklenen yapılar: {2}+. Windows Update'i çalıştırın ve tekrar deneyin. +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. +PowerShellx86Warning = Komut dosyasını PowerShell (x86) üzerinden çalıştırmaya çalışıyorsunuz. Komut dosyasını PowerShell'de (x64) çalıştırın. +UnsupportedHost = Komut dosyası, {0} üzerinden çalıştırmayı desteklemiyor. +Win10TweakerWarning = Muhtemelen işletim sisteminize Win 10 Tweaker arka kapısı yoluyla bulaştı. +TweakerWarning = Windows işletim sistemi kararlılığı, {0} betiği kullanılarak tehlikeye atılmış olabilir. Her ihtimale karşı, Windows'u yeniden yükleyin. +Bin = bin klasöründe dosya yok. Lütfen arşivi yeniden indirin. +RebootPending = PC yeniden başlatılmayı bekliyor. +UnsupportedRelease = Yeni sürüm bulundu. +KeyboardArrows = Lütfen cevabınızı seçmek için klavyenizdeki {0} ve {1} ok tuşlarını kullanın +CustomizationWarning = Sophia Script'i çalıştırmadan önce {0} ön ayar dosyasındaki her işlevi özelleştirdiniz mi? +WindowsComponentBroken = {0} bozuk veya işletim sisteminden kaldırıldı. +UpdateDefender = Microsoft Defender tanımları güncel değil. Windows Update'i çalıştırın ve tekrar deneyin. +ControlledFolderAccessDisabled = Kontrollü klasör erişimi devre dışı bırakıldı. +InitialActionsCheckFailed = "InitialActions" fonksiyonu {0} ön ayar dosyasından yüklenemez. +ScheduledTasks = Zamanlanan görevler +OneDriveUninstalling = OneDrive kaldırılıyor... +OneDriveInstalling = OneDrive kuruluyor... +OneDriveDownloading = OneDrive indiriliyor... +OneDriveWarning = "{0}" işlevi yalnızca ön ayar OneDrive'ı kaldıracak şekilde yapılandırılırsa uygulanır (veya uygulama zaten kaldırılmışsa), 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. +UserShellFolderNotEmpty = "{0}" klasöründe bazı dosyalar kaldı. \nKendiniz yeni konuma taşıyın. +UserFolderLocationMove = Kullanıcı klasörü konumunu C sürücüsü kökü olarak değiştirmemelisiniz. +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. +CurrentUserFolderLocation = Geçerli "{0}" klasör konumu: "{1}". +UserFolderRequest = "{0}" klasörünün yerini değiştirmek ister misiniz? +UserDefaultFolder = "{0}" klasörünün konumunu varsayılan değerle değiştirmek ister misiniz? +ReservedStorageIsInUse = Ayrılmış depolama kullanımdayken bu işlem desteklenmez\nBilgisayar yeniden başlatıldıktan sonra lütfen "{0}" işlevini yeniden çalıştırın. +ShortcutPinning = "{0}" kısayolu Başlangıç sekmesine sabitlendi... +SSDRequired = Android™ için Windows Alt Sistemi'ni cihazınızda kullanmak için bilgisayarınızda Katı Hal Sürücüsü (SSD) yüklü olmalıdır. +UninstallUWPForAll = Bütün kullanıcılar için +UWPAppsTitle = UWP Uygulamaları +GraphicsPerformanceTitle = Seçtiğiniz bir uygulamanın grafik performansı ayarını "Yüksek performans" olarak belirlemek ister misiniz? +ActionCenter = "{0}" işlevini kullanmak için Eylem Merkezi'ni etkinleştirmeniz gerekir. +WindowsScriptHost = Windows Kod Merkezi erişimi bu makineden devre dışı. "{0}" işlevini kullanmak için Windows Kod Merkezi'u etkinleştirmeniz gerekir. +ScheduledTaskPresented = "{0}" işlevi zaten "{1}" olarak oluşturulmuştu. +CleanupTaskNotificationTitle = Windows temizliği +CleanupTaskNotificationEvent = Windows kullanılmayan dosyaları ve güncellemeleri temizlemek için görev çalıştırılsın mı? +CleanupTaskDescription = Kullanılmayan Windows dosyaları ve güncellemeleri yerleşik Disk Temizleme uygulaması ile temizleniyor. +CleanupNotificationTaskDescription = Windows kullanılmayan dosyaları ve güncellemeleri temizleme hakkında açılır bildirim hatırlatıcısı. +SoftwareDistributionTaskNotificationEvent = Windows güncelleme önbelleği başarıyla silindi. +TempTaskNotificationEvent = Geçici dosyalar klasörü başarıyla temizlendi. +FolderTaskDescription = "{0}" klasörü temizleniyor. +EventViewerCustomViewName = Süreç Oluşturma +EventViewerCustomViewDescription = Süreç oluşturma ve komut satırı denetleme olayları. +RestartWarning = Bilgisayarınızı yeniden başlattığınızdan emin olun. +ErrorsLine = Satır +ErrorsMessage = Hatalar/Uyarılar +DialogBoxOpening = İletişim kutusu görüntüleniyor... +Disable = Devre dışı bırak +Enable = Aktif et +UserChoiceWarning = Microsoft, KB5034765 sürümü ile .pdf uzantısı ve http/https protokolü için UserChoice anahtarına yazma erişimini engellemiştir. +AllFilesFilter = Tüm Dosyalar +FolderSelect = Klasör seç +FilesWontBeMoved = Dosyalar taşınmayacak. +Install = Yükle +NoData = Görüntülenecek bir şey yok. +NoInternetConnection = İnternet bağlantısı yok. +RestartFunction = Lütfen "{0}" işlevini yeniden çalıştırın. +NoResponse = {0} ile bağlantı kurulamadı. +Restore = Onar +Run = Başlat +Skipped = Atlandı. +GPOUpdate = GPO Güncelleniyor... +TelegramGroupTitle = Resmi Telegram grubumuza katılın. +TelegramChannelTitle = Resmi Telegram kanalımıza katılın. +DiscordChannelTitle = Resmi Discord kanalımıza katılın. +Uninstall = Kaldır +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/uk-UA/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/uk-UA/Sophia.psd1 new file mode 100644 index 00000000..b155ee1f --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/uk-UA/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = Скрипт підтримує Windows 11 24H2. +UpdateWarning = Ваш білд Windows 11: {0}.{1}. Підтримувані збірки: {2}+. Запустіть Windows Update і повторіть спробу. +UnsupportedLanguageMode = Сесія PowerShell працює в обмеженому режимі. +LoggedInUserNotAdmin = Поточний користувач, що увійшов, не має прав адміністратора. +UnsupportedPowerShell = Ви намагаєтеся запустити скрипт в PowerShell {0}.{1}. Запустіть скрипт у відповідній версії PowerShell. +PowerShellx86Warning = Ви намагаєтеся запустити скрипт у PowerShell (x86). Запустіть скрипт у PowerShell (x64). +UnsupportedHost = Скрипт не підтримує роботу через {0}. +Win10TweakerWarning = Ваша ОС, можливо, через бекдор в Win 10 Tweaker інфікована трояном. Детальніше: https://itnan.ru/post.php?c=1&p=557388. +TweakerWarning = Стабільність вашої ОС могла бути порушена використанням {0}. Про всяк випадок перевстановіть Windows. +Bin = У папці bin відсутні файли. Будь ласка, повторно завантажте архів. +RebootPending = Комп'ютер очікує на перезавантаження. +UnsupportedRelease = Виявлено нову версію. +KeyboardArrows = Для вибору відповіді на клавіатурі стрілки {0} і {1} +CustomizationWarning = Ви налаштували всі функції в пресет-файлі {0} перед запуском Sophia Script? +WindowsComponentBroken = {0} пошкоджено або видалено з ОС. +UpdateDefender = Визначення Microsoft Defender застаріли. Запустіть Windows Update і повторіть спробу. +ControlledFolderAccessDisabled = Контрольований доступ до папок вимкнений. +InitialActionsCheckFailed = Функція "InitialActions" не може бути завантажена з пресет-файлу {0}. +ScheduledTasks = Заплановані задачі +OneDriveUninstalling = Видалення OneDrive... +OneDriveInstalling = OneDrive встановлюється... +OneDriveDownloading = Завантажується OneDrive... +OneDriveWarning = Функція "{0}" буде застосована тільки в разі, якщо в пресеті налаштовано видалення OneDrive (або застосунок вже видалено), інакше ламається функціонал резервного копіювання для папок "Робочий стіл" і "Зображення" в OneDrive. +WindowsFeaturesTitle = Компоненти Windows +OptionalFeaturesTitle = Додаткові компоненти +EnableHardwareVT = Увімкніть віртуалізацію в UEFI. +UserShellFolderNotEmpty = У папці "{0}" залишилися файли. Перемістіть їх вручну в нове розташування. +UserFolderLocationMove = Не слід переміщати користувацькі папки в корінь диска C. +RetrievingDrivesList = Отримання списку дисків... +DriveSelect = Виберіть диск, в корні якого буде створена папка для "{0}". +CurrentUserFolderLocation = Поточне розташування папки "{0}": "{1}". +UserFolderRequest = Бажаєте змінити розташування папки "{0}"? +UserDefaultFolder = Бажаєте змінити розташування папки "{0}" на значення за замовчуванням? +ReservedStorageIsInUse = Операція не підтримується, поки використовується зарезервоване сховище\nБудь ласка, повторно запустіть функцію "{0}" після перезавантаження. +ShortcutPinning = Ярлик "{0}" закріплюється на початковому екрані... +SSDRequired = Щоб використовувати підсистему Windows для Android™ на вашому ПК має бути встановлений твердотільний накопичувач (SSD). +UninstallUWPForAll = Для всіх користувачів +UWPAppsTitle = UWP-додатки +GraphicsPerformanceTitle = Встановити для будь-якої програми за вашим вибором налаштування продуктивності графіки на "Висока продуктивність"? +ActionCenter = Щоб використовувати функцію "{0}" вам необхідно увімкнути центр сповіщень. +WindowsScriptHost = На цьому комп'ютері вимкнено доступ до сервера сценаріїв Windows. Щоб використовувати функцію "{0}", вам необхідно увімкнути сервер сценаріїв Windows. +ScheduledTaskPresented = Функцію "{0}" уже було створено від імені "{1}". +CleanupTaskNotificationTitle = Очищення Windows +CleanupTaskNotificationEvent = Запустити завдання з очищення невикористовуваних файлів і оновлень Windows? +CleanupTaskDescription = Очищення невикористовуваних файлів і оновлень Windows, використовуючи вбудовану програму Очищення диска. +CleanupNotificationTaskDescription = Спливаюче повідомлення з нагадуванням про очищення невикористовуваних файлів і оновлень Windows. +SoftwareDistributionTaskNotificationEvent = Кеш оновлень Windows успішно видалено. +TempTaskNotificationEvent = Папка тимчасових файлів успішно очищена. +FolderTaskDescription = Очищення папки "{0}". +EventViewerCustomViewName = Створення процесу +EventViewerCustomViewDescription = Події створення нового процесу і аудит командного рядка. +RestartWarning = Обов'язково перезавантажте ваш ПК. +ErrorsLine = Рядок +ErrorsMessage = Помилки/попередження +DialogBoxOpening = Діалогове вікно відкривається... +Disable = Вимкнути +Enable = Увімкнути +UserChoiceWarning = Microsoft заблокувала можливість писати в розділ реєстру UserChoice для розширення .pdf, а також протоколів http/https з релізом оновлення KB5034765. +AllFilesFilter = Усі файли +FolderSelect = Виберіть папку +FilesWontBeMoved = Файли не будуть перенесені. +Install = Встановити +NoData = Відсутні дані. +NoInternetConnection = Відсутнє інтернет-з'єднання. +RestartFunction = Будь ласка, повторно запустіть функцію "{0}". +NoResponse = Не вдалося встановити зв’язок із {0}. +Restore = Відновити +Run = Запустити +Skipped = Пропущено. +GPOUpdate = Оновлення GPO... +TelegramGroupTitle = Приєднуйтесь до нашої офіційної групи в Telegram. +TelegramChannelTitle = Приєднуйтесь до нашого офіційного каналу в Telegram. +DiscordChannelTitle = Приєднуйтесь до нашого офіційного каналу в Discord. +Uninstall = Видалити +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/zh-CN/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/zh-CN/Sophia.psd1 new file mode 100644 index 00000000..fc64844d --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Localizations/zh-CN/Sophia.psd1 @@ -0,0 +1,76 @@ +ConvertFrom-StringData -StringData @' +UnsupportedOSBuild = 脚本支持Windows 11 24H2。 +UpdateWarning = 您的Windows 11构建: {0}.{1}。支持的构建: {2}+。运行Windows Update并再次尝试。 +UnsupportedLanguageMode = PowerShell会话在有限的语言模式下运行。 +LoggedInUserNotAdmin = 登录的用户没有管理员的权利。 +UnsupportedPowerShell = 你想通过PowerShell {0}.{1}运行脚本。在适当的PowerShell版本中运行该脚本。 +PowerShellx86Warning = 您正尝试在 PowerShell (x86) 中运行脚本。在 PowerShell (x64) 中运行脚本。 +UnsupportedHost = 该脚本不支持通过{0}运行。 +Win10TweakerWarning = 可能你的操作系统是通过"Win 10 Tweaker"后门感染的。 +TweakerWarning = Windows的稳定性可能已被{0}所破坏。预防性地,重新安装整个操作系统。 +Bin = bin文件夹中没有文件。请重新下载该档案。 +RebootPending = 计算机正在等待重新启动。 +UnsupportedRelease = 找到新版本。 +KeyboardArrows = 请使用键盘上的方向键{0}和{1}选择您的答案 +CustomizationWarning = 在运行Sophia Script之前,您是否已自定义{0}预设文件中的每个函数? +WindowsComponentBroken = {0} 损坏或从操作系统中删除。 +UpdateDefender = Microsoft Defender的定义已经过期。运行Windows Update并再次尝试。 +ControlledFolderAccessDisabled = "受控文件夹访问"已禁用。 +InitialActionsCheckFailed = 无法从{0}预置文件中加载 "InitialActions "功能。 +ScheduledTasks = 计划任务 +OneDriveUninstalling = 卸载OneDrive..... +OneDriveInstalling = OneDrive正在安装..... +OneDriveDownloading = 正在下载OneDrive..... +OneDriveWarning = 只有当预设被配置为删除OneDrive(或应用程序已经被删除)时,才会应用"{0}"功能,否则OneDrive中 "桌面 "和 "图片 "文件夹的备份功能就会中断。 +WindowsFeaturesTitle = Windows功能 +OptionalFeaturesTitle = 可选功能 +EnableHardwareVT = UEFI中开启虚拟化。 +UserShellFolderNotEmpty = 一些文件留在了"{0}"文件夹。请手动将它们移到一个新位置。 +UserFolderLocationMove = 不应将用户文件夹位置更改为 C 盘根目录。 +RetrievingDrivesList = 取得驱动器列表..... +DriveSelect = 选择将在其根目录中创建"{0}"文件夹的驱动器。 +CurrentUserFolderLocation = 当前"{0}"文件夹的位置:"{1}"。 +UserFolderRequest = 是否要更改"{0}"文件夹位置? +UserDefaultFolder = 您想将"{0}"文件夹的位置更改为默认值吗? +ReservedStorageIsInUse = 保留存储空间正在使用时不支持此操作\n请在电脑重启后重新运行"{0}"功能。 +ShortcutPinning = "{0}"快捷方式将被固定到开始菜单..... +SSDRequired = 要在您的设备上使用Windows Subsystem for Android™,您的电脑需要安装固态驱动器(SSD)。 +UninstallUWPForAll = 对于所有用户 +UWPAppsTitle = UWP应用 +GraphicsPerformanceTitle = 是否将所选应用程序的图形性能设置设为"高性能"? +ActionCenter = 为了使用"{0}"功能,你必须启用行动中心。 +WindowsScriptHost = 没有在该机执行 Windows 脚本宿主的权限。请与系统管理员联系。 为了使用"{0}"功能,你必须启用Windows脚本主机。 +ScheduledTaskPresented = "{0}"函数已经被创建为"{1}"。 +CleanupTaskNotificationTitle = Windows清理 +CleanupTaskNotificationEvent = 运行任务以清理Windows未使用的文件和更新? +CleanupTaskDescription = 使用内置磁盘清理工具清理未使用的Windows文件和更新。 +CleanupNotificationTaskDescription = 关于清理Windows未使用的文件和更新的弹出通知提醒。 +SoftwareDistributionTaskNotificationEvent = Windows更新缓存已成功删除。 +TempTaskNotificationEvent = 临时文件文件夹已成功清理。 +FolderTaskDescription = "{0}"文件夹清理。 +EventViewerCustomViewName = 进程创建 +EventViewerCustomViewDescription = 进程创建和命令行审核事件。 +RestartWarning = 确保重启电脑。 +ErrorsLine = 行 +ErrorsMessage = 错误/警告 +DialogBoxOpening = 显示对话窗口..... +Disable = 禁用 +Enable = 启用 +UserChoiceWarning = 微软在发布 KB5034765 时阻止了对 .pdf 扩展和 http/https 协议的 UserChoice 密钥的写入访问。 +AllFilesFilter = 所有文件 +FolderSelect = 选择一个文件夹 +FilesWontBeMoved = 文件将不会被移动。 +Install = 安装 +NoData = 无数据。 +NoInternetConnection = 无网络连接。 +RestartFunction = 请重新运行"{0}"函数。 +NoResponse = 无法建立{0}。 +Restore = 恢复 +Run = 运行 +Skipped = 已跳过。 +GPOUpdate = GPO更新..... +TelegramGroupTitle = 加入我们的官方Telegram 群。 +TelegramChannelTitle = 加入我们的官方Telegram 频道。 +DiscordChannelTitle = 加入我们的官方Discord 频道。 +Uninstall = 卸载 +'@ diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Manifest/Sophia.psd1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Manifest/Sophia.psd1 new file mode 100644 index 00000000..007154ae --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Manifest/Sophia.psd1 @@ -0,0 +1,20 @@ +@{ + RootModule = '..\Module\Sophia.psm1' + ModuleVersion = '6.6.9' + GUID = '109cc881-c42b-45af-a74a-550781989d6a' + Author = 'Dmitry "farag" Nefedov' + Copyright = '(c) 2014—2024 farag, Inestic & lowl1f3. All rights reserved' + Description = 'Module for Windows fine-tuning and automating the routine tasks' + PowerShellVersion = '5.1' + ProcessorArchitecture = 'AMD64' + FunctionsToExport = '*' + + PrivateData = @{ + PSData = @{ + LicenseUri = 'https://github.com/farag2/Sophia-Script-for-Windows/blob/master/LICENSE' + ProjectUri = 'https://github.com/farag2/Sophia-Script-for-Windows' + IconUri = 'https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/img/Sophia.png' + ReleaseNotes = 'https://github.com/farag2/Sophia-Script-for-Windows/blob/master/CHANGELOG.md' + } + } +} diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 new file mode 100644 index 00000000..961dc8ac --- /dev/null +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 @@ -0,0 +1,13632 @@ +<# + .SYNOPSIS + Sophia Script is a PowerShell module for Windows 10 & Windows 11 fine-tuning and automating the routine tasks + + Version: v6.6.9 + Date: 16.08.2024 + + Copyright (c) 2014—2024 farag, Inestic & lowl1f3 + + Thanks to all https://forum.ru-board.com members involved + + .NOTES + Supported Windows 11 Enterprise LTSC 2024 + + .LINK GitHub + https://github.com/farag2/Sophia-Script-for-Windows + + .LINK Telegram + https://t.me/sophianews + https://t.me/sophia_chat + + .LINK Discord + https://discord.gg/sSryhaEv79 + + .NOTES + https://forum.ru-board.com/topic.cgi?forum=62&topic=30617#15 + https://habr.com/companies/skillfactory/articles/553800/ + https://forums.mydigitallife.net/threads/powershell-sophia-script-for-windows-10-windows-11-5-17-8-6-5-8-x64-2023.81675/ + https://www.reddit.com/r/PowerShell/comments/go2n5v/powershell_script_setup_windows_10/ + + .LINK Authors + https://github.com/farag2 + https://github.com/Inestic + https://github.com/lowl1f3 +#> + +#region InitialActions +function InitialActions +{ + param + ( + [Parameter(Mandatory = $false)] + [switch] + $Warning + ) + + Set-StrictMode -Version Latest + + # Сlear the $Error variable + $Global:Error.Clear() + + # Unblock all files in the script folder by removing the Zone.Identifier alternate data stream with a value of "3" + Get-ChildItem -Path $PSScriptRoot\..\ -File -Recurse -Force | Unblock-File + + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + + # Progress bar can significantly impact cmdlet performance + # https://github.com/PowerShell/PowerShell/issues/2138 + $Script:ProgressPreference = "SilentlyContinue" + + # Extract strings from %SystemRoot%\System32\shell32.dll using its number + # https://github.com/SamuelArnold/StarKill3r/blob/master/Star%20Killer/Star%20Killer/bin/Debug/Scripts/SANS-SEC505-master/scripts/Day1-PowerShell/Expand-IndirectString.ps1 + # [WinAPI.GetStrings]::GetIndirectString("@%SystemRoot%\System32\schedsvc.dll,-100") + + # https://github.com/PowerShell/PowerShell/issues/21070 + $Script:CompilerParameters = [System.CodeDom.Compiler.CompilerParameters]::new("System.dll") + $Script:CompilerParameters.TempFiles = [System.CodeDom.Compiler.TempFileCollection]::new($env:TEMP, $false) + $Script:CompilerParameters.GenerateInMemory = $true + $Signature = @{ + Namespace = "WinAPI" + Name = "GetStrings" + Language = "CSharp" + UsingNamespace = "System.Text" + CompilerParameters = $CompilerParameters + MemberDefinition = @" +[DllImport("kernel32.dll", CharSet = CharSet.Auto)] +public static extern IntPtr GetModuleHandle(string lpModuleName); + +[DllImport("user32.dll", CharSet = CharSet.Auto)] +internal static extern int LoadString(IntPtr hInstance, uint uID, StringBuilder lpBuffer, int nBufferMax); + +public static string GetString(uint strId) +{ + IntPtr intPtr = GetModuleHandle("shell32.dll"); + StringBuilder sb = new StringBuilder(255); + LoadString(intPtr, strId, sb, sb.Capacity); + return sb.ToString(); +} + +// Get string from other DLLs +[DllImport("shlwapi.dll", CharSet=CharSet.Unicode)] +private static extern int SHLoadIndirectString(string pszSource, StringBuilder pszOutBuf, int cchOutBuf, string ppvReserved); + +public static string GetIndirectString(string indirectString) +{ + try + { + int returnValue; + StringBuilder lptStr = new StringBuilder(1024); + returnValue = SHLoadIndirectString(indirectString, lptStr, 1024, null); + + if (returnValue == 0) + { + return lptStr.ToString(); + } + else + { + return null; + // return "SHLoadIndirectString Failure: " + returnValue; + } + } + catch // (Exception ex) + { + return null; + // return "Exception Message: " + ex.Message; + } +} +"@ + } + if (-not ("WinAPI.GetStrings" -as [type])) + { + Add-Type @Signature + } + + $Signature = @{ + Namespace = "WinAPI" + Name = "ForegroundWindow" + Language = "CSharp" + CompilerParameters = $CompilerParameters + MemberDefinition = @" +[DllImport("user32.dll")] +public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow); + +[DllImport("user32.dll")] +[return: MarshalAs(UnmanagedType.Bool)] +public static extern bool SetForegroundWindow(IntPtr hWnd); +"@ + } + + if (-not ("WinAPI.ForegroundWindow" -as [type])) + { + Add-Type @Signature + } + + # Check the language mode + if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message $Localization.UnsupportedLanguageMode + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes" -Verbose + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Check whether the logged-in user is an admin + $CurrentUserName = (Get-Process -Id $PID -IncludeUserName).UserName | Split-Path -Leaf + $CurrentSessionId = (Get-Process -Id $PID -IncludeUserName).SessionId + $LoginUserName = (Get-Process -IncludeUserName | Where-Object -FilterScript {($_.ProcessName -eq "explorer") -and ($_.SessionId -eq $CurrentSessionId)}).UserName | Select-Object -First 1 | Split-Path -Leaf + + if ($CurrentUserName -ne $LoginUserName) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message $Localization.LoggedInUserNotAdmin + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Check whether the script was run via PowerShell 5.1 + if ($PSVersionTable.PSVersion.Major -ne 5) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.UnsupportedPowerShell -f $PSVersionTable.PSVersion.Major, $PSVersionTable.PSVersion.Minor) + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Check whether the script was run in PowerShell ISE or VS Code + if (($Host.Name -match "ISE") -or ($env:TERM_PROGRAM -eq "vscode")) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.UnsupportedHost -f $Host.Name.Replace("Host", "")) + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Check whether Windows was broken by 3rd party harmful tweakers and trojans + $Tweakers = @{ + # https://github.com/Sycnex/Windows10Debloater + Windows10Debloater = "$env:SystemDrive\Temp\Windows10Debloater" + # https://github.com/Fs00/Win10BloatRemover + Win10BloatRemover = "$env:TEMP\.net\Win10BloatRemover" + # https://github.com/arcadesdude/BRU + "Bloatware Removal" = "$env:SystemDrive\BRU\Bloatware-Removal*.log" + # https://www.youtube.com/GHOSTSPECTRE + "Ghost Toolbox" = "$env:SystemRoot\System32\migwiz\dlmanifests\run.ghost.cmd" + # https://win10tweaker.ru + "Win 10 Tweaker" = "HKCU:\Software\Win 10 Tweaker" + # https://boosterx.ru + BoosterX = "$env:ProgramFiles\GameModeX\GameModeX.exe" + # https://forum.ru-board.com/topic.cgi?forum=5&topic=14285&start=400#11 + "Defender Control" = "$env:APPDATA\Defender Control" + # https://forum.ru-board.com/topic.cgi?forum=5&topic=14285&start=260#12 + "Defender Switch" = "$env:ProgramData\DSW" + # https://revi.cc/revios/download + "Revision Tool" = "${env:ProgramFiles(x86)}\Revision Tool" + # https://www.youtube.com/watch?v=L0cj_I6OF2o + "WinterOS Tweaker" = "$env:SystemRoot\WinterOS*" + # https://github.com/ThePCDuke/WinCry + WinCry = "$env:SystemRoot\TempCleaner.exe" + # https://hone.gg + Hone = "$env:LOCALAPPDATA\Programs\Hone\Hone.exe" + # https://www.youtube.com/watch?v=5NBqbUUB1Pk + WinClean = "$env:ProgramFiles\WinClean Plus Apps" + # https://github.com/Atlas-OS/Atlas + AtlasOS = "$env:SystemRoot\AtlasModules" + # https://www.gearupbooster.com + "GearUP Booster" = "${env:ProgramFiles(x86)}\GearUPBooster" + } + foreach ($Tweaker in $Tweakers.Keys) + { + if (Test-Path -Path $Tweakers[$Tweaker]) + { + if ($Tweakers[$Tweaker] -eq "HKCU:\Software\Win 10 Tweaker") + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message $Localization.Win10TweakerWarning + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://youtu.be/na93MS-1EkM" -Verbose + Write-Verbose -Message "https://pikabu.ru/story/byekdor_v_win_10_tweaker_ili_sovremennyie_metodyi_borbyi_s_piratstvom_8227558" -Verbose + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.TweakerWarning -f $Tweaker) + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + } + + # Check whether Windows was broken by 3rd party harmful tweakers and trojans + $Tweakers = @{ + # https://forum.ru-board.com/topic.cgi?forum=62&topic=30617&start=1600#14 + AutoSettingsPS = "$(Get-Item -Path `"HKLM:\SOFTWARE\Microsoft\Windows Defender\Exclusions\Paths`" | Where-Object -FilterScript {$_.Property -match `"AutoSettingsPS`"})" + # Flibustier custom Windows image + Flibustier = "$(Get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\.NETFramework\Performance -Name *flibustier)" + # https://github.com/builtbybel/Winpilot + Winpilot = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Winpilot`"})" + # https://github.com/builtbybel/xd-AntiSpy + "xd-AntiSpy" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"xd-AntiSpy`"})" + # https://forum.ru-board.com/topic.cgi?forum=5&topic=50519 + "Modern Tweaker" = "$((Get-ItemProperty -Path `"HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\MuiCache`").PSObject.Properties | Where-Object -FilterScript {$_.Value -eq `"Modern Tweaker`"})" + } + foreach ($Tweaker in $Tweakers.Keys) + { + if ($Tweakers[$Tweaker]) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.TweakerWarning -f $Tweaker) + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + } + + # Check whether Get-WindowsEdition cmdlet is working + # https://github.com/PowerShell/PowerShell/issues/21295 + try + { + Get-WindowsEdition -Online + } + catch [System.Runtime.InteropServices.COMException] + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.WindowsComponentBroken -f "Get-WindowsEdition") + Write-Information -MessageData "" -InformationAction Continue + + exit + } + + # Check whether Windows Feature Experience Pack was removed by harmful tweakers + if (-not (Get-AppxPackage -Name MicrosoftWindows.Client.CBS)) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.WindowsComponentBroken -f "Windows Feature Experience Pack") + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Check whether EventLog service is running in order to be sire that Event Logger is enabled + if ((Get-Service -Name EventLog).Status -eq "Stopped") + { + Write-Information -MessageData "" -InformationAction Continue + # Extract the localized "Event Viewer" string from shell32.dll + Write-Warning -Message ($Localization.WindowsComponentBroken -f $([WinAPI.GetStrings]::GetString(22029))) + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + #region Defender checks + # Check whether necessary Microsoft Defender components exists + $Files = @( + "$env:SystemRoot\System32\smartscreen.exe", + "$env:SystemRoot\System32\SecurityHealthSystray.exe", + "$env:SystemRoot\System32\CompatTelRunner.exe" + ) + foreach ($File in $Files) + { + if (-not (Test-Path -Path $File)) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.WindowsComponentBroken -f $File) + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest" -Verbose + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + } + + # Checking whether Windows Security Settings page was hidden from UI + if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer", "SettingsPageVisibility", $null) -match "hide:windowsdefender") + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender") + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Checking whether WMI is corrupted + try + { + Get-CimInstance -ClassName MSFT_MpComputerStatus -Namespace root/Microsoft/Windows/Defender -ErrorAction Stop | Out-Null + } + catch [Microsoft.Management.Infrastructure.CimException] + { + # Provider Load Failure exception + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Global:Error.Exception.Message | Select-Object -First 1) + Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender") + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Check Microsoft Defender state + if ($null -eq (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName AntiVirusProduct -ErrorAction Ignore)) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender") + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Checking services + try + { + $Services = Get-Service -Name Windefend, SecurityHealthService, wscsvc -ErrorAction Stop + Get-Service -Name SecurityHealthService -ErrorAction Stop | Start-Service + } + catch [Microsoft.PowerShell.Commands.ServiceCommandException] + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.WindowsComponentBroken -f "Microsoft Defender") + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + $Script:DefenderServices = ($Services | Where-Object -FilterScript {$_.Status -ne "running"} | Measure-Object).Count -lt $Services.Count + + # Check Microsoft Defender state + $productState = (Get-CimInstance -Namespace root/SecurityCenter2 -ClassName Antivirusproduct | Where-Object -FilterScript {$_.instanceGuid -eq "{D68DDC3A-831F-4fae-9E44-DA132C1ACF46}"}).productState + $DefenderState = ('0x{0:x}' -f $productState).Substring(3, 2) + if ($DefenderState -notmatch "00|01") + { + # Defender is a currently used AV. Continue... + $Script:DefenderProductState = $true + + # Check whether Microsoft Defender was turned off via GPO + # Due to "Set-StrictMode -Version Latest" we have to use GetValue() + if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", $null) -eq 1) + { + $Script:AntiSpywareEnabled = $false + } + else + { + $Script:AntiSpywareEnabled = $true + } + + # Check whether Microsoft Defender was turned off via GPO + # Due to "Set-StrictMode -Version Latest" we have to use GetValue() + if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", $null) -eq 1) + { + $Script:RealtimeMonitoringEnabled = $false + } + else + { + $Script:RealtimeMonitoringEnabled = $true + } + + # Check whether Microsoft Defender was turned off via GPO + # Due to "Set-StrictMode -Version Latest" we have to use GetValue() + if ([Microsoft.Win32.Registry]::GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableBehaviorMonitoring", $null) -eq 1) + { + $Script:BehaviorMonitoringEnabled = $false + } + else + { + $Script:BehaviorMonitoringEnabled = $true + } + } + else + { + $Script:DefenderProductState = $false + } + + if ($Script:DefenderServices -and $Script:DefenderproductState -and $Script:AntiSpywareEnabled -and $Script:RealtimeMonitoringEnabled -and $Script:BehaviorMonitoringEnabled) + { + # Defender is enabled + $Script:DefenderEnabled = $true + + switch ((Get-MpPreference).EnableControlledFolderAccess) + { + "1" + { + Write-Warning -Message $Localization.ControlledFolderAccessDisabled + + # Turn off Controlled folder access to let the script proceed + $Script:ControlledFolderAccess = $true + Set-MpPreference -EnableControlledFolderAccess Disabled + + # Open "Ransomware protection" page + Start-Process -FilePath windowsdefender://RansomwareProtection + } + "0" + { + $Script:ControlledFolderAccess = $false + } + } + } + #endregion Defender checks + + # Check for a pending reboot + $PendingActions = @( + # CBS pending + "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending", + "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootInProgress", + "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackagesPending", + # Windows Update pending + "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\PostRebootReporting", + "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired" + ) + if (($PendingActions | Test-Path) -contains $true) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message $Localization.RebootPending + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Check whether the current module version is the latest one + try + { + # Check the internet connection + $Parameters = @{ + Name = "dns.msftncsi.com" + Server = "1.1.1.1" + DnsOnly = $true + ErrorAction = "Stop" + } + if ((Resolve-DnsName @Parameters).IPAddress -notcontains "131.107.255.255") + { + return + } + + try + { + # 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" + Verbose = $true + UseBasicParsing = $true + } + $LatestRelease = (Invoke-RestMethod @Parameters).Sophia_Script_Windows_11_LTSC2024 + $CurrentRelease = (Get-Module -Name Sophia).Version.ToString() + + if ([System.Version]$LatestRelease -gt [System.Version]$CurrentRelease) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message $Localization.UnsupportedRelease + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest" -Verbose + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + } + catch [System.Net.WebException] + { + Write-Warning -Message ($Localization.NoResponse -f "https://github.com") + Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue + } + } + catch [System.ComponentModel.Win32Exception] + { + Write-Warning -Message $Localization.NoInternetConnection + Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue + } + + # Check whether LGPO.exe exists in the bin folder + if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe")) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message $Localization.Bin + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://github.com/farag2/Sophia-Script-for-Windows/releases/latest" -Verbose + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + # Detect Windows build version + switch ((Get-CimInstance -ClassName CIM_OperatingSystem).BuildNumber) + { + {$_ -lt 22631} + { + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message $Localization.UnsupportedOSBuild + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + Write-Verbose -Message "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements" -Verbose + + # Receive updates for other Microsoft products when you update Windows + (New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "") + + # Check for updates + Start-Process -FilePath "$env:SystemRoot\System32\UsoClient.exe" -ArgumentList StartInteractiveScan + + # Open the "Windows Update" page + Start-Process -FilePath "ms-settings:windowsupdate" + + exit + } + "22631" + { + # Check whether the current module version is the latest one + try + { + # Check the internet connection + $Parameters = @{ + Name = "dns.msftncsi.com" + Server = "1.1.1.1" + DnsOnly = $true + ErrorAction = "Stop" + } + if ((Resolve-DnsName @Parameters).IPAddress -notcontains "131.107.255.255") + { + return + } + + try + { + # https://github.com/farag2/Sophia-Script-for-Windows/blob/master/supported_windows_builds.json + $Parameters = @{ + Uri = "https://raw.githubusercontent.com/farag2/Sophia-Script-for-Windows/master/supported_windows_builds.json" + Verbose = $true + UseBasicParsing = $true + } + $LatestSupportedBuild = (Invoke-RestMethod @Parameters).Windows_11 + } + catch [System.Net.WebException] + { + Write-Warning -Message ($Localization.NoResponse -f "https://github.com") + Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue + } + } + catch [System.ComponentModel.Win32Exception] + { + $LatestSupportedBuild = 0 + + Write-Warning -Message $Localization.NoInternetConnection + Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue + } + + # We may use Test-Path -Path variable:LatestSupportedBuild + if ((Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR) -lt $LatestSupportedBuild) + { + # Check Windows minor build version + # https://support.microsoft.com/en-us/topic/windows-11-version-24h2-update-history-0929c747-1815-4543-8461-0160d16f15e5 + $CurrentBuild = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name CurrentBuild + $UBR = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows nt\CurrentVersion" -Name UBR + Write-Information -MessageData "" -InformationAction Continue + Write-Warning -Message ($Localization.UpdateWarning -f $CurrentBuild.CurrentBuild, $UBR.UBR, $LatestSupportedBuild) + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + Write-Verbose -Message "https://github.com/farag2/Sophia-Script-for-Windows#system-requirements" -Verbose + + # Receive updates for other Microsoft products when you update Windows + (New-Object -ComObject Microsoft.Update.ServiceManager).AddService2("7971f918-a847-4430-9279-4a52d1efe18d", 7, "") + + # Check for updates + Start-Process -FilePath "$env:SystemRoot\System32\UsoClient.exe" -ArgumentList StartInteractiveScan + + # Open the "Windows Update" page + Start-Process -FilePath "ms-settings:windowsupdate" + + exit + } + } + } + + # Enable back the SysMain service if it was disabled by harmful tweakers + if ((Get-Service -Name SysMain).Status -eq "Stopped") + { + Get-Service -Name SysMain | Set-Service -StartupType Automatic + Get-Service -Name SysMain | Start-Service + + Write-Verbose -Message "https://www.outsidethebox.ms/19318/" -Verbose + } + + # Automatically manage paging file size for all drives + if (-not (Get-CimInstance -ClassName CIM_ComputerSystem).AutomaticManagedPageFile) + { + Get-CimInstance -ClassName CIM_ComputerSystem | Set-CimInstance -Property @{AutomaticManagedPageFile = $true} + } + + # Remove firewalled IP addresses that block Microsoft recourses added by harmful tweakers + # https://wpd.app + Get-NetFirewallRule | Where-Object -FilterScript {($_.DisplayName -match "Blocker MicrosoftTelemetry") -or ($_.DisplayName -match "Blocker MicrosoftExtra") -or ($_.DisplayName -match "windowsSpyBlocker")} | Remove-NetFirewallRule + + Write-Information -MessageData "" -InformationAction Continue + # Extract the localized "Please wait..." string from shell32.dll + Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose + Write-Information -MessageData "" -InformationAction Continue + + # Remove IP addresses from hosts file that block Microsoft recourses added by WindowsSpyBlocker + # https://github.com/crazy-max/WindowsSpyBlocker + try + { + # Check the internet connection + $Parameters = @{ + Name = "dns.msftncsi.com" + Server = "1.1.1.1" + DnsOnly = $true + ErrorAction = "Stop" + } + if ((Resolve-DnsName @Parameters).IPAddress -notcontains "131.107.255.255") + { + return + } + + try + { + # Check whether https://github.com is alive + $Parameters = @{ + Uri = "https://github.com" + Method = "Head" + DisableKeepAlive = $true + UseBasicParsing = $true + } + if (-not (Invoke-WebRequest @Parameters).StatusDescription) + { + return + } + + Clear-Variable -Name IPArray -ErrorAction Ignore + + # https://github.com/crazy-max/WindowsSpyBlocker/tree/master/data/hosts + $Parameters = @{ + Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/extra.txt" + UseBasicParsing = $true + Verbose = $true + } + $extra = (Invoke-WebRequest @Parameters).Content + + $Parameters = @{ + Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/extra_v6.txt" + UseBasicParsing = $true + Verbose = $true + } + $extra_v6 = (Invoke-WebRequest @Parameters).Content + + $Parameters = @{ + Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt" + UseBasicParsing = $true + Verbose = $true + } + $spy = (Invoke-WebRequest @Parameters).Content + + $Parameters = @{ + Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy_v6.txt" + UseBasicParsing = $true + Verbose = $true + } + $spy_v6 = (Invoke-WebRequest @Parameters).Content + + $Parameters = @{ + Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update.txt" + UseBasicParsing = $true + Verbose = $true + } + $update = (Invoke-WebRequest @Parameters).Content + + $Parameters = @{ + Uri = "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/update_v6.txt" + UseBasicParsing = $true + Verbose = $true + } + $update_v6 = (Invoke-WebRequest @Parameters).Content + + $IPArray += $extra, $extra_v6, $spy, $spy_v6, $update, $update_v6 + # Split the Array variable content + $IPArray = $IPArray -split "`r?`n" | Where-Object -FilterScript {$_ -notmatch "#"} + + Write-Information -MessageData "" -InformationAction Continue + # Extract the localized "Please wait..." string from shell32.dll + Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose + Write-Information -MessageData "" -InformationAction Continue + + # Check whether hosts contains any of string from $IPArray array + if ((Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force | ForEach-Object -Process {$_.Trim()} | ForEach-Object -Process { + ($_ -ne "") -and ($_ -ne " ") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_) + }) -contains $true) + { + Write-Warning -Message ($Localization.TweakerWarning -f "WindowsSpyBlocker") + + # Clear hosts file + $hosts = Get-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force + $hosts | ForEach-Object -Process { + if (($_ -ne "") -and (-not $_.StartsWith("#")) -and ($IPArray -split "`r?`n" | Select-String -Pattern $_.Trim())) + { + $hostsData = $_ + $hosts = $hosts | Where-Object -FilterScript {$_ -notmatch $hostsData} + } + } + # Save in UTF8 without BOM + $hosts | Set-Content -Path "$env:SystemRoot\System32\drivers\etc\hosts" -Encoding Default -Force + + Start-Process -FilePath notepad.exe "$env:SystemRoot\System32\drivers\etc\hosts" + } + } + catch [System.Net.WebException] + { + Write-Warning -Message ($Localization.NoResponse -f "https://github.com") + Write-Error -Message ($Localization.NoResponse -f "https://github.com") -ErrorAction SilentlyContinue + + Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue + } + } + catch [System.ComponentModel.Win32Exception] + { + Write-Warning -Message $Localization.NoInternetConnection + Write-Error -Message $Localization.NoInternetConnection -ErrorAction SilentlyContinue + + Write-Error -Message ($Localization.RestartFunction -f $MyInvocation.Line.Trim()) -ErrorAction SilentlyContinue + } + + # PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word + # https://github.com/PowerShell/PowerShell/issues/21070 + Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore + + # Save all opened folders in order to restore them after File Explorer restart + try + { + $Script:OpenedFolders = {(New-Object -ComObject Shell.Application).Windows() | ForEach-Object -Process {$_.Document.Folder.Self.Path}}.Invoke() + } + catch [System.Management.Automation.PropertyNotFoundException] + {} + + <# + .SYNOPSIS + The "Show menu" function with the up/down arrow keys and enter key to make a selection + + .PARAMETER Menu + Array of items to choose from + + .PARAMETER Default + Default selected item in array + + .PARAMETER AddSkip + Add localized extracted "Skip" string from shell32.dll + + .EXAMPLE + Show-Menu -Menu $Items -Default 1 + + .LINK + https://qna.habr.com/answer?answer_id=1522379 + #> + function script:Show-Menu + { + [CmdletBinding()] + param + ( + [Parameter(Mandatory = $true)] + [array] + $Menu, + + [Parameter(Mandatory = $true)] + [int] + $Default, + + [Parameter(Mandatory = $false)] + [switch] + $AddSkip + ) + + Write-Information -MessageData "" -InformationAction Continue + + # Add "Please use the arrow keys 🠕 and 🠗 on your keyboard to select your answer" to menu + $Menu += $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) + + if ($AddSkip) + { + # Extract the localized "Skip" string from shell32.dll + $Menu += [WinAPI.GetStrings]::GetString(16956) + } + + # https://github.com/microsoft/terminal/issues/14992 + [System.Console]::BufferHeight += $Menu.Count + $minY = [Console]::CursorTop + $y = [Math]::Max([Math]::Min($Default, $Menu.Count), 0) + + do + { + [Console]::CursorTop = $minY + [Console]::CursorLeft = 0 + $i = 0 + + foreach ($item in $Menu) + { + if ($i -ne $y) + { + Write-Information -MessageData (' {1} ' -f ($i+1), $item) -InformationAction Continue + } + else + { + Write-Information -MessageData ('[ {1} ]' -f ($i+1), $item) -InformationAction Continue + } + + $i++ + } + + $k = [Console]::ReadKey() + switch ($k.Key) + { + "UpArrow" + { + if ($y -gt 0) + { + $y-- + } + } + "DownArrow" + { + if ($y -lt ($Menu.Count - 1)) + { + $y++ + } + } + "Enter" + { + return $Menu[$y] + } + } + } + while ($k.Key -notin ([ConsoleKey]::Escape, [ConsoleKey]::Enter)) + } + + # Extract the localized "Browse" string from shell32.dll + $Script:Browse = [WinAPI.GetStrings]::GetString(9015) + # Extract the localized "&No" string from shell32.dll + $Script:No = [WinAPI.GetStrings]::GetString(33232).Replace("&", "") + # Extract the localized "&Yes" string from shell32.dll + $Script:Yes = [WinAPI.GetStrings]::GetString(33224).Replace("&", "") + $Script:KeyboardArrows = $Localization.KeyboardArrows -f [System.Char]::ConvertFromUtf32(0x2191), [System.Char]::ConvertFromUtf32(0x2193) + # Extract the localized "Skip" string from shell32.dll + $Script:Skip = [WinAPI.GetStrings]::GetString(16956) + + Write-Information -MessageData "┏┓ ┓ • ┏┓ • ┏ ┓ ┏• ┓ " -InformationAction Continue + Write-Information -MessageData "┗┓┏┓┏┓┣┓┓┏┓ ┗┓┏┏┓┓┏┓╋ ╋┏┓┏┓ ┃┃┃┓┏┓┏┫┏┓┓┏┏┏" -InformationAction Continue + Write-Information -MessageData "┗┛┗┛┣┛┛┗┗┗┻ ┗┛┗┛ ┗┣┛┗ ┛┗┛┛ ┗┻┛┗┛┗┗┻┗┛┗┻┛┛" -InformationAction Continue + Write-Information -MessageData " ┛ ┛ " -InformationAction Continue + + Write-Information -MessageData "https://t.me/sophianews" -InformationAction Continue + Write-Information -MessageData "https://t.me/sophia_chat" -InformationAction Continue + Write-Information -MessageData "https://discord.gg/sSryhaEv79" -InformationAction Continue + + # Display a warning message about whether a user has customized the preset file + if ($Warning) + { + # Get the name of a preset (e.g Sophia.ps1) regardless it was named + # $_.File has no EndsWith() method + Write-Information -MessageData "" -InformationAction Continue + [string]$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_.EndsWith(".ps1")} + Write-Verbose -Message ($Localization.CustomizationWarning -f "`"$PresetName`"") -Verbose + + do + { + $Choice = Show-Menu -Menu @($Yes, $No) -Default 2 + + switch ($Choice) + { + $Yes + { + continue + } + $No + { + Invoke-Item -Path $PresetName + + Start-Sleep -Seconds 5 + + Write-Verbose -Message "https://github.com/farag2/Sophia-Script-for-Windows#how-to-use" -Verbose + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + $KeyboardArrows {} + } + } + until ($Choice -ne $KeyboardArrows) + } +} +#endregion InitialActions + +#region Protection +# Enable script logging. The log will be being recorded into the script root folder +# To stop logging just close the console or type "Stop-Transcript" +function Logging +{ + $TranscriptFilename = "Log-$((Get-Date).ToString("dd.MM.yyyy-HH-mm"))" + Start-Transcript -Path $PSScriptRoot\..\$TranscriptFilename.txt -Force +} + +# Create a restore point for the system drive +function CreateRestorePoint +{ + $SystemDriveUniqueID = (Get-Volume | Where-Object -FilterScript {$_.DriveLetter -eq "$($env:SystemDrive[0])"}).UniqueID + $SystemProtection = ((Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SPP\Clients" -ErrorAction Ignore)."{09F7EDC5-294E-4180-AF6A-FB0E6A0E9513}") | Where-Object -FilterScript {$_ -match [regex]::Escape($SystemDriveUniqueID)} + + $Script:ComputerRestorePoint = $false + + if ($null -eq $SystemProtection) + { + $ComputerRestorePoint = $true + Enable-ComputerRestore -Drive $env:SystemDrive + } + + # Never skip creating a restore point + New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name SystemRestorePointCreationFrequency -PropertyType DWord -Value 0 -Force + + Checkpoint-Computer -Description "Sophia Script for Windows 11" -RestorePointType MODIFY_SETTINGS + + # Revert the System Restore checkpoint creation frequency to 1440 minutes + New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name SystemRestorePointCreationFrequency -PropertyType DWord -Value 1440 -Force + + # Turn off System Protection for the system drive if it was turned off before without deleting the existing restore points + if ($Script:ComputerRestorePoint) + { + Disable-ComputerRestore -Drive $env:SystemDrive + } +} +#endregion Protection + +#region Additional function +<# + .SYNOPSIS + Create pre-configured text files for LGPO.exe tool + + .EXAMPLE + Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 0 + + .EXAMPLE + Set-Policy -Scope User -Path Software\Policies\Microsoft\Windows\Explorer -Name DisableSearchBoxSuggestions -Type DWORD -Value 1 + + .NOTES + https://techcommunity.microsoft.com/t5/microsoft-security-baselines/lgpo-exe-local-group-policy-object-utility-v1-0/ba-p/701045 + + .NOTES + Machine-wide user +#> +function script:Set-Policy +{ + [CmdletBinding()] + param + ( + [Parameter( + Mandatory = $true, + Position = 1 + )] + [string] + [ValidateSet("Computer", "User")] + $Scope, + + [Parameter( + Mandatory = $true, + Position = 2 + )] + [string] + $Path, + + [Parameter( + Mandatory = $true, + Position = 3 + )] + [string] + $Name, + + [Parameter( + Mandatory = $true, + Position = 4 + )] + [ValidateSet("DWORD", "SZ", "EXSZ", "CLEAR")] + [string] + $Type, + + [Parameter( + Mandatory = $false, + Position = 5 + )] + $Value + ) + + if (-not (Test-Path -Path "$env:SystemRoot\System32\gpedit.msc")) + { + Write-Information -MessageData "" -InformationAction Continue + Write-Verbose -Message $Localization.Skipped -Verbose + + return + } + + switch ($Type) + { + "CLEAR" + { + $Policy = @" +$Scope +$($Path) +$($Name) +$($Type)`n +"@ + } + default + { + $Policy = @" +$Scope +$($Path) +$($Name) +$($Type):$($Value)`n +"@ + } + } + + if ($Scope -eq "Computer") + { + $Path = "$env:TEMP\Computer.txt" + } + else + { + $Path = "$env:TEMP\User.txt" + } + + # Save in UTF8 without BOM + Add-Content -Path $Path -Value $Policy -Encoding Default -Force +} +#endregion Additional function + +#region Privacy & Telemetry +<# + .SYNOPSIS + The Connected User Experiences and Telemetry (DiagTrack) service + + .PARAMETER Disable + Disable the Connected User Experiences and Telemetry (DiagTrack) service, and block connection for the Unified Telemetry Client Outbound Traffic + + .PARAMETER Enable + Enable the Connected User Experiences and Telemetry (DiagTrack) service, and allow connection for the Unified Telemetry Client Outbound Traffic + + .EXAMPLE + DiagTrackService -Disable + + .EXAMPLE + DiagTrackService -Enable + + .NOTES + Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub + + .NOTES + Current user +#> +function DiagTrackService +{ + param + ( + [Parameter( + Mandatory = $true, + ParameterSetName = "Disable" + )] + [switch] + $Disable, + + [Parameter( + Mandatory = $true, + ParameterSetName = "Enable" + )] + [switch] + $Enable + ) + + # Check whether "InitialActions" function was removed in preset file + if (-not ("WinAPI.GetStrings" -as [type])) + { + # Get the name of a preset (e.g Sophia.ps1) regardless it was named + # $_.File has no EndsWith() method + $PresetName = Split-Path -Path (((Get-PSCallStack).Position | Where-Object -FilterScript {$_.File}).File | Where-Object -FilterScript {$_.EndsWith(".ps1")}) -Leaf + Write-Information -MessageData "" -InformationAction Continue + Write-Verbose -Message ($Localization.InitialActionsCheckFailed -f "`"$PresetName`"") -Verbose + Write-Information -MessageData "" -InformationAction Continue + + Write-Verbose -Message "https://t.me/sophia_chat" -Verbose + Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose + + exit + } + + switch ($PSCmdlet.ParameterSetName) + { + "Disable" + { + # Connected User Experiences and Telemetry + # Disabling the "Connected User Experiences and Telemetry" service (DiagTrack) can cause you not being able to get Xbox achievements anymore and affects Feedback Hub + Get-Service -Name DiagTrack | Stop-Service -Force + Get-Service -Name DiagTrack | Set-Service -StartupType Disabled + + # Block connection for the Unified Telemetry Client Outbound Traffic + Get-NetFirewallRule -Group DiagTrack | Set-NetFirewallRule -Enabled True -Action Block + } + "Enable" + { + # Connected User Experiences and Telemetry + Get-Service -Name DiagTrack | Set-Service -StartupType Automatic + Get-Service -Name DiagTrack | Start-Service + + # Allow connection for the Unified Telemetry Client Outbound Traffic + Get-NetFirewallRule -Group DiagTrack | Set-NetFirewallRule -Enabled True -Action Allow + } + } +} + +<# + .SYNOPSIS + Diagnostic data + + .PARAMETER Minimal + Set the diagnostic data collection to minimum + + .PARAMETER Default + Set the diagnostic data collection to default + + .EXAMPLE + DiagnosticDataLevel -Minimal + + .EXAMPLE + DiagnosticDataLevel -Default + + .NOTES + Machine-wide +#> +function DiagnosticDataLevel +{ + param + ( + [Parameter( + Mandatory = $true, + ParameterSetName = "Minimal" + )] + [switch] + $Minimal, + + [Parameter( + Mandatory = $true, + ParameterSetName = "Default" + )] + [switch] + $Default + ) + + if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection)) + { + New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Force + } + + if (-not (Test-Path -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack)) + { + New-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack -Force + } + + switch ($PSCmdlet.ParameterSetName) + { + "Minimal" + { + # Diagnostic data off + New-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -PropertyType DWord -Value 0 -Force + Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWORD -Value 0 + + New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection -Name MaxTelemetryAllowed -PropertyType DWord -Value 1 -Force + New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack -Name ShowedToastAtLevel -PropertyType DWord -Value 1 -Force + } + "Default" + { + # Optional diagnostic data + New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection -Name MaxTelemetryAllowed -PropertyType DWord -Value 3 -Force + New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Diagnostics\DiagTrack -Name ShowedToastAtLevel -PropertyType DWord -Value 3 -Force + Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Force -ErrorAction Ignore + + Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type CLEAR + } + } +} + +<# + .SYNOPSIS + Windows Error Reporting + + .PARAMETER Disable + Turn off Windows Error Reporting + + .PARAMETER Enable + Turn on Windows Error Reporting + + .EXAMPLE + ErrorReporting -Disable + + .EXAMPLE + ErrorReporting -Enable + + .NOTES + Current user +#> +function ErrorReporting +{ + param + ( + [Parameter( + Mandatory = $true, + ParameterSetName = "Disable" + )] + [switch] + $Disable, + + [Parameter( + Mandatory = $true, + ParameterSetName = "Enable" + )] + [switch] + $Enable + ) + + # Remove all policies in order to make changes visible in UI only if it's possible + Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore + Remove-ItemProperty -Path "HKCU:\Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore + Set-Policy -Scope Computer -Path "SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR + Set-Policy -Scope User -Path "Software\Policies\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Type CLEAR + + switch ($PSCmdlet.ParameterSetName) + { + "Disable" + { + if ((Get-WindowsEdition -Online).Edition -notmatch "Core") + { + Get-ScheduledTask -TaskName QueueReporting -ErrorAction Ignore | Disable-ScheduledTask + New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -PropertyType DWord -Value 1 -Force + } + + Get-Service -Name WerSvc | Stop-Service -Force + Get-Service -Name WerSvc | Set-Service -StartupType Disabled + } + "Enable" + { + Get-ScheduledTask -TaskName QueueReporting -ErrorAction Ignore | Enable-ScheduledTask + Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Windows Error Reporting" -Name Disabled -Force -ErrorAction Ignore + + Get-Service -Name WerSvc | Set-Service -StartupType Manual + Get-Service -Name WerSvc | Start-Service + } + } +} + +<# + .SYNOPSIS + The feedback frequency + + .PARAMETER Never + Change the feedback frequency to "Never" + + .PARAMETER Automatically + Change feedback frequency to "Automatically" + + .EXAMPLE + FeedbackFrequency -Never + + .EXAMPLE + FeedbackFrequency -Automatically + + .NOTES + Current user +#> +function FeedbackFrequency +{ + param + ( + [Parameter( + Mandatory = $true, + ParameterSetName = "Never" + )] + [switch] + $Never, + + [Parameter( + Mandatory = $true, + ParameterSetName = "Automatically" + )] + [switch] + $Automatically + ) + + # Remove all policies in order to make changes visible in UI only if it's possible + Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Force -ErrorAction Ignore + Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name DoNotShowFeedbackNotifications -Type CLEAR + + switch ($PSCmdlet.ParameterSetName) + { + "Never" + { + if (-not (Test-Path -Path HKCU:\Software\Microsoft\Siuf\Rules)) + { + New-Item -Path HKCU:\Software\Microsoft\Siuf\Rules -Force + } + New-ItemProperty -Path HKCU:\Software\Microsoft\Siuf\Rules -Name NumberOfSIUFInPeriod -PropertyType DWord -Value 0 -Force + + Remove-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds -Force -ErrorAction Ignore + } + "Automatically" + { + Remove-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Siuf\Rules -Name PeriodInNanoSeconds, NumberOfSIUFInPeriod -Force -ErrorAction Ignore + } + } +} + +<# + .SYNOPSIS + The diagnostics tracking scheduled tasks + + .PARAMETER Disable + Turn off the diagnostics tracking scheduled tasks + + .PARAMETER Enable + Turn on the diagnostics tracking scheduled tasks + + .EXAMPLE + ScheduledTasks -Disable + + .EXAMPLE + ScheduledTasks -Enable + + .NOTES + A pop-up dialog box lets a user select tasks + + .NOTES + Current user +#> +function ScheduledTasks +{ + param + ( + [Parameter( + Mandatory = $true, + ParameterSetName = "Disable" + )] + [switch] + $Disable, + + [Parameter( + Mandatory = $true, + ParameterSetName = "Enable" + )] + [switch] + $Enable + ) + + Add-Type -AssemblyName PresentationCore, PresentationFramework + + #region Variables + # Initialize an array list to store the selected scheduled tasks + $SelectedTasks = New-Object -TypeName System.Collections.ArrayList($null) + + # The following tasks will have their checkboxes checked + [string[]]$CheckedScheduledTasks = @( + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "MareBackup", + + # Collects program telemetry information if opted-in to the Microsoft Customer Experience Improvement Program + "Microsoft Compatibility Appraiser", + + # Updates compatibility database + "StartupAppTask", + + # This task collects and uploads autochk SQM data if opted-in to the Microsoft Customer Experience Improvement Program + "Proxy", + + # If the user has consented to participate in the Windows Customer Experience Improvement Program, this job collects and sends usage data to Microsoft + "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 + "UsbCeip", + + # The Windows Disk Diagnostic reports general disk and system information to Microsoft for users participating in the Customer Experience Program + "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 + "XblGameSaveTask" + ) + #endregion Variables + + #region XAML Markup + # The section defines the design of the upcoming dialog box + [xml]$XAML = @" + + + + + + + + + + + + + + + + + + +