diff --git a/Wrapper/Config/config_Windows_11_LTSC.json b/Wrapper/Config/config_Windows_11_LTSC.json new file mode 100644 index 00000000..30e2dd69 --- /dev/null +++ b/Wrapper/Config/config_Windows_11_LTSC.json @@ -0,0 +1,2035 @@ +[ + { + "Region": "Protection", + "Control": "cmb", + "Required": "true", + "Function": "InitialActions", + "Arg": { + "Zero": { + "Tag": "Warning" + }, + "One": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "Protection", + "Control": "chk", + "Required": "false", + "Function": "Logging", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Region": "Protection", + "Control": "chk", + "Required": "false", + "Function": "CreateRestorePoint", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "Zero" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "DiagTrackService", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "DiagnosticDataLevel", + "Arg": { + "Zero": { + "Tag": "Minimal" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "ErrorReporting", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "FeedbackFrequency", + "Arg": { + "Zero": { + "Tag": "Never" + }, + "One": { + "Tag": "Automatically" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "ScheduledTasks", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "SigninInfo", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "LanguageListAccess", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "AdvertisingID", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "WindowsWelcomeExperience", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "One", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "WindowsTips", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "One", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "SettingsSuggestedContent", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "AppsSilentInstalling", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "WhatsNewInWindows", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "TailoredExperiences", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "BingSearch", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "StartRecommendationsTips", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Privacy & Telemetry", + "Control": "cmb", + "Required": "false", + "Function": "StartAccountNotifications", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "ThisPC", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "CheckBoxes", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "HiddenItems", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "FileExtensions", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "MergeConflicts", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "OpenFileExplorerTo", + "Arg": { + "Zero": { + "Tag": "ThisPC" + }, + "One": { + "Tag": "QuickAccess" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "FileExplorerCompactMode", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "OneDriveFileExplorerAd", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "SnapAssist", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "FileTransferDialog", + "Arg": { + "Zero": { + "Tag": "Detailed" + }, + "One": { + "Tag": "Compact" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "RecycleBinDeleteConfirmation", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "QuickAccessRecentFiles", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "QuickAccessFrequentFolders", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "TaskbarAlignment", + "Arg": { + "Zero": { + "Tag": "Left" + }, + "One": { + "Tag": "Center" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "TaskbarSearch", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "SearchIcon" + }, + "Two": { + "Tag": "SearchIconLabel" + }, + "Three": { + "Tag": "SearchBox" + } + }, + "Preset": "Zero", + "WindowsDefault": "Three" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "SearchHighlights", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "CopilotButton", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "TaskViewButton", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "PreventTeamsInstallation", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "SecondsInSystemClock", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "TaskbarCombine", + "Arg": { + "Zero": { + "Tag": "Always" + }, + "One": { + "Tag": "Full" + }, + "Two": { + "Tag": "Never" + } + }, + "Preset": "Zero", + "WindowsDefault": "Zero" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "TaskbarEndTask", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "ControlPanelView", + "Arg": { + "Zero": { + "Tag": "LargeIcons" + }, + "One": { + "Tag": "SmallIcons" + }, + "Two": { + "Tag": "Category" + } + }, + "Preset": "Zero", + "WindowsDefault": "Two" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "WindowsColorMode", + "Arg": { + "Zero": { + "Tag": "Dark" + }, + "One": { + "Tag": "Light" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "AppColorMode", + "Arg": { + "Zero": { + "Tag": "Dark" + }, + "One": { + "Tag": "Light" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "FirstLogonAnimation", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "JPEGWallpapersQuality", + "Arg": { + "Zero": { + "Tag": "Max" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "ShortcutsSuffix", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "PrtScnSnippingTool", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "AppsLanguageSwitch", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "AeroShaking", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "One", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "Cursors", + "Arg": { + "Zero": { + "Tag": "Default" + }, + "One": { + "Tag": "Dark" + }, + "Two": { + "Tag": "Light" + } + }, + "Preset": "One", + "WindowsDefault": "Zero" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "FolderGroupBy", + "Arg": { + "Zero": { + "Tag": "None" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "NavigationPaneExpand", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "Zero" + }, + { + "Region": "UI & Personalization", + "Control": "cmb", + "Required": "false", + "Function": "HideRecommendedSection", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "Zero" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "StorageSense", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "StorageSenseFrequency", + "Arg": { + "Zero": { + "Tag": "Month" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "StorageSenseTempFiles", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "Zero" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "Hibernation", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "Win32LongPathLimit", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "BSoDStopError", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "AdminApprovalMode", + "Arg": { + "Zero": { + "Tag": "Never" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "MappedDrivesAppElevatedAccess", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "DeliveryOptimization", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "WindowsManageDefaultPrinter", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "WindowsFeatures", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "WindowsCapabilities", + "Arg": { + "Zero": { + "Tag": "Uninstall" + }, + "One": { + "Tag": "Install" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "UpdateMicrosoftProducts", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RestartNotification", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RestartDeviceAfterUpdate", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "ActiveHours", + "Arg": { + "Zero": { + "Tag": "Automatically" + }, + "One": { + "Tag": "Manually" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "WindowsLatestUpdate", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "Zero" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "PowerPlan", + "Arg": { + "Zero": { + "Tag": "High" + }, + "One": { + "Tag": "Balanced" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "NetworkAdaptersSavePower", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "IPv6Component", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + }, + "Two": { + "Tag": "PreferIPv4overIPv6" + } + }, + "Preset": "One", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "InputMethod", + "Arg": { + "Zero": { + "Tag": "English" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "Set-UserShellFolderLocation", + "Arg": { + "Zero": { + "Tag": "Root" + }, + "One": { + "Tag": "Custom" + }, + "Two": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "Two" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "LatestInstalled.NET", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "WinPrtScrFolder", + "Arg": { + "Zero": { + "Tag": "Desktop" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RecommendedTroubleshooting", + "Arg": { + "Zero": { + "Tag": "Automatically" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "FoldersLaunchSeparateProcess", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "ReservedStorage", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "F1HelpPage", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "NumLock", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "CapsLock", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "StickyShift", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "Autoplay", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "ThumbnailCacheRemoval", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "SaveRestartableApps", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "NetworkDiscovery", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "Set-Association", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "Export-Associations", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "Import-Associations", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "InstallVCRedist", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Region": "System", + "Control": "chk", + "Required": "false", + "Function": "InstallDotNetRuntimes -Runtimes", + "Arg": { + "Zero": { + "Tag": "NET6x64" + }, + "One": { + "Tag": "NET8x64" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RKNBypass", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "PreventEdgeShortcutCreation", + "Arg": { + "Zero": { + "Tag": "Channels" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "SATADrivesRemovableMedia", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Default" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "System", + "Control": "cmb", + "Required": "false", + "Function": "RegistryBackup", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "WSL", + "Control": "chk", + "Required": "false", + "Function": "Install-WSL", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Region": "Start menu", + "Control": "cmb", + "Required": "false", + "Function": "StartLayout", + "Arg": { + "Zero": { + "Tag": "Default" + }, + "One": { + "Tag": "ShowMorePins" + }, + "Two": { + "Tag": "ShowMoreRecommendations" + } + }, + "Preset": "One", + "WindowsDefault": "Zero" + }, + { + "Region": "UWP apps", + "Control": "chk", + "Required": "false", + "Function": "UninstallUWPApps", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "UWP apps", + "Control": "chk", + "Required": "false", + "Function": "UninstallUWPApps -ForAllUsers", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "", + "WindowsDefault": "" + }, + { + "Region": "Gaming", + "Control": "chk", + "Required": "false", + "Function": "Set-AppGraphicsPerformance", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "Gaming", + "Control": "cmb", + "Required": "false", + "Function": "GPUScheduling", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Scheduled tasks", + "Control": "cmb", + "Required": "false", + "Function": "CleanupTask", + "Arg": { + "Zero": { + "Tag": "Register" + }, + "One": { + "Tag": "Delete" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "Scheduled tasks", + "Control": "cmb", + "Required": "false", + "Function": "SoftwareDistributionTask", + "Arg": { + "Zero": { + "Tag": "Register" + }, + "One": { + "Tag": "Delete" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "Scheduled tasks", + "Control": "cmb", + "Required": "false", + "Function": "TempTask", + "Arg": { + "Zero": { + "Tag": "Register" + }, + "One": { + "Tag": "Delete" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "NetworkProtection", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "PUAppsDetection", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "DefenderSandbox", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "chk", + "Required": "false", + "Function": "DismissMSAccount", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "chk", + "Required": "false", + "Function": "DismissSmartScreenFilter", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "EventViewerCustomView", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "PowerShellModulesLogging", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "PowerShellScriptsLogging", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "AppsSmartScreen", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "SaveZoneInformation", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "WindowsScriptHost", + "Arg": { + "Zero": { + "Tag": "Disable" + }, + "One": { + "Tag": "Enable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "WindowsSandbox", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "DNSoverHTTPS", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Microsoft Defender & Security", + "Control": "cmb", + "Required": "false", + "Function": "LocalSecurityAuthority", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Context menu", + "Control": "cmb", + "Required": "false", + "Function": "MSIExtractContext", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Context menu", + "Control": "cmb", + "Required": "false", + "Function": "CABInstallContext", + "Arg": { + "Zero": { + "Tag": "Show" + }, + "One": { + "Tag": "Hide" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Context menu", + "Control": "cmb", + "Required": "false", + "Function": "PrintCMDContext", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Context menu", + "Control": "cmb", + "Required": "false", + "Function": "CompressedFolderNewContext", + "Arg": { + "Zero": { + "Tag": "Hide" + }, + "One": { + "Tag": "Show" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Context menu", + "Control": "cmb", + "Required": "false", + "Function": "MultipleInvokeContext", + "Arg": { + "Zero": { + "Tag": "Enable" + }, + "One": { + "Tag": "Disable" + } + }, + "Preset": "Zero", + "WindowsDefault": "One" + }, + { + "Region": "Update Policies", + "Control": "chk", + "Required": "false", + "Function": "UpdateLGPEPolicies", + "Arg": { + "Zero": { + "Tag": "" + } + }, + "Preset": "Zero", + "WindowsDefault": "" + } +] \ No newline at end of file diff --git a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json index f7d4afc8..3c21c0f9 100644 --- a/Wrapper/Localizations/de-DE/tooltip_Windows_11.json +++ b/Wrapper/Localizations/de-DE/tooltip_Windows_11.json @@ -788,11 +788,25 @@ "Arg": { "Zero": { "Tag": "Disable", - "ToolTip": "Den Navigatiosbereich des Explorers(Linker Abschnitt) nicht auf den aktuellen Ordner erweitern (aufklappen) (Standardeinstellung)." + "ToolTip": "Den Navigatiosbereich des Explorers(Linker Abschnitt) nicht auf den aktuellen Ordner erweitern (Standardeinstellung)." }, "One": { "Tag": "Enable", - "ToolTip": "Der Navigationsbereich des Explorers(Linker Abschnitt) wird auf den aktuellen Ordner erweitert (aufgeklappt)." + "ToolTip": "Der Navigationsbereich des Explorers(Linker Abschnitt) wird auf den aktuellen Ordner erweitert." + } + } + }, + { + "Region": "UI & Personalization", + "Function": "HideRecommendedSection", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Entfernen Sie den Abschnitt Empfohlen im Startmenü." + }, + "One": { + "Tag": "Disable", + "ToolTip": "Entfernen Sie nicht den Abschnitt Empfohlen im Startmenü (Standardeinstellung)." } } }, diff --git a/Wrapper/Localizations/en-US/tooltip_Windows_11.json b/Wrapper/Localizations/en-US/tooltip_Windows_11.json index fa273c50..ae7bb327 100644 --- a/Wrapper/Localizations/en-US/tooltip_Windows_11.json +++ b/Wrapper/Localizations/en-US/tooltip_Windows_11.json @@ -796,6 +796,20 @@ } } }, + { + "Region": "UI & Personalization", + "Function": "HideRecommendedSection", + "Arg": { + "Zero": { + "Tag": "Enable", + "ToolTip": "Do not expand to open folder on navigation pane (default value)." + }, + "One": { + "Tag": "Disable", + "ToolTip": "Do not remove Recommended section in Start Menu (default value)." + } + } + }, { "Region": "OneDrive", "Function": "OneDrive", diff --git a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json index 827ad1be..1a56d574 100644 --- a/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json +++ b/Wrapper/Localizations/ru-RU/tooltip_Windows_11.json @@ -796,6 +796,20 @@ } } }, + { + "Region": "UI & Personalization", + "Function": "NavigationPaneExpand", + "Arg": { + "Zero": { + "Tag": "Disable", + "ToolTip": "Удалить раздел \"Рекомендуем\" в меню \"Пуск\"." + }, + "One": { + "Tag": "Enable", + "ToolTip": "Не удалять раздел \"Рекомендуем\" в меню \"Пуск\" (значение по умолчанию)." + } + } + }, { "Region": "OneDrive", "Function": "OneDrive", 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 index 961dc8ac..97bde60e 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 @@ -3123,70 +3123,6 @@ function TaskbarAlignment } } -<# - .SYNOPSIS - The widgets icon on the taskbar - - .PARAMETER Hide - Hide the widgets icon on the taskbar - - .PARAMETER Show - Show the widgets icon on the taskbar - - .EXAMPLE - TaskbarWidgets -Hide - - .EXAMPLE - TaskbarWidgets -Show - - .NOTES - Current user -#> -function TaskbarWidgets -{ - param - ( - [Parameter( - Mandatory = $true, - ParameterSetName = "Hide" - )] - [switch] - $Hide, - - [Parameter( - Mandatory = $true, - ParameterSetName = "Show" - )] - [switch] - $Show - ) - - if (-not (Get-AppxPackage -Name MicrosoftWindows.Client.WebExperience)) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - - # We cannot set a value to TaskbarDa, having called any of APIs, except of copying powershell.exe (or any other tricks) with a different name, due to a UCPD driver tracks all executables to block the access to the registry - Copy-Item -Path "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" -Destination "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell_temp.exe" -Force - - switch ($PSCmdlet.ParameterSetName) - { - "Hide" - { - & "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell_temp.exe" -Command {New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarDa -PropertyType DWord -Value 0 -Force} - } - "Show" - { - & "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell_temp.exe" -Command {New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name TaskbarDa -PropertyType DWord -Value 1 -Force} - } - } - - Remove-Item -Path "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell_temp.exe" -Force -} - <# .SYNOPSIS Search on the taskbar @@ -4637,17 +4573,17 @@ function NavigationPaneExpand .SYNOPSIS Recommended section in Start Menu - .PARAMETER Disable + .PARAMETER Enable Remove Recommended section in Start Menu - .PARAMETER Enable + .PARAMETER Disable Do not remove Recommended section in Start Menu (default value) .EXAMPLE - HideRecommendedSection -Disable + HideRecommendedSection -Enable .EXAMPLE - HideRecommendedSection -Enable + HideRecommendedSection -Disable .NOTES Current user @@ -4658,22 +4594,22 @@ function HideRecommendedSection ( [Parameter( Mandatory = $true, - ParameterSetName = "Disable" + ParameterSetName = "Enable" )] [switch] - $Disable, + $Enable, [Parameter( Mandatory = $true, - ParameterSetName = "Enable" + ParameterSetName = "Disable" )] [switch] - $Enable + $Disable ) switch ($PSCmdlet.ParameterSetName) { - "Disable" + "Enable" { if (-not (Test-Path -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer)) { @@ -4683,7 +4619,7 @@ function HideRecommendedSection Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecommendedSection -Type DWORD -Value 1 } - "Enable" + "Disable" { Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecommendedSection -Force -ErrorAction Ignore Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\Explorer -Name HideRecommendedSection -Type CLEAR @@ -12815,71 +12751,6 @@ function CABInstallContext } } -<# - .SYNOPSIS - The "Edit with Clipchamp" item in the media files context menu - - .PARAMETER Hide - Hide the "Edit with Clipchamp" item from the media files context menu - - .PARAMETER Show - Show the "Edit with Clipchamp" item in the media files context menu - - .EXAMPLE - EditWithClipchampContext -Hide - - .EXAMPLE - EditWithClipchampContext -Show - - .NOTES - Current user -#> -function EditWithClipchampContext -{ - param - ( - [Parameter( - Mandatory = $true, - ParameterSetName = "Hide" - )] - [switch] - $Hide, - - [Parameter( - Mandatory = $true, - ParameterSetName = "Show" - )] - [switch] - $Show - ) - - if (-not (Get-AppxPackage -Name Clipchamp.Clipchamp)) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{8AB635F8-9A67-4698-AB99-784AD929F3B4}" -Force -ErrorAction Ignore - - switch ($PSCmdlet.ParameterSetName) - { - "Hide" - { - if (-not (Test-Path -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked")) - { - New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Force - } - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{8AB635F8-9A67-4698-AB99-784AD929F3B4}" -PropertyType String -Value "" -Force - } - "Show" - { - Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{8AB635F8-9A67-4698-AB99-784AD929F3B4}" -Force -ErrorAction Ignore - } - } -} - <# .SYNOPSIS The "Print" item in the .bat and .cmd context menu @@ -13039,174 +12910,6 @@ function MultipleInvokeContext } } } - -<# - .SYNOPSIS - The "Open in Windows Terminal" item in the folders context menu - - .PARAMETER Hide - Hide the "Open in Windows Terminal" item in the folders context menu - - .PARAMETER Show - Show the "Open in Windows Terminal" item in the folders context menu - - .EXAMPLE - OpenWindowsTerminalContext -Show - - .EXAMPLE - OpenWindowsTerminalContext -Hide - - .NOTES - Current user -#> -function OpenWindowsTerminalContext -{ - param - ( - [Parameter( - Mandatory = $true, - ParameterSetName = "Show" - )] - [switch] - $Show, - - [Parameter( - Mandatory = $true, - ParameterSetName = "Hide" - )] - [switch] - $Hide - ) - - if (-not (Get-AppxPackage -Name Microsoft.WindowsTerminal)) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{9F156763-7844-4DC4-B2B1-901F640F5155}" -Force -ErrorAction Ignore - - switch ($PSCmdlet.ParameterSetName) - { - "Show" - { - Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{9F156763-7844-4DC4-B2B1-901F640F5155}" -Force -ErrorAction Ignore - } - "Hide" - { - if (-not (Test-Path -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked")) - { - New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Force - } - New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{9F156763-7844-4DC4-B2B1-901F640F5155}" -PropertyType String -Value "" -Force - } - } -} - -<# - .SYNOPSIS - Open Windows Terminal in context menu as administrator - - .PARAMETER Enable - Open Windows Terminal in context menu as administrator by default - - .PARAMETER Disable - Do not open Windows Terminal in context menu as administrator by default - - .EXAMPLE - OpenWindowsTerminalAdminContext -Enable - - .EXAMPLE - OpenWindowsTerminalAdminContext -Disable - - .NOTES - Current user -#> -function OpenWindowsTerminalAdminContext -{ - param - ( - [Parameter( - Mandatory = $true, - ParameterSetName = "Enable" - )] - [switch] - $Enable, - - [Parameter( - Mandatory = $true, - ParameterSetName = "Disable" - )] - [switch] - $Disable - ) - - if (-not (Get-AppxPackage -Name Microsoft.WindowsTerminal)) - { - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - - if (-not (Test-Path -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json")) - { - Start-Process -FilePath wt -PassThru - Start-Sleep -Seconds 2 - Stop-Process -Name WindowsTerminal -Force -PassThru - } - - try - { - $Terminal = Get-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Encoding UTF8 -Force | ConvertFrom-Json - } - catch [System.ArgumentException] - { - Write-Warning -Message (($Global:Error.Exception.Message | Select-Object -First 1)) - Write-Error -Message (($Global:Error.Exception.Message | Select-Object -First 1)) -ErrorAction SilentlyContinue - - Invoke-Item -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState" - - Write-Information -MessageData "" -InformationAction Continue - Write-Verbose -Message $Localization.Skipped -Verbose - - return - } - - switch ($PSCmdlet.ParameterSetName) - { - "Enable" - { - Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{9F156763-7844-4DC4-B2B1-901F640F5155}" -ErrorAction Ignore - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" -Name "{9F156763-7844-4DC4-B2B1-901F640F5155}" -ErrorAction Ignore - - if ($Terminal.profiles.defaults.elevate) - { - $Terminal.profiles.defaults.elevate = $true - } - else - { - $Terminal.profiles.defaults | Add-Member -MemberType NoteProperty -Name elevate -Value $true -Force - } - } - "Disable" - { - if ($Terminal.profiles.defaults.elevate) - { - $Terminal.profiles.defaults.elevate = $false - } - else - { - $Terminal.profiles.defaults | Add-Member -MemberType NoteProperty -Name elevate -Value $false -Force - } - } - } - - # Save in UTF-8 with BOM despite JSON must not has the BOM: https://datatracker.ietf.org/doc/html/rfc8259#section-8.1. Unless Terminal profile names which contains non-Latin characters will have "?" instead of titles - ConvertTo-Json -InputObject $Terminal -Depth 4 | Set-Content -Path "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" -Encoding UTF8 -Force -} #endregion Context menu #region Update Policies diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 index 6e46f8fa..d5da1417 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Sophia.ps1 @@ -1,6 +1,6 @@ <# .SYNOPSIS - Default preset file for "Sophia Script for Windows 11 LTSC 202024"" + Default preset file for "Sophia Script for Windows 11 LTSC 2024" Version: v6.6.9 Date: 16.08.2024 @@ -92,7 +92,7 @@ catch [System.InvalidOperationException] Запустить скрипт, указав в качестве аргумента функции .EXAMPLE - .\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal" + .\Sophia.ps1 -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps .NOTES Use commas to separate funtions @@ -383,14 +383,6 @@ TaskbarAlignment -Center # Установить выравнивание панели задач по левому краю # TaskbarAlignment -Left -# Hide the widgets icon on the taskbar -# Скрыть кнопку "Мини-приложения" с панели задач -TaskbarWidgets -Hide - -# Show the widgets icon on the taskbar (default value) -# Отобразить кнопку "Мини-приложения" на панели задач (значение по умолчанию) -# TaskbarWidgets -Show - # Hide the search on the taskbar # Скрыть поле или значок поиска на панели задач TaskbarSearch -Hide @@ -573,11 +565,11 @@ NavigationPaneExpand -Disable # Remove Recommended section in Start Menu # Удалить раздел "Рекомендуем" в меню "Пуск" -# HideRecommendedSection -Enable +HideRecommendedSection -Enable # Do not remove Recommended section in Start Menu (default value) # Не удалять раздел "Рекомендуем" в меню "Пуск" (значение по умолчанию) -HideRecommendedSection -Disable +# HideRecommendedSection -Disable #endregion UI & Personalization #region System @@ -1240,14 +1232,6 @@ CABInstallContext -Show # Скрыть пункт "Установить" из контекстного меню .cab архивов (значение по умолчанию) # CABInstallContext -Hide -# Hide the "Edit with Clipchamp" item from the media files context menu -# Скрыть пункт "Редактировать в Climpchamp" из контекстного меню -EditWithClipchampContext -Hide - -# Show the "Edit with Clipchamp" item in the media files context menu (default value) -# Отобразить пункт "Редактировать в Climpchamp" в контекстном меню (значение по умолчанию) -# EditWithClipchampContext -Show - # Hide the "Print" item from the .bat and .cmd context menu # Скрыть пункт "Печать" из контекстного меню .bat и .cmd файлов PrintCMDContext -Hide @@ -1271,22 +1255,6 @@ MultipleInvokeContext -Enable # Disable the "Open", "Print", and "Edit" context menu items for more than 15 items selected (default value) # Отключить элементы контекстного меню "Открыть", "Изменить" и "Печать" при выделении более 15 элементов (значение по умолчанию) # MultipleInvokeContext -Disable - -# Show the "Open in Windows Terminal" item in the folders context menu (default value) -# Отобразить пункт "Открыть в Терминале Windows" в контекстном меню папок (значение по умолчанию) -OpenWindowsTerminalContext -Show - -# Hide the "Open in Windows Terminal" item in the folders context menu -# Скрыть пункт "Открыть в Терминале Windows" в контекстном меню папок -# OpenWindowsTerminalContext -Hide - -# Open Windows Terminal in context menu as administrator by default -# Открывать Windows Terminal из контекстного меню от имени администратора по умолчанию -OpenWindowsTerminalAdminContext -Enable - -# Do not open Windows Terminal in context menu as administrator by default (default value) -# Не открывать Windows Terminal из контекстного меню от имени администратора по умолчанию (значение по умолчанию) -# OpenWindowsTerminalAdminContext -Disable #endregion Context menu #region Update Policies