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

26 lines
704 B
PowerShell
Raw Normal View History

+3
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
+3
2023-03-07 12:28:00 -08:00
#>
param($Panel)
switch ($Panel) {
"WPFPanelcontrol" {control}
"WPFPanelcomputer" {compmgmt.msc}
"WPFPanelnetwork" {ncpa.cpl}
"WPFPanelpower" {powercfg.cpl}
"WPFPanelregion" {intl.cpl}
"WPFPanelsound" {mmsys.cpl}
2024-09-10 03:14:22 +02:00
"WPFPanelprinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
"WPFPanelsystem" {sysdm.cpl}
"WPFPaneluser" {control userpasswords2}
"WPFPanelGodMode" {Start-Process "shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"}
+3
2023-03-07 12:28:00 -08:00
}
}