winutil/functions/public/Invoke-WPFControlPanel.ps1
2023-10-04 10:08:10 -05:00

19 lines
492 B
PowerShell

function Invoke-WPFControlPanel {
<#
.DESCRIPTION
Simple Switch for legacy windows
#>
param($Panel)
switch ($Panel){
"WPFPanelcontrol" {cmd /c control}
"WPFPanelnetwork" {cmd /c ncpa.cpl}
"WPFPanelpower" {cmd /c powercfg.cpl}
"WPFPanelregion" {cmd /c intl.cpl}
"WPFPanelsound" {cmd /c mmsys.cpl}
"WPFPanelsystem" {cmd /c sysdm.cpl}
"WPFPaneluser" {cmd /c "control userpasswords2"}
}
}