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) {
|
2025-08-01 17:40:35 +02:00
|
|
|
"WPFPanelControl" {control}
|
|
|
|
|
"WPFPanelComputer" {compmgmt.msc}
|
|
|
|
|
"WPFPanelNetwork" {ncpa.cpl}
|
|
|
|
|
"WPFPanelPower" {powercfg.cpl}
|
|
|
|
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
|
|
|
|
"WPFPanelRegion" {intl.cpl}
|
2025-10-06 09:51:48 -05:00
|
|
|
"WPFPanelRestore" {rstrui.exe}
|
2025-08-01 17:40:35 +02:00
|
|
|
"WPFPanelSound" {mmsys.cpl}
|
|
|
|
|
"WPFPanelSystem" {sysdm.cpl}
|
|
|
|
|
"WPFPanelTimedate" {timedate.cpl}
|
|
|
|
|
"WPFPanelUser" {control userpasswords2}
|
2023-03-07 12:28:00 -08:00
|
|
|
}
|
2024-08-06 23:35:17 +03:00
|
|
|
}
|