diff --git a/config/feature.json b/config/feature.json index 4021d51b..549b5404 100644 --- a/config/feature.json +++ b/config/feature.json @@ -242,15 +242,7 @@ "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/features/fixes/runadobecccleanertool" }, - "WPFPanelnetwork": { - "Content": "Network Connections", - "category": "Legacy Windows Panels", - "panel": "2", - "Type": "Button", - "ButtonWidth": "300", - "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/network" - }, - "WPFPanelcontrol": { + "WPFPanelControl": { "Content": "Control Panel", "category": "Legacy Windows Panels", "panel": "2", @@ -258,7 +250,7 @@ "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control" }, - "WPFPanelcomputer": { + "WPFPanelComputer": { "Content": "Computer Management", "category": "Legacy Windows Panels", "panel": "2", @@ -266,7 +258,15 @@ "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer" }, - "WPFPanelpower": { + "WPFPanelNetwork": { + "Content": "Network Connections", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/network" + }, + "WPFPanelPower": { "Content": "Power Panel", "category": "Legacy Windows Panels", "panel": "2", @@ -274,23 +274,7 @@ "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/power" }, - "WPFPanelregion": { - "Content": "Region", - "category": "Legacy Windows Panels", - "panel": "2", - "Type": "Button", - "ButtonWidth": "300", - "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region" - }, - "WPFPanelsound": { - "Content": "Sound Settings", - "category": "Legacy Windows Panels", - "panel": "2", - "Type": "Button", - "ButtonWidth": "300", - "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/sound" - }, - "WPFPanelprinter": { + "WPFPanelPrinter": { "Content": "Printer Panel", "category": "Legacy Windows Panels", "panel": "2", @@ -298,7 +282,24 @@ "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer" }, - "WPFPanelsystem": { + "WPFPanelRegion": { + "Content": "Region", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region" + }, + "WPFPanelSound": { + "Content": "Sound Settings", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/user" + }, + + "WPFPanelSystem": { "Content": "System Properties", "category": "Legacy Windows Panels", "panel": "2", @@ -306,20 +307,13 @@ "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/system" }, - "WPFPaneluser": { - "Content": "User Accounts", + "WPFPanelTimedate": { + "Content": "Time and Date", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", - "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/user" - }, - "WPFPanelGodMode": { - "Content": "God Mode", - "category": "Legacy Windows Panels", - "panel": "2", - "Type": "Button", - "ButtonWidth": "300" + "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/timedate" }, "WPFWinUtilInstallPSProfile": { "Content": "Install CTT PowerShell Profile", diff --git a/functions/public/Invoke-WPFButton.ps1 b/functions/public/Invoke-WPFButton.ps1 index 4d5cf19e..a558ad72 100644 --- a/functions/public/Invoke-WPFButton.ps1 +++ b/functions/public/Invoke-WPFButton.ps1 @@ -35,16 +35,16 @@ function Invoke-WPFButton { "WPFFeatureInstall" {Invoke-WPFFeatureInstall} "WPFPanelDISM" {Invoke-WPFSystemRepair} "WPFPanelAutologin" {Invoke-WPFPanelAutologin} - "WPFPanelcomputer" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelcontrol" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelnetwork" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelpower" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelregion" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelsound" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelprinter" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelsystem" {Invoke-WPFControlPanel -Panel $button} - "WPFPaneluser" {Invoke-WPFControlPanel -Panel $button} - "WPFPanelGodMode" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelComputer" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelControl" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelNetwork" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelPower" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelPrinter" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelRegion" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelSound" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelSystem" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelTimedate" {Invoke-WPFControlPanel -Panel $button} + "WPFPanelUser" {Invoke-WPFControlPanel -Panel $button} "WPFUpdatesdefault" {Invoke-WPFFixesUpdate} "WPFFixesUpdate" {Invoke-WPFFixesUpdate} "WPFFixesWinget" {Invoke-WPFFixesWinget} diff --git a/functions/public/Invoke-WPFControlPanel.ps1 b/functions/public/Invoke-WPFControlPanel.ps1 index 9f95c386..da2ab90e 100644 --- a/functions/public/Invoke-WPFControlPanel.ps1 +++ b/functions/public/Invoke-WPFControlPanel.ps1 @@ -11,15 +11,15 @@ function Invoke-WPFControlPanel { param($Panel) switch ($Panel) { - "WPFPanelcontrol" {control} - "WPFPanelcomputer" {compmgmt.msc} - "WPFPanelnetwork" {ncpa.cpl} - "WPFPanelpower" {powercfg.cpl} - "WPFPanelregion" {intl.cpl} - "WPFPanelsound" {mmsys.cpl} - "WPFPanelprinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelsystem" {sysdm.cpl} - "WPFPaneluser" {control userpasswords2} - "WPFPanelGodMode" {Start-Process "shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"} + "WPFPanelControl" {control} + "WPFPanelComputer" {compmgmt.msc} + "WPFPanelNetwork" {ncpa.cpl} + "WPFPanelPower" {powercfg.cpl} + "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} + "WPFPanelRegion" {intl.cpl} + "WPFPanelSound" {mmsys.cpl} + "WPFPanelSystem" {sysdm.cpl} + "WPFPanelTimedate" {timedate.cpl} + "WPFPanelUser" {control userpasswords2} } }