Files
winutil/functions/public/Invoke-WPFControlPanel.ps1
T

19 lines
500 B
PowerShell
Raw Normal View History

+3
2023-03-07 12:28:00 -08:00
function Invoke-WPFControlPanel {
<#
.DESCRIPTION
2023-08-02 19:43:52 -05:00
Simple Switch for legacy windows
+3
2023-03-07 12:28:00 -08:00
#>
param($Panel)
switch ($Panel){
"WPFPanelcontrol" {cmd /c control}
"WPFPanelnetwork" {cmd /c ncpa.cpl}
"WPFPanelpower" {cmd /c powercfg.cpl}
2023-08-02 19:43:52 -05:00
"WPFPanelregion" {cmd /c intl.cpl}
+3
2023-03-07 12:28:00 -08:00
"WPFPanelsound" {cmd /c mmsys.cpl}
"WPFPanelsystem" {cmd /c sysdm.cpl}
"WPFPaneluser" {cmd /c "control userpasswords2"}
}
}