Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
farag2 committed Jun 18, 2023
1 parent 220f5a9 commit cefb222
Show file tree
Hide file tree
Showing 19 changed files with 154 additions and 160 deletions.
6 changes: 3 additions & 3 deletions Wrapper/Localizations/de-DE/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Deaktiviert den Ruhezustand. Es wird nicht empfohlen, ihn auf Laptops zu deaktivieren."
"ToolTip": "Deaktiviert den Ruhezustand. Es wird nicht empfohlen, die Funktion für Laptops zu deaktivieren."
},
"One": {
"Tag": "Enable",
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"Arg": {
"Zero": {
"Tag": "High",
"ToolTip": "Stellt den Energiesparplan auf \"Hohe Leistung\" ein. Es wird nicht empfohlen, den Energiesparplan \"Hohe Leistung\" auf Laptops zu aktivieren."
"ToolTip": "Stellt den Energiesparplan auf \"Hohe Leistung\" ein. Es wird nicht empfohlen, sie für Laptops einzuschalten."
},
"One": {
"Tag": "Balanced",
Expand Down Expand Up @@ -1166,7 +1166,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Erlauben Sie dem Computer nicht, die Netzwerkadapter auszuschalten, um Strom zu sparen."
"ToolTip": "Erlauben Sie dem Computer nicht, die Netzwerkadapter auszuschalten, um Strom zu sparen. Es wird nicht empfohlen, die Funktion für Laptops zu deaktivieren."
},
"One": {
"Tag": "Enable",
Expand Down
6 changes: 3 additions & 3 deletions Wrapper/Localizations/de-DE/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Ruhezustand deaktivieren. Es wird nicht empfohlen, ihn auf Laptops zu deaktivieren."
"ToolTip": "Ruhezustand deaktivieren. Es wird nicht empfohlen, die Funktion für Laptops zu deaktivieren."
},
"One": {
"Tag": "Enable",
Expand Down Expand Up @@ -1016,7 +1016,7 @@
"Arg": {
"Zero": {
"Tag": "High",
"ToolTip": "Energiesparplan auf \"Hohe Leistung\" einstellen. Es wird nicht empfohlen, den Energiesparplan \"Hohe Leistung\" auf Laptops zu aktivieren."
"ToolTip": "Energiesparplan auf \"Hohe Leistung\" einstellen. Es wird nicht empfohlen, sie für Laptops einzuschalten."
},
"One": {
"Tag": "Balanced",
Expand Down Expand Up @@ -1046,7 +1046,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Computer nicht erlauben, die Netzwerkadapter auszuschalten, um Strom zu sparen."
"ToolTip": "Computer nicht erlauben, die Netzwerkadapter auszuschalten, um Strom zu sparen. Es wird nicht empfohlen, die Funktion für Laptops zu deaktivieren."
},
"One": {
"Tag": "Enable",
Expand Down
6 changes: 3 additions & 3 deletions Wrapper/Localizations/en-US/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Disable hibernation. Do not recommend turning it off on laptops."
"ToolTip": "Disable hibernation. It isn't recommended to turn off for laptops."
},
"One": {
"Tag": "Enable",
Expand Down Expand Up @@ -1121,7 +1121,7 @@
"Arg": {
"Zero": {
"Tag": "High",
"ToolTip": "Set power plan on \"High performance\". It isn't recommended to turn on the \"High performance\" power plan on laptops."
"ToolTip": "Set power plan on \"High performance\". It isn't recommended to turn on for laptops."
},
"One": {
"Tag": "Balanced",
Expand Down Expand Up @@ -1151,7 +1151,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Do not allow the computer to turn off the network adapters to save power."
"ToolTip": "Do not allow the computer to turn off the network adapters to save power. It isn't recommended to turn off for laptops."
},
"One": {
"Tag": "Enable",
Expand Down
6 changes: 3 additions & 3 deletions Wrapper/Localizations/en-US/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Disable hibernation. Do not recommend turning it off on laptops."
"ToolTip": "Disable hibernation. It isn't recommended to turn off for laptops."
},
"One": {
"Tag": "Enable",
Expand Down Expand Up @@ -1016,7 +1016,7 @@
"Arg": {
"Zero": {
"Tag": "High",
"ToolTip": "Set power plan on \"High performance\". It isn't recommended to turn on the \"High performance\" power plan on laptops."
"ToolTip": "Set power plan on \"High performance\". It isn't recommended to turn on for laptops."
},
"One": {
"Tag": "Balanced",
Expand Down Expand Up @@ -1046,7 +1046,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Do not allow the computer to turn off the network adapters to save power."
"ToolTip": "Do not allow the computer to turn off the network adapters to save power. It isn't recommended to turn off for laptops."
},
"One": {
"Tag": "Enable",
Expand Down
6 changes: 3 additions & 3 deletions Wrapper/Localizations/ru-RU/tooltip_Windows_10.json
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Отключить режим гибернации. Не рекомендуется выключать на ноутбуках."
"ToolTip": "Отключить режим гибернации. Не рекомендуется выключать на ноутбуках. Не рекомендуется выключать на ноутбуках."
},
"One": {
"Tag": "Enable",
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"Arg": {
"Zero": {
"Tag": "High",
"ToolTip": "Установить схему управления питанием на \"Высокая производительность\". Не рекомендуется включать схему управления питанием \"Высокая производительность\" для ноутбуков."
"ToolTip": "Установить схему управления питанием на \"Высокая производительность\". Не рекомендуется включать на ноутбуках."
},
"One": {
"Tag": "Balanced",
Expand Down Expand Up @@ -1166,7 +1166,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Запретить отключение всех сетевых адаптеров для экономии энергии."
"ToolTip": "Запретить отключение всех сетевых адаптеров для экономии энергии. Не рекомендуется выключать на ноутбуках."
},
"One": {
"Tag": "Enable",
Expand Down
10 changes: 5 additions & 5 deletions Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,11 +546,11 @@
"Arg": {
"Zero": {
"Tag": "Show",
"ToolTip": "Отображать секунды в системных часах на панели задач."
"ToolTip": "Показывать секунды на часах на панели задач."
},
"One": {
"Tag": "Hide",
"ToolTip": "Скрывать секунды в системных часах на панели задач (значение по умолчанию)."
"ToolTip": "Скрыть секунды на часах на панели задач (значение по умолчанию)."
}
}
},
Expand Down Expand Up @@ -836,7 +836,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Отключить режим гибернации. Не рекомендуется выключать на ноутбуках."
"ToolTip": "Отключить режим гибернации. Не рекомендуется выключать на ноутбуках. Не рекомендуется выключать на ноутбуках."
},
"One": {
"Tag": "Enable",
Expand Down Expand Up @@ -1016,7 +1016,7 @@
"Arg": {
"Zero": {
"Tag": "High",
"ToolTip": "Установить схему управления питанием на \"Высокая производительность\". Не рекомендуется включать схему управления питанием \"Высокая производительность\" для ноутбуков."
"ToolTip": "Установить схему управления питанием на \"Высокая производительность\". Не рекомендуется включать на ноутбуках."
},
"One": {
"Tag": "Balanced",
Expand Down Expand Up @@ -1046,7 +1046,7 @@
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Запретить отключение всех сетевых адаптеров для экономии энергии."
"ToolTip": "Запретить отключение всех сетевых адаптеров для экономии энергии. Не рекомендуется выключать на ноутбуках."
},
"One": {
"Tag": "Enable",
Expand Down
45 changes: 27 additions & 18 deletions src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Checks

# Progress bar can significantly impact cmdlet performance
# https://github.com/PowerShell/PowerShell/issues/2138
$ProgressPreference = "SilentlyContinue"
$Script:ProgressPreference = "SilentlyContinue"

# Extract strings from %SystemRoot%\System32\shell32.dll using its' number
$Signature = @{
Expand Down Expand Up @@ -6616,7 +6616,7 @@ function UpdateMicrosoftProducts
PowerPlan -Balanced
.NOTES
It isn't recommended to turn on the "High performance" power plan on laptops
It isn't recommended to turn on for laptops
.NOTES
Current user
Expand Down Expand Up @@ -6670,7 +6670,7 @@ function PowerPlan
NetworkAdaptersSavePower -Enable
.NOTES
Do not recommend turning it on on laptops
It isn't recommended to turn off for laptops
.NOTES
Current user
Expand Down Expand Up @@ -11020,13 +11020,6 @@ function UninstallUWPApps
#region Variables
# The following UWP apps will have their checkboxes unchecked
$UncheckedAppxPackages = @(
# AMD Radeon Software
"AdvancedMicroDevicesInc-2.AMDRadeonSoftware",

# Intel Graphics Control Center
"AppUp.IntelGraphicsControlPanel",
"AppUp.IntelGraphicsExperience",

# Sticky Notes
"Microsoft.MicrosoftStickyNotes",

Expand All @@ -11053,6 +11046,9 @@ function UninstallUWPApps
"Microsoft.GamingApp",
"Microsoft.GamingServices",

# Paint
"Microsoft.Paint",

# Xbox TCUI
"Microsoft.Xbox.TCUI",

Expand All @@ -11063,23 +11059,27 @@ function UninstallUWPApps
"Microsoft.XboxGamingOverlay",

# Xbox Game Bar Plugin
"Microsoft.XboxGameOverlay",

# NVIDIA Control Panel
"NVIDIACorp.NVIDIAControlPanel",

# Realtek Audio Console
"RealtekSemiconductorCorp.RealtekAudioControl"
"Microsoft.XboxGameOverlay"
)

# The following UWP apps will be excluded from the display
$ExcludedAppxPackages = @(
# AMD Radeon Software
"AdvancedMicroDevicesInc-2.AMDRadeonSoftware",

# Intel Graphics Control Center
"AppUp.IntelGraphicsControlPanel",
"AppUp.IntelGraphicsExperience",

# Microsoft Desktop App Installer
"Microsoft.DesktopAppInstaller",

# Store Experience Host
"Microsoft.StorePurchaseApp",

# Notepad
"Microsoft.WindowsNotepad",

# Microsoft Store
"Microsoft.WindowsStore",

Expand Down Expand Up @@ -11108,8 +11108,17 @@ function UninstallUWPApps
# MPEG-2 Video Extension
"Microsoft.MPEG2VideoExtension",

# VP9 Video Extensions
"Microsoft.VP9VideoExtensions",

# PowerShell
"Microsoft.PowerShell"
"Microsoft.PowerShell",

# NVIDIA Control Panel
"NVIDIACorp.NVIDIAControlPanel",

# Realtek Audio Console
"RealtekSemiconductorCorp.RealtekAudioControl"
)

#region Variables
Expand Down
15 changes: 5 additions & 10 deletions src/Sophia_Script_for_Windows_10/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ StorageSenseTempFiles -Enable
# StorageSenseTempFiles -Disable
#endregion StorageSense

# Disable hibernation. Do not recommend turning it off on laptops
# Disable hibernation. It isn't recommended to turn off for laptops
# Отключить режим гибернации. Не рекомендуется выключать на ноутбуках
Hibernation -Disable

Expand Down Expand Up @@ -714,21 +714,16 @@ UpdateMicrosoftProducts -Enable
# При обновлении Windows не получать обновления для других продуктов Майкрософт (значение по умолчанию)
# UpdateMicrosoftProducts -Disable

<#
Set power plan on "High performance"
It isn't recommended to turn on the "High performance" power plan on laptops
Установить схему управления питанием на "Высокая производительность"
Не рекомендуется включать схему управления питанием "Высокая производительность" для ноутбуков
#>
# Set power plan on "High performance". It isn't recommended to turn on for laptops
# Установить схему управления питанием на "Высокая производительность". Не рекомендуется включать на ноутбуках
PowerPlan -High

# Set power plan on "Balanced" (default value)
# Установить схему управления питанием на "Сбалансированная" (значение по умолчанию)
# PowerPlan -Balanced

# Do not allow the computer to turn off the network adapters to save power
# Запретить отключение всех сетевых адаптеров для экономии энергии
# Do not allow the computer to turn off the network adapters to save power. It isn't recommended to turn off for laptops
# Запретить отключение всех сетевых адаптеров для экономии энергии. Не рекомендуется выключать на ноутбуках
NetworkAdaptersSavePower -Disable

# Allow the computer to turn off the network adapters to save power (default value)
Expand Down
6 changes: 3 additions & 3 deletions src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Checks

# Progress bar can significantly impact cmdlet performance
# https://github.com/PowerShell/PowerShell/issues/2138
$ProgressPreference = "SilentlyContinue"
$Script:ProgressPreference = "SilentlyContinue"

# Extract strings from %SystemRoot%\System32\shell32.dll using its' number
$Signature = @{
Expand Down Expand Up @@ -5253,7 +5253,7 @@ function UpdateMicrosoftProducts
PowerPlan -Balanced

.NOTES
It isn't recommended to turn on the "High performance" power plan on laptops
It isn't recommended to turn on for laptops

.NOTES
Current user
Expand Down Expand Up @@ -5307,7 +5307,7 @@ function PowerPlan
NetworkAdaptersSavePower -Enable

.NOTES
Do not recommend turning it on on laptops
It isn't recommended to turn off for laptops

.NOTES
Current user
Expand Down
15 changes: 5 additions & 10 deletions src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ StorageSenseTempFiles -Enable
# StorageSenseTempFiles -Disable
#endregion StorageSense

# Disable hibernation. Do not recommend turning it off on laptops
# Disable hibernation. It isn't recommended to turn off for laptops
# Отключить режим гибернации. Не рекомендуется выключать на ноутбуках
Hibernation -Disable

Expand Down Expand Up @@ -572,21 +572,16 @@ UpdateMicrosoftProducts -Enable
# При обновлении Windows не получать обновления для других продуктов Майкрософт (значение по умолчанию)
# UpdateMicrosoftProducts -Disable

<#
Set power plan on "High performance"
It isn't recommended to turn on the "High performance" power plan on laptops
Установить схему управления питанием на "Высокая производительность"
Не рекомендуется включать схему управления питанием "Высокая производительность" для ноутбуков
#>
# Set power plan on "High performance". It isn't recommended to turn on for laptops
# Установить схему управления питанием на "Высокая производительность". Не рекомендуется включать на ноутбуках
PowerPlan -High

# Set power plan on "Balanced" (default value)
# Установить схему управления питанием на "Сбалансированная" (значение по умолчанию)
# PowerPlan -Balanced

# Do not allow the computer to turn off the network adapters to save power
# Запретить отключение всех сетевых адаптеров для экономии энергии
# Do not allow the computer to turn off the network adapters to save power. It isn't recommended to turn off for laptops
# Запретить отключение всех сетевых адаптеров для экономии энергии. Не рекомендуется выключать на ноутбуках
NetworkAdaptersSavePower -Disable

# Allow the computer to turn off the network adapters to save power (default value)
Expand Down
Loading

0 comments on commit cefb222

Please sign in to comment.