mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-06-27 16:44:46 -05:00
add computer management + remove bloat from WPFControlPanel (#3431)
This commit is contained in:
@ -258,6 +258,14 @@
|
|||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control"
|
||||||
},
|
},
|
||||||
|
"WPFPanelcomputer": {
|
||||||
|
"Content": "Computer Management",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer"
|
||||||
|
},
|
||||||
"WPFPanelpower": {
|
"WPFPanelpower": {
|
||||||
"Content": "Power Panel",
|
"Content": "Power Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
|
@ -35,6 +35,7 @@ function Invoke-WPFButton {
|
|||||||
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
||||||
"WPFPanelDISM" {Invoke-WPFSystemRepair}
|
"WPFPanelDISM" {Invoke-WPFSystemRepair}
|
||||||
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
||||||
|
"WPFPanelcomputer" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelcontrol" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelcontrol" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelnetwork" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelnetwork" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelpower" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelpower" {Invoke-WPFControlPanel -Panel $button}
|
||||||
|
@ -11,14 +11,15 @@ function Invoke-WPFControlPanel {
|
|||||||
param($Panel)
|
param($Panel)
|
||||||
|
|
||||||
switch ($Panel) {
|
switch ($Panel) {
|
||||||
"WPFPanelcontrol" {cmd /c control}
|
"WPFPanelcontrol" {control}
|
||||||
"WPFPanelnetwork" {cmd /c ncpa.cpl}
|
"WPFPanelcomputer" {compmgmt.msc}
|
||||||
"WPFPanelpower" {cmd /c powercfg.cpl}
|
"WPFPanelnetwork" {ncpa.cpl}
|
||||||
"WPFPanelregion" {cmd /c intl.cpl}
|
"WPFPanelpower" {powercfg.cpl}
|
||||||
"WPFPanelsound" {cmd /c mmsys.cpl}
|
"WPFPanelregion" {intl.cpl}
|
||||||
|
"WPFPanelsound" {mmsys.cpl}
|
||||||
"WPFPanelprinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
"WPFPanelprinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
"WPFPanelsystem" {cmd /c sysdm.cpl}
|
"WPFPanelsystem" {sysdm.cpl}
|
||||||
"WPFPaneluser" {cmd /c "control userpasswords2"}
|
"WPFPaneluser" {control userpasswords2}
|
||||||
"WPFPanelGodMode" {Start-Process "shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"}
|
"WPFPanelGodMode" {Start-Process "shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user