Windows Restore

functions/public/Invoke-WPFControlPanel.ps1
 1function Invoke-WPFControlPanel {
 2    <#
 3
 4    .SYNOPSIS
 5        Opens the requested legacy panel
 6
 7    .PARAMETER Panel
 8        The panel to open
 9
10    #>
11    param($Panel)
12
13    switch ($Panel) {
14        "WPFPanelControl" {control}
15        "WPFPanelComputer" {compmgmt.msc}
16        "WPFPanelNetwork" {ncpa.cpl}
17        "WPFPanelPower"   {powercfg.cpl}
18        "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
19        "WPFPanelRegion"  {intl.cpl}
20        "WPFPanelRestore"  {rstrui.exe}
21        "WPFPanelSound"   {mmsys.cpl}
22        "WPFPanelSystem"  {sysdm.cpl}
23        "WPFPanelTimedate" {timedate.cpl}
24        "WPFPanelUser"    {control userpasswords2}
25    }
26}