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

18 lines
456 B
PowerShell
Raw Normal View History

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