Browse Source

fixed numerous typos

pull/514/head
Dmitry Nefedov 1 year ago
parent
commit
7ba47786d2
  1. 131
      Wrapper/Config/config_Windows_10.json
  2. 524
      Wrapper/Config/config_Windows_10_LTSC.json
  3. 40
      Wrapper/Config/config_Windows_11.json
  4. 91
      Wrapper/Localizations/de-DE/tooltip_Windows_10.json
  5. 38
      Wrapper/Localizations/de-DE/tooltip_Windows_11.json
  6. 36
      Wrapper/Localizations/en-US/tooltip_Windows_11.json
  7. 36
      Wrapper/Localizations/ru-RU/tooltip_Windows_11.json
  8. 20
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  9. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  10. 1
      src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
  11. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  12. 22
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  13. 2
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  14. 4
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

131
Wrapper/Config/config_Windows_10.json

@ -402,76 +402,75 @@
"WindowsDefault": "One"
},
{
"Id": 308,
"Id": 306,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "OneDriveFileExplorerAd",
"Function": "FileExplorerRibbon",
"Arg": {
"Zero": {
"Tag": "Hide"
"Tag": "Expanded"
},
"One": {
"Tag": "Show"
"Tag": "Minimized"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 309,
"Id": 307,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "SnapAssist",
"Function": "OneDriveFileExplorerAd",
"Arg": {
"Zero": {
"Tag": "Disable"
"Tag": "Hide"
},
"One": {
"Tag": "Enable"
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 310,
"Id": 308,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "FileTransferDialog",
"Function": "SnapAssist",
"Arg": {
"Zero": {
"Tag": "Detailed"
"Tag": "Disable"
},
"One": {
"Tag": "Compact"
"Tag": "Enable"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 311,
"Id": 309,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "FileExplorerRibbon",
"Function": "FileTransferDialog",
"Arg": {
"Zero": {
"Tag": "Expanded"
"Tag": "Detailed"
},
"One": {
"Tag": "Minimized"
"Tag": "Compact"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 312,
"Id": 310,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -488,7 +487,7 @@
"WindowsDefault": "One"
},
{
"Id": 313,
"Id": 311,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -505,7 +504,7 @@
"WindowsDefault": "One"
},
{
"Id": 314,
"Id": 312,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -522,7 +521,7 @@
"WindowsDefault": "One"
},
{
"Id": 315,
"Id": 313,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -539,7 +538,7 @@
"WindowsDefault": "One"
},
{
"Id": 316,
"Id": 314,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -559,7 +558,7 @@
"WindowsDefault": "Two"
},
{
"Id": 317,
"Id": 315,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -576,7 +575,7 @@
"WindowsDefault": "One"
},
{
"Id": 318,
"Id": 316,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -593,7 +592,7 @@
"WindowsDefault": "One"
},
{
"Id": 319,
"Id": 317,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -610,7 +609,7 @@
"WindowsDefault": "One"
},
{
"Id": 320,
"Id": 318,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -627,7 +626,7 @@
"WindowsDefault": "One"
},
{
"Id": 321,
"Id": 319,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -644,7 +643,7 @@
"WindowsDefault": "One"
},
{
"Id": 322,
"Id": 320,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -661,7 +660,7 @@
"WindowsDefault": "One"
},
{
"Id": 323,
"Id": 321,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -678,7 +677,7 @@
"WindowsDefault": "One"
},
{
"Id": 324,
"Id": 322,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -695,7 +694,7 @@
"WindowsDefault": "One"
},
{
"Id": 325,
"Id": 323,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -712,7 +711,7 @@
"WindowsDefault": "One"
},
{
"Id": 326,
"Id": 324,
"Region": "UI & Personalization",
"Control": "chk",
"Required": "false",
@ -732,7 +731,7 @@
"WindowsDefault": ""
},
{
"Id": 327,
"Id": 325,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -752,7 +751,7 @@
"WindowsDefault": "Two"
},
{
"Id": 328,
"Id": 326,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -769,7 +768,7 @@
"WindowsDefault": "One"
},
{
"Id": 329,
"Id": 327,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -786,7 +785,7 @@
"WindowsDefault": "One"
},
{
"Id": 330,
"Id": 329,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -803,7 +802,7 @@
"WindowsDefault": "One"
},
{
"Id": 331,
"Id": 330,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -820,7 +819,7 @@
"WindowsDefault": "One"
},
{
"Id": 332,
"Id": 331,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -837,7 +836,7 @@
"WindowsDefault": "One"
},
{
"Id": 333,
"Id": 332,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -854,7 +853,7 @@
"WindowsDefault": "One"
},
{
"Id": 334,
"Id": 333,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -871,7 +870,7 @@
"WindowsDefault": "One"
},
{
"Id": 335,
"Id": 334,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -888,7 +887,7 @@
"WindowsDefault": "One"
},
{
"Id": 336,
"Id": 335,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -905,7 +904,7 @@
"WindowsDefault": "One"
},
{
"Id": 337,
"Id": 336,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -922,7 +921,7 @@
"WindowsDefault": "Zero"
},
{
"Id": 338,
"Id": 337,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -942,7 +941,7 @@
"WindowsDefault": "Zero"
},
{
"Id": 339,
"Id": 338,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -959,7 +958,7 @@
"WindowsDefault": "One"
},
{
"Id": 340,
"Id": 339,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -1283,23 +1282,6 @@
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable"
},
"One": {
"Tag": "Disable"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 517,
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "NetworkAdaptersSavePower",
"Arg": {
"Zero": {
@ -1313,7 +1295,7 @@
"WindowsDefault": "One"
},
{
"Id": 518,
"Id": 517,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1333,7 +1315,7 @@
"WindowsDefault": "One"
},
{
"Id": 519,
"Id": 518,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1350,7 +1332,7 @@
"WindowsDefault": "One"
},
{
"Id": 520,
"Id": 519,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1369,6 +1351,23 @@
"Preset": "Zero",
"WindowsDefault": "Two"
},
{
"Id": 520,
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable"
},
"One": {
"Tag": "Disable"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 521,
"Region": "System",

524
Wrapper/Config/config_Windows_10_LTSC.json

@ -207,82 +207,6 @@
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "WindowsWelcomeExperience",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "One",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 209,
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "WindowsTips",
"Arg": {
"Zero": {
"Tag": "Enable"
},
"One": {
"Tag": "Disable"
}
},
"Preset": "One",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 210,
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "SettingsSuggestedContent",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 211,
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "AppsSilentInstalling",
"Arg": {
"Zero": {
"Tag": "Disable"
},
"One": {
"Tag": "Enable"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 212,
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
"Function": "WhatsNewInWindows",
"Arg": {
"Zero": {
@ -295,10 +219,10 @@
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
"LTSC2021": "true"
},
{
"Id": 213,
"Id": 209,
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
@ -313,11 +237,11 @@
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
"LTSC2019": "false",
"LTSC2021": "true"
},
{
"Id": 214,
"Id": 210,
"Region": "Privacy & Telemetry",
"Control": "cmb",
"Required": "false",
@ -332,7 +256,7 @@
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2019": "false",
"LTSC2021": "true"
},
{
@ -454,19 +378,19 @@
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "CortanaButton",
"Function": "FileExplorerRibbon",
"Arg": {
"Zero": {
"Tag": "Hide"
"Tag": "Expanded"
},
"One": {
"Tag": "Show"
"Tag": "Minimized"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
"LTSC2019": "false",
"LTSC2021": "true"
},
{
"Id": 307,
@ -485,7 +409,7 @@
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
"LTSC2021": "true"
},
{
"Id": 308,
@ -530,26 +454,6 @@
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "FileExplorerRibbon",
"Arg": {
"Zero": {
"Tag": "Expanded"
},
"One": {
"Tag": "Minimized"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 311,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "RecycleBinDeleteConfirmation",
"Arg": {
"Zero": {
@ -565,7 +469,7 @@
"LTSC2021": "true"
},
{
"Id": 312,
"Id": 311,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -584,7 +488,7 @@
"LTSC2021": "true"
},
{
"Id": 313,
"Id": 312,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -603,7 +507,7 @@
"LTSC2021": "true"
},
{
"Id": 314,
"Id": 313,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -622,7 +526,7 @@
"LTSC2021": "true"
},
{
"Id": 315,
"Id": 314,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -644,7 +548,7 @@
"LTSC2021": "true"
},
{
"Id": 316,
"Id": 315,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -663,7 +567,7 @@
"LTSC2021": "true"
},
{
"Id": 317,
"Id": 316,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -682,26 +586,7 @@
"LTSC2021": "true"
},
{
"Id": 318,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "SecondsInSystemClock",
"Arg": {
"Zero": {
"Tag": "Show"
},
"One": {
"Tag": "Hide"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 319,
"Id": 317,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -716,11 +601,11 @@
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2019": "false",
"LTSC2021": "true"
},
{
"Id": 320,
"Id": 318,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -735,71 +620,30 @@
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 321,
"Id": 319,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "MeetNow",
"Function": "SecondsInSystemClock",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 322,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
"Function": "NewsInterests",
"Arg": {
"Zero": {
"Tag": "Disable"
},
"One": {
"Tag": "Enable"
"Tag": "Hide"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 323,
"Region": "UI & Personalization",
"Control": "chk",
"Required": "false",
"Function": "UnpinTaskbarShortcuts -Shortcuts",
"Arg": {
"Zero": {
"Tag": "Edge"
},
"One": {
"Tag": "Store"
},
"Two": {
"Tag": "Mail"
}
},
"Preset": "",
"WindowsDefault": "",
"LTSC2019": "false",
"LTSC2021": "false"
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 324,
"Id": 320,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -821,7 +665,7 @@
"LTSC2021": "true"
},
{
"Id": 325,
"Id": 321,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -840,7 +684,7 @@
"LTSC2021": "true"
},
{
"Id": 326,
"Id": 322,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -859,7 +703,7 @@
"LTSC2021": "true"
},
{
"Id": 327,
"Id": 323,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -878,7 +722,7 @@
"LTSC2021": "true"
},
{
"Id": 328,
"Id": 324,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -897,7 +741,7 @@
"LTSC2021": "true"
},
{
"Id": 329,
"Id": 325,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -916,7 +760,7 @@
"LTSC2021": "true"
},
{
"Id": 330,
"Id": 326,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -935,7 +779,7 @@
"LTSC2021": "true"
},
{
"Id": 331,
"Id": 327,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -954,7 +798,7 @@
"LTSC2021": "true"
},
{
"Id": 332,
"Id": 328,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -973,7 +817,7 @@
"LTSC2021": "true"
},
{
"Id": 333,
"Id": 329,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -992,7 +836,7 @@
"LTSC2021": "true"
},
{
"Id": 334,
"Id": 330,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -1011,7 +855,7 @@
"LTSC2021": "true"
},
{
"Id": 335,
"Id": 331,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -1031,7 +875,7 @@
"WindowsDefault": "Zero"
},
{
"Id": 336,
"Id": 332,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -1048,7 +892,7 @@
"WindowsDefault": "One"
},
{
"Id": 337,
"Id": 333,
"Region": "UI & Personalization",
"Control": "cmb",
"Required": "false",
@ -1064,25 +908,6 @@
"Preset": "Zero",
"WindowsDefault": "Zero"
},
{
"Id": 400,
"Region": "OneDrive",
"Control": "cmb",
"Required": "false",
"Function": "OneDrive",
"Arg": {
"Zero": {
"Tag": "Uninstall"
},
"One": {
"Tag": "Install"
}
},
"Preset": "Zero",
"WindowsDefault": "",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 500,
"Region": "System",
@ -1392,25 +1217,6 @@
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable"
},
"One": {
"Tag": "Disable"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 517,
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "NetworkAdaptersSavePower",
"Arg": {
"Zero": {
@ -1426,7 +1232,7 @@
"LTSC2021": "true"
},
{
"Id": 518,
"Id": 517,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1446,7 +1252,7 @@
"WindowsDefault": "One"
},
{
"Id": 519,
"Id": 518,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1465,7 +1271,7 @@
"LTSC2021": "true"
},
{
"Id": 520,
"Id": 519,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1486,6 +1292,25 @@
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 520,
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable"
},
"One": {
"Tag": "Disable"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 521,
"Region": "System",
@ -1958,9 +1783,6 @@
},
"One": {
"Tag": "DevicesPrinters"
},
"Two": {
"Tag": "PowerShell"
}
},
"Preset": "012",
@ -1984,152 +1806,9 @@
"LTSC2019": "false",
"LTSC2021": "true"
},
{
"Id": 800,
"Region": "UWP apps",
"Control": "chk",
"Required": "false",
"Function": "UninstallUWPApps",
"Arg": {
"Zero": {
"Tag": ""
}
},
"Preset": "Zero",
"WindowsDefault": "",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 801,
"Region": "UWP apps",
"Control": "chk",
"Required": "false",
"Function": "UninstallUWPApps -ForAllUsers",
"Arg": {
"Zero": {
"Tag": ""
}
},
"Preset": "",
"WindowsDefault": "",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 802,
"Region": "UWP apps",
"Control": "chk",
"Required": "false",
"Function": "RestoreUWPApps",
"Arg": {
"Zero": {
"Tag": ""
}
},
"Preset": "",
"WindowsDefault": "",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 803,
"Region": "UWP apps",
"Control": "cmb",
"Required": "false",
"Function": "HEVC",
"Arg": {
"Zero": {
"Tag": "Manually"
},
"One": {
"Tag": "Install"
}
},
"Preset": "One",
"WindowsDefault": "",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 804,
"Region": "UWP apps",
"Control": "cmb",
"Required": "false",
"Function": "CortanaAutostart",
"Arg": {
"Zero": {
"Tag": "Disable"
},
"One": {
"Tag": "Enable"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 806,
"Region": "UWP apps",
"Control": "cmb",
"Required": "false",
"Function": "BackgroundUWPApps",
"Arg": {
"Zero": {
"Tag": "Disable"
},
"One": {
"Tag": "Enable"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "true"
},
{
"Id": 900,
"Region": "Gaming",
"Control": "cmb",
"Required": "false",
"Function": "XboxGameBar",
"Arg": {
"Zero": {
"Tag": "Disable"
},
"One": {
"Tag": "Enable"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "true",
"LTSC2021": "false"
},
{
"Id": 901,
"Region": "Gaming",
"Control": "cmb",
"Required": "false",
"Function": "XboxGameTips",
"Arg": {
"Zero": {
"Tag": "Disable"
},
"One": {
"Tag": "Enable"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "true",
"LTSC2021": "false"
},
{
"Id": 902,
"Region": "Gaming",
"Control": "chk",
"Required": "false",
"Function": "Set-AppGraphicsPerformance",
@ -2144,7 +1823,7 @@
"LTSC2021": "true"
},
{
"Id": 903,
"Id": 901,
"Region": "Gaming",
"Control": "cmb",
"Required": "false",
@ -2598,44 +2277,6 @@
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
"Function": "EditWithPhotosContext",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 1207,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
"Function": "CreateANewVideoContext",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 1208,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
"Function": "ImagesEditContext",
"Arg": {
"Zero": {
@ -2648,10 +2289,10 @@
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
"LTSC2021": "true"
},
{
"Id": 1209,
"Id": 1207,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
@ -2670,7 +2311,7 @@
"LTSC2021": "true"
},
{
"Id": 1210,
"Id": 1208,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
@ -2689,7 +2330,7 @@
"LTSC2021": "true"
},
{
"Id": 1211,
"Id": 1209,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
@ -2708,7 +2349,7 @@
"LTSC2021": "true"
},
{
"Id": 1212,
"Id": 1210,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
@ -2727,7 +2368,7 @@
"LTSC2021": "true"
},
{
"Id": 1213,
"Id": 1211,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
@ -2746,7 +2387,7 @@
"LTSC2021": "true"
},
{
"Id": 1214,
"Id": 1212,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
@ -2765,7 +2406,7 @@
"LTSC2021": "true"
},
{
"Id": 1215,
"Id": 1213,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
@ -2783,25 +2424,6 @@
"LTSC2019": "true",
"LTSC2021": "true"
},
{
"Id": 1216,
"Region": "Context menu",
"Control": "cmb",
"Required": "false",
"Function": "UseStoreOpenWith",
"Arg": {
"Zero": {
"Tag": "Hide"
},
"One": {
"Tag": "Show"
}
},
"Preset": "Zero",
"WindowsDefault": "One",
"LTSC2019": "false",
"LTSC2021": "false"
},
{
"Id": 1300,
"Region": "Update Policies",

40
Wrapper/Config/config_Windows_11.json

@ -1180,23 +1180,6 @@
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable"
},
"One": {
"Tag": "Disable"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 517,
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "NetworkAdaptersSavePower",
"Arg": {
"Zero": {
@ -1210,7 +1193,7 @@
"WindowsDefault": "One"
},
{
"Id": 518,
"Id": 517,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1230,7 +1213,7 @@
"WindowsDefault": "One"
},
{
"Id": 519,
"Id": 518,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1247,7 +1230,7 @@
"WindowsDefault": "One"
},
{
"Id": 520,
"Id": 519,
"Region": "System",
"Control": "cmb",
"Required": "false",
@ -1266,6 +1249,23 @@
"Preset": "Zero",
"WindowsDefault": "Two"
},
{
"Id": 520,
"Region": "System",
"Control": "cmb",
"Required": "false",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable"
},
"One": {
"Tag": "Disable"
}
},
"Preset": "Zero",
"WindowsDefault": "One"
},
{
"Id": 521,
"Region": "System",

91
Wrapper/Localizations/de-DE/tooltip_Windows_10.json

@ -369,21 +369,6 @@
{
"Id": 307,
"Region": "UI & Personalization",
"Function": "FileExplorerMode",
"Arg": {
"Zero": {
"Tag": "Disable",
"ToolTip": "Deaktiviert den Kompaktmodus des Datei-Explorers."
},
"One": {
"Tag": "Enable",
"ToolTip": "Aktivieret den Kompaktmodus des Datei-Explorers (Standardeinstellung)."
}
}
},
{
"Id": 308,
"Region": "UI & Personalization",
"Function": "OneDriveFileExplorerAd",
"Arg": {
"Zero": {
@ -397,7 +382,7 @@
}
},
{
"Id": 309,
"Id": 308,
"Region": "UI & Personalization",
"Function": "SnapAssist",
"Arg": {
@ -412,7 +397,7 @@
}
},
{
"Id": 310,
"Id": 309,
"Region": "UI & Personalization",
"Function": "FileTransferDialog",
"Arg": {
@ -427,7 +412,7 @@
}
},
{
"Id": 311,
"Id": 310,
"Region": "UI & Personalization",
"Function": "RecycleBinDeleteConfirmation",
"Arg": {
@ -442,7 +427,7 @@
}
},
{
"Id": 312,
"Id": 311,
"Region": "UI & Personalization",
"Function": "3DObjects",
"Arg": {
@ -457,7 +442,7 @@
}
},
{
"Id": 313,
"Id": 312,
"Region": "UI & Personalization",
"Function": "QuickAccessRecentFiles",
"Arg": {
@ -472,7 +457,7 @@
}
},
{
"Id": 314,
"Id": 313,
"Region": "UI & Personalization",
"Function": "QuickAccessFrequentFolders",
"Arg": {
@ -487,7 +472,7 @@
}
},
{
"Id": 315,
"Id": 314,
"Region": "UI & Personalization",
"Function": "TaskbarSearch",
"Arg": {
@ -506,7 +491,7 @@
}
},
{
"Id": 316,
"Id": 315,
"Region": "UI & Personalization",
"Function": "SearchHighlights",
"Arg": {
@ -521,7 +506,7 @@
}
},
{
"Id": 317,
"Id": 316,
"Region": "UI & Personalization",
"Function": "CortanaButton",
"Arg": {
@ -536,7 +521,7 @@
}
},
{
"Id": 318,
"Id": 317,
"Region": "UI & Personalization",
"Function": "TaskViewButton",
"Arg": {
@ -551,7 +536,7 @@
}
},
{
"Id": 319,
"Id": 318,
"Region": "UI & Personalization",
"Function": "NewsInterests",
"Arg": {
@ -566,7 +551,7 @@
}
},
{
"Id": 320,
"Id": 319,
"Region": "UI & Personalization",
"Function": "PeopleTaskbar",
"Arg": {
@ -581,7 +566,7 @@
}
},
{
"Id": 321,
"Id": 320,
"Region": "UI & Personalization",
"Function": "MeetNow",
"Arg": {
@ -596,7 +581,7 @@
}
},
{
"Id": 322,
"Id": 321,
"Region": "UI & Personalization",
"Function": "WindowsInkWorkspace",
"Arg": {
@ -611,37 +596,37 @@
}
},
{
"Id": 323,
"Id": 322,
"Region": "UI & Personalization",
"Function": "SecondsInSystemClock",
"Function": "NotificationAreaIcons",
"Arg": {
"Zero": {
"Tag": "Show",
"ToolTip": "Sekunden auf der Taskleistenuhr anzeigen."
"ToolTip": "Immer alle Symbole im Infobereich der Taskleiste anzeigen."
},
"One": {
"Tag": "Hide",
"ToolTip": "Sekunden auf der Taskleistenuhr ausblenden (Standardeinstellung)."
"ToolTip": "Alle Symbole im Infobereich der Taskleiste ausblenden (Standardeinstellung)."
}
}
},
{
"Id": 324,
"Id": 323,
"Region": "UI & Personalization",
"Function": "NotificationAreaIcons",
"Function": "SecondsInSystemClock",
"Arg": {
"Zero": {
"Tag": "Show",
"ToolTip": "Immer alle Symbole im Infobereich der Taskleiste anzeigen."
"ToolTip": "Sekunden auf der Taskleistenuhr anzeigen."
},
"One": {
"Tag": "Hide",
"ToolTip": "Alle Symbole im Infobereich der Taskleiste ausblenden (Standardeinstellung)."
"ToolTip": "Sekunden auf der Taskleistenuhr ausblenden (Standardeinstellung)."
}
}
},
{
"Id": 325,
"Id": 324,
"Region": "UI & Personalization",
"Function": "UnpinTaskbarShortcuts -Shortcuts",
"ToolTip": "Die Verknüpfungen \"Microsoft Edge\", \"Microsoft Store\" oder \"Mail\" von der Taskleiste lösen.",
@ -661,7 +646,7 @@
}
},
{
"Id": 326,
"Id": 325,
"Region": "UI & Personalization",
"Function": "ControlPanelView",
"Arg": {
@ -680,7 +665,7 @@
}
},
{
"Id": 327,
"Id": 326,
"Region": "UI & Personalization",
"Function": "WindowsColorMode",
"Arg": {
@ -695,7 +680,7 @@
}
},
{
"Id": 328,
"Id": 327,
"Region": "UI & Personalization",
"Function": "AppColorMode",
"Arg": {
@ -710,7 +695,7 @@
}
},
{
"Id": 329,
"Id": 328,
"Region": "UI & Personalization",
"Function": "NewAppInstalledNotification",
"Arg": {
@ -725,7 +710,7 @@
}
},
{
"Id": 330,
"Id": 329,
"Region": "UI & Personalization",
"Function": "FirstLogonAnimation",
"Arg": {
@ -740,7 +725,7 @@
}
},
{
"Id": 331,
"Id": 330,
"Region": "UI & Personalization",
"Function": "JPEGWallpapersQuality",
"Arg": {
@ -755,7 +740,7 @@
}
},
{
"Id": 332,
"Id": 331,
"Region": "UI & Personalization",
"Function": "TaskManagerWindow",
"Arg": {
@ -770,7 +755,7 @@
}
},
{
"Id": 333,
"Id": 332,
"Region": "UI & Personalization",
"Function": "ShortcutsSuffix",
"Arg": {
@ -785,7 +770,7 @@
}
},
{
"Id": 334,
"Id": 333,
"Region": "UI & Personalization",
"Function": "PrtScnSnippingTool",
"Arg": {
@ -800,7 +785,7 @@
}
},
{
"Id": 335,
"Id": 334,
"Region": "UI & Personalization",
"Function": "AppsLanguageSwitch",
"Arg": {
@ -815,7 +800,7 @@
}
},
{
"Id": 336,
"Id": 335,
"Region": "UI & Personalization",
"Function": "AeroShaking",
"Arg": {
@ -830,7 +815,7 @@
}
},
{
"Id": 337,
"Id": 336,
"Region": "UI & Personalization",
"Function": "Cursors",
"Arg": {
@ -849,7 +834,7 @@
}
},
{
"Id": 338,
"Id": 337,
"Region": "UI & Personalization",
"Function": "FolderGroupBy",
"Arg": {
@ -864,7 +849,7 @@
}
},
{
"Id": 339,
"Id": 338,
"Region": "UI & Personalization",
"Function": "NavigationPaneExpand",
"Arg": {
@ -1492,7 +1477,7 @@
"Arg": {
"Zero": {
"Tag": "",
"ToolTip": "Installieren Sie die neueste unterstützte Microsoft Visual C++ Redistributable 2015-2022 x64."
"ToolTip": "Installieren Sie die neueste unterstützte Microsoft Visual C++ Redistributable 20152022 x64."
}
}
},

38
Wrapper/Localizations/de-DE/tooltip_Windows_11.json

@ -1042,21 +1042,6 @@
{
"Id": 516,
"Region": "System",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable",
"ToolTip": "Neueste installierte .NET-Laufzeitumgebung für alle Apps verwenden."
},
"One": {
"Tag": "Disable",
"ToolTip": "Neueste installierte .NET-Laufzeitumgebung nicht für alle Apps verwenden (Standardeinstellung)."
}
}
},
{
"Id": 517,
"Region": "System",
"Function": "NetworkAdaptersSavePower",
"Arg": {
"Zero": {
@ -1070,7 +1055,7 @@
}
},
{
"Id": 518,
"Id": 517,
"Region": "System",
"Function": "IPv6Component",
"Arg": {
@ -1089,7 +1074,7 @@
}
},
{
"Id": 519,
"Id": 518,
"Region": "System",
"Function": "InputMethod",
"Arg": {
@ -1104,7 +1089,7 @@
}
},
{
"Id": 520,
"Id": 519,
"Region": "System",
"Function": "Set-UserShellFolderLocation",
"Arg": {
@ -1122,6 +1107,21 @@
}
}
},
{
"Id": 520,
"Region": "System",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable",
"ToolTip": "Neueste installierte .NET-Laufzeitumgebung für alle Apps verwenden."
},
"One": {
"Tag": "Disable",
"ToolTip": "Neueste installierte .NET-Laufzeitumgebung nicht für alle Apps verwenden (Standardeinstellung)."
}
}
},
{
"Id": 521,
"Region": "System",
@ -1406,7 +1406,7 @@
"Arg": {
"Zero": {
"Tag": "",
"ToolTip": "Installieren Sie die neueste unterstützte Microsoft Visual C++ Redistributable 2015-2022 x64."
"ToolTip": "Installieren Sie die neueste unterstützte Microsoft Visual C++ Redistributable 20152022 x64."
}
}
},

36
Wrapper/Localizations/en-US/tooltip_Windows_11.json

@ -1042,21 +1042,6 @@
{
"Id": 516,
"Region": "System",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable",
"ToolTip": "Use the latest installed .NET runtime for all apps."
},
"One": {
"Tag": "Disable",
"ToolTip": "Do not use the latest installed .NET runtime for all apps (default value)."
}
}
},
{
"Id": 517,
"Region": "System",
"Function": "NetworkAdaptersSavePower",
"Arg": {
"Zero": {
@ -1070,7 +1055,7 @@
}
},
{
"Id": 518,
"Id": 517,
"Region": "System",
"Function": "IPv6Component",
"Arg": {
@ -1089,7 +1074,7 @@
}
},
{
"Id": 519,
"Id": 518,
"Region": "System",
"Function": "InputMethod",
"Arg": {
@ -1104,7 +1089,7 @@
}
},
{
"Id": 520,
"Id": 519,
"Region": "System",
"Function": "Set-UserShellFolderLocation",
"Arg": {
@ -1122,6 +1107,21 @@
}
}
},
{
"Id": 520,
"Region": "System",
"Function": "LatestInstalled.NET",
"Arg": {
"Zero": {
"Tag": "Enable",
"ToolTip": "Use the latest installed .NET runtime for all apps."
},
"One": {
"Tag": "Disable",
"ToolTip": "Do not use the latest installed .NET runtime for all apps (default value)."
}
}
},
{
"Id": 521,
"Region": "System",

36
Wrapper/Localizations/ru-RU/tooltip_Windows_11.json

@ -264,7 +264,7 @@
{
"Id": 215,
"Region": "Privacy & Telemetry",
"Function": "BingSearch",
"Function": "BrowsingHistory",
"Arg": {
"Zero": {
"Tag": "Hide",
@ -489,6 +489,21 @@
{
"Id": 314,
"Region": "UI & Personalization",
"Function": "TaskbarWidgets",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Скрыть кнопку \"Мини-приложения\" с панели задач."
},
"One": {
"Tag": "Show",
"ToolTip": "Отобразить кнопку \"Мини-приложения\" на панели задач (значение по умолчанию)."
}
}
},
{
"Id": 315,
"Region": "UI & Personalization",
"Function": "TaskbarSearch",
"Arg": {
"Zero": {
@ -510,7 +525,7 @@
}
},
{
"Id": 315,
"Id": 316,
"Region": "UI & Personalization",
"Function": "TaskViewButton",
"Arg": {
@ -524,21 +539,6 @@
}
}
},
{
"Id": 316,
"Region": "UI & Personalization",
"Function": "TaskbarWidgets",
"Arg": {
"Zero": {
"Tag": "Hide",
"ToolTip": "Скрыть кнопку \"Мини-приложения\" с панели задач."
},
"One": {
"Tag": "Show",
"ToolTip": "Отобразить кнопку \"Мини-приложения\" на панели задач (значение по умолчанию)."
}
}
},
{
"Id": 317,
"Region": "UI & Personalization",
@ -2106,7 +2106,7 @@
"One": {
"Tag": "Hide",
"ToolTip": "Скрыть пункт \"Открыть в Терминале Windows\" в контекстном меню папок."
},
}
}
},
{

20
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -15390,6 +15390,16 @@ public static void PostMessage()
gpupdate /force
}
# Call MeetNow unless binary value is reverted
if (-not $Script:MeetNow)
{
MeetNow -Hide
}
elseif ($Script:MeetNow)
{
MeetNow -Show
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
@ -15421,16 +15431,6 @@ public static void PostMessage()
# Open Task Scheduler
Start-Process -FilePath taskschd.msc
}
# Call MeetNow unless binary value is reverted
if (-not $Script:MeetNow)
{
MeetNow -Hide
}
elseif ($Script:MeetNow)
{
MeetNow -Show
}
#endregion Other actions
#region Toast notifications

2
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -879,7 +879,7 @@ function script:AdditionalChecks
# Calculate the string number to uncomment "Checks -Warning"
$LineNumber = (Select-String -Path $PresetName -Pattern Checks | Select-String -Pattern "{Checks}", "The mandatory checks" -NotMatch).LineNumber
# Get date from the required line to replace it with "Checks -Warning"
# Get data from the required line to replace it with "Checks -Warning"
$RequiredLine = (Get-Content -Path $PresetName -Encoding UTF8) | Where-Object -FilterScript {$_.ReadCount -eq $LineNumber}
(Get-Content -Path $PresetName -Encoding UTF8).Replace($RequiredLine, "Checks -Warning") | Set-Content -Path $PresetName -Encoding UTF8 -Force

1
src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1

@ -182,7 +182,6 @@ AdvertisingID -Disable
# Let apps use advertising ID to make ads more interresting to you based on your app usage (default value)
# Разрешить приложениям использовать идентификатор рекламы (значение по умолчанию)
# AdvertisingID -Enable
#endregion Privacy & Telemetry
#region UI & Personalization

2
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -882,7 +882,7 @@ function script:AdditionalChecks
# Calculate the string number to uncomment "Checks -Warning"
$LineNumber = (Select-String -Path $PresetName -Pattern Checks | Select-String -Pattern "{Checks}", "The mandatory checks" -NotMatch).LineNumber
# Get date from the required line to replace it with "Checks -Warning"
# Get data from the required line to replace it with "Checks -Warning"
$RequiredLine = (Get-Content -Path $PresetName -Encoding UTF8) | Where-Object -FilterScript {$_.ReadCount -eq $LineNumber}
(Get-Content -Path $PresetName -Encoding UTF8).Replace($RequiredLine, "Checks -Warning") | Set-Content -Path $PresetName -Encoding UTF8 -Force

22
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -1033,7 +1033,7 @@ function script:AdditionalChecks
# Calculate the string number to uncomment "Checks -Warning"
$LineNumber = (Select-String -Path $PresetName -Pattern Checks | Select-String -Pattern "{Checks}", "The mandatory checks" -NotMatch).LineNumber
# Get date from the required line to replace it with "Checks -Warning"
# Get data from the required line to replace it with "Checks -Warning"
$RequiredLine = (Get-Content -Path $PresetName -Encoding UTF8) | Where-Object -FilterScript {$_.ReadCount -eq $LineNumber}
(Get-Content -Path $PresetName -Encoding UTF8).Replace($RequiredLine, "Checks -Warning") | Set-Content -Path $PresetName -Encoding UTF8 -Force
@ -15417,6 +15417,16 @@ public static void PostMessage()
gpupdate /force
}
# Call MeetNow unless binary value is reverted
if (-not $Script:MeetNow)
{
MeetNow -Hide
}
elseif ($Script:MeetNow)
{
MeetNow -Show
}
# PowerShell 5.1 (7.3 too) interprets 8.3 file name literally, if an environment variable contains a non-latin word
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Recurse -Force -ErrorAction Ignore
@ -15448,16 +15458,6 @@ public static void PostMessage()
# Open Task Scheduler
Start-Process -FilePath taskschd.msc
}
# Call MeetNow unless binary value is reverted
if (-not $Script:MeetNow)
{
MeetNow -Hide
}
elseif ($Script:MeetNow)
{
MeetNow -Show
}
#endregion Other actions
#region Toast notifications

2
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -1080,7 +1080,7 @@ function script:AdditionalChecks
# Calculate the string number to uncomment "Checks -Warning"
$LineNumber = (Select-String -Path $PresetName -Pattern Checks | Select-String -Pattern "{Checks}", "The mandatory checks" -NotMatch).LineNumber
# Get date from the required line to replace it with "Checks -Warning"
# Get data from the required line to replace it with "Checks -Warning"
$RequiredLine = (Get-Content -Path $PresetName -Encoding UTF8) | Where-Object -FilterScript {$_.ReadCount -eq $LineNumber}
(Get-Content -Path $PresetName -Encoding UTF8).Replace($RequiredLine, "Checks -Warning") | Set-Content -Path $PresetName -Encoding UTF8 -Force

4
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -1084,7 +1084,7 @@ function script:AdditionalChecks
# Calculate the string number to uncomment "Checks -Warning"
$LineNumber = (Select-String -Path $PresetName -Pattern Checks | Select-String -Pattern "{Checks}", "The mandatory checks" -NotMatch).LineNumber
# Get date from the required line to replace it with "Checks -Warning"
# Get data from the required line to replace it with "Checks -Warning"
$RequiredLine = (Get-Content -Path $PresetName -Encoding UTF8) | Where-Object -FilterScript {$_.ReadCount -eq $LineNumber}
(Get-Content -Path $PresetName -Encoding UTF8).Replace($RequiredLine, "Checks -Warning") | Set-Content -Path $PresetName -Encoding UTF8 -Force
@ -7960,7 +7960,7 @@ function WinPrtScrFolder
"Desktop"
{
# Check how the script was invoked: via a preset or Function.ps1
# $_.File has no EndsWith() method
# $_.File has no EndsWith() method
$PresetName = ((Get-PSCallStack).Position | Where-Object -FilterScript {($_.Text -eq "WinPrtScrFolder -Desktop") -or ($_.Text -match "Invoke-Expression")}).File | Where-Object -FilterScript {$_.EndsWith(".ps1") -and ($_ -notmatch "Functions.ps1")}
if ($PresetName)
{

Loading…
Cancel
Save