2023-03-07 12:28:00 -08:00
|
|
|
function Invoke-WPFControlPanel {
|
2023-10-19 17:12:55 -05:00
|
|
|
<#
|
|
|
|
|
|
|
|
|
|
.SYNOPSIS
|
|
|
|
|
Opens the requested legacy panel
|
|
|
|
|
|
|
|
|
|
.PARAMETER Panel
|
|
|
|
|
The panel to open
|
|
|
|
|
|
2023-03-07 12:28:00 -08:00
|
|
|
#>
|
|
|
|
|
param($Panel)
|
|
|
|
|
|
2024-08-06 23:35:17 +03:00
|
|
|
switch ($Panel) {
|
2023-03-07 12:28:00 -08:00
|
|
|
"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}
|
2023-03-07 12:28:00 -08:00
|
|
|
"WPFPanelsound" {cmd /c mmsys.cpl}
|
2024-09-10 03:14:22 +02:00
|
|
|
"WPFPanelprinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
2023-03-07 12:28:00 -08:00
|
|
|
"WPFPanelsystem" {cmd /c sysdm.cpl}
|
|
|
|
|
"WPFPaneluser" {cmd /c "control userpasswords2"}
|
|
|
|
|
}
|
2024-08-06 23:35:17 +03:00
|
|
|
}
|