diff --git a/docs/content/dev/features/Features/DisableLegacyRecovery.md b/docs/content/dev/features/Features/DisableLegacyRecovery.md index 6ba334f7..986e82ce 100644 --- a/docs/content/dev/features/Features/DisableLegacyRecovery.md +++ b/docs/content/dev/features/Features/DisableLegacyRecovery.md @@ -3,13 +3,12 @@ title: "Disable Legacy F8 Boot Recovery" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=107} +```json {filename="config/feature.json",linenos=inline,linenostart=100} "WPFFeatureDisableLegacyRecovery": { "Content": "Disable Legacy F8 Boot Recovery", "Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.", "category": "Features", "panel": "1", - "Order": "a019_", "feature": [], "InvokeScript": [ "bcdedit /set bootmenupolicy standard" diff --git a/docs/content/dev/features/Features/EnableLegacyRecovery.md b/docs/content/dev/features/Features/EnableLegacyRecovery.md index 0ca94091..e74bfbfc 100644 --- a/docs/content/dev/features/Features/EnableLegacyRecovery.md +++ b/docs/content/dev/features/Features/EnableLegacyRecovery.md @@ -3,13 +3,12 @@ title: "Enable Legacy F8 Boot Recovery" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=95} +```json {filename="config/feature.json",linenos=inline,linenostart=89} "WPFFeatureEnableLegacyRecovery": { "Content": "Enable Legacy F8 Boot Recovery", "Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.", "category": "Features", "panel": "1", - "Order": "a018_", "feature": [], "InvokeScript": [ "bcdedit /set bootmenupolicy legacy" diff --git a/docs/content/dev/features/Features/RegBackup.md b/docs/content/dev/features/Features/RegBackup.md index ae6b9478..d8662564 100644 --- a/docs/content/dev/features/Features/RegBackup.md +++ b/docs/content/dev/features/Features/RegBackup.md @@ -3,13 +3,12 @@ title: "Enable Daily Registry Backup Task 12.30am" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=77} +```json {filename="config/feature.json",linenos=inline,linenostart=72} "WPFFeatureRegBackup": { "Content": "Enable Daily Registry Backup Task 12.30am", "Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.", "category": "Features", "panel": "1", - "Order": "a017_", "feature": [], "InvokeScript": [ " diff --git a/docs/content/dev/features/Features/Sandbox.md b/docs/content/dev/features/Features/Sandbox.md index 9fd5ae14..8a8cc5f2 100644 --- a/docs/content/dev/features/Features/Sandbox.md +++ b/docs/content/dev/features/Features/Sandbox.md @@ -3,13 +3,12 @@ title: "Windows Sandbox" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=119} +```json {filename="config/feature.json",linenos=inline,linenostart=111} "WPFFeaturesSandbox": { "Content": "Windows Sandbox", "Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.", "category": "Features", "panel": "1", - "Order": "a021_", "feature": [ "Containers-DisposableClientVM" ], diff --git a/docs/content/dev/features/Features/dotnet.md b/docs/content/dev/features/Features/dotnet.md index 86b71df1..30940195 100644 --- a/docs/content/dev/features/Features/dotnet.md +++ b/docs/content/dev/features/Features/dotnet.md @@ -9,7 +9,6 @@ description: "" "Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.", "category": "Features", "panel": "1", - "Order": "a010_", "feature": [ "NetFx4-AdvSrvs", "NetFx3" diff --git a/docs/content/dev/features/Features/hyperv.md b/docs/content/dev/features/Features/hyperv.md index a16755d3..b7e7ebf8 100644 --- a/docs/content/dev/features/Features/hyperv.md +++ b/docs/content/dev/features/Features/hyperv.md @@ -3,13 +3,12 @@ title: "HyperV Virtualization" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=15} +```json {filename="config/feature.json",linenos=inline,linenostart=14} "WPFFeatureshyperv": { "Content": "HyperV Virtualization", "Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.", "category": "Features", "panel": "1", - "Order": "a011_", "feature": [ "Microsoft-Hyper-V-All" ], diff --git a/docs/content/dev/features/Features/legacymedia.md b/docs/content/dev/features/Features/legacymedia.md index a7ccffd2..8066785b 100644 --- a/docs/content/dev/features/Features/legacymedia.md +++ b/docs/content/dev/features/Features/legacymedia.md @@ -3,13 +3,12 @@ title: "Legacy Media (WMP, DirectPlay)" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=29} +```json {filename="config/feature.json",linenos=inline,linenostart=27} "WPFFeatureslegacymedia": { "Content": "Legacy Media (WMP, DirectPlay)", "Description": "Enables legacy programs from previous versions of windows", "category": "Features", "panel": "1", - "Order": "a012_", "feature": [ "WindowsMediaPlayer", "MediaPlayback", diff --git a/docs/content/dev/features/Features/nfs.md b/docs/content/dev/features/Features/nfs.md index 0975ac01..1f7e0d21 100644 --- a/docs/content/dev/features/Features/nfs.md +++ b/docs/content/dev/features/Features/nfs.md @@ -3,13 +3,12 @@ title: "NFS - Network File System" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=57} +```json {filename="config/feature.json",linenos=inline,linenostart=53} "WPFFeaturenfs": { "Content": "NFS - Network File System", "Description": "Network File System (NFS) is a mechanism for storing files on a network.", "category": "Features", "panel": "1", - "Order": "a014_", "feature": [ "ServicesForNFS-ClientOnly", "ClientForNFS-Infrastructure", diff --git a/docs/content/dev/features/Features/wsl.md b/docs/content/dev/features/Features/wsl.md index 1193ceb9..4237fcd6 100644 --- a/docs/content/dev/features/Features/wsl.md +++ b/docs/content/dev/features/Features/wsl.md @@ -3,13 +3,12 @@ title: "Windows Subsystem for Linux" description: "" --- -```json {filename="config/feature.json",linenos=inline,linenostart=44} +```json {filename="config/feature.json",linenos=inline,linenostart=41} "WPFFeaturewsl": { "Content": "Windows Subsystem for Linux", "Description": "Windows Subsystem for Linux is an optional feature of Windows that allows Linux programs to run natively on Windows without the need for a separate virtual machine or dual booting.", "category": "Features", "panel": "1", - "Order": "a020_", "feature": [ "VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux" diff --git a/docs/content/dev/features/Fixes/DISM.md b/docs/content/dev/features/Fixes/DISM.md index e53529bd..5ba15f6d 100644 --- a/docs/content/dev/features/Fixes/DISM.md +++ b/docs/content/dev/features/Fixes/DISM.md @@ -8,13 +8,15 @@ function Invoke-WPFSystemRepair { <# .SYNOPSIS Checks for system corruption using SFC, and DISM + Checks for disk failure using Chkdsk .DESCRIPTION - 1. SFC - Fixes system file corruption, and fixes DISM if it was corrupted - 2. DISM - Fixes system image corruption, and fixes SFC's system image if it was corrupted - 3. Chkdsk - Checks for disk errors, which can cause system file corruption and notifies of early disk failure + 1. Chkdsk - Checks for disk errors, which can cause system file corruption and notifies of early disk failure + 2. SFC - scans protected system files for corruption and fixes them + 3. DISM - Repair a corrupted Windows operating system image #> - Start-Process cmd.exe -ArgumentList "/c chkdsk.exe /scan /perf" -NoNewWindow -Wait + + Start-Process cmd.exe -ArgumentList "/c chkdsk /scan /perf" -NoNewWindow -Wait Start-Process cmd.exe -ArgumentList "/c sfc /scannow" -NoNewWindow -Wait Start-Process cmd.exe -ArgumentList "/c dism /online /cleanup-image /restorehealth" -NoNewWindow -Wait diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Computer.md b/docs/content/dev/features/Legacy-Windows-Panels/Computer.md index e58b15d5..f9761073 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Computer.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Computer.md @@ -3,31 +3,14 @@ title: "Computer Management" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=186} + "WPFPanelComputer": { + "Content": "Computer Management", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "compmgmt.msc" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Control.md b/docs/content/dev/features/Legacy-Windows-Panels/Control.md index 247cb5b3..c30bb03a 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Control.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Control.md @@ -3,31 +3,14 @@ title: "Control Panel" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=175} + "WPFPanelControl": { + "Content": "Control Panel", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "control" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Network.md b/docs/content/dev/features/Legacy-Windows-Panels/Network.md index 95944b3d..6149b7d3 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Network.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Network.md @@ -3,31 +3,14 @@ title: "Network Connections" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=197} + "WPFPanelNetwork": { + "Content": "Network Connections", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "ncpa.cpl" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Power.md b/docs/content/dev/features/Legacy-Windows-Panels/Power.md index 136ff775..b9cf48f3 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Power.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Power.md @@ -3,31 +3,14 @@ title: "Power Panel" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=208} + "WPFPanelPower": { + "Content": "Power Panel", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "powercfg.cpl" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Printer.md b/docs/content/dev/features/Legacy-Windows-Panels/Printer.md index 5342f638..fd7345ed 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Printer.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Printer.md @@ -3,31 +3,14 @@ title: "Printer Panel" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=219} + "WPFPanelPrinter": { + "Content": "Printer Panel", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "Start-Process 'shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}'" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Region.md b/docs/content/dev/features/Legacy-Windows-Panels/Region.md index 98fa787c..d28419c1 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Region.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Region.md @@ -3,31 +3,14 @@ title: "Region" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=230} + "WPFPanelRegion": { + "Content": "Region", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "intl.cpl" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Restore.md b/docs/content/dev/features/Legacy-Windows-Panels/Restore.md index 9edfe758..9fbd41eb 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Restore.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Restore.md @@ -3,31 +3,14 @@ title: "Windows Restore" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=241} + "WPFPanelRestore": { + "Content": "Windows Restore", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "rstrui.exe" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Sound.md b/docs/content/dev/features/Legacy-Windows-Panels/Sound.md index ff413855..659137a4 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Sound.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Sound.md @@ -3,31 +3,14 @@ title: "Sound Settings" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=252} + "WPFPanelSound": { + "Content": "Sound Settings", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "mmsys.cpl" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/System.md b/docs/content/dev/features/Legacy-Windows-Panels/System.md index 6108abad..7c6c743b 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/System.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/System.md @@ -3,31 +3,14 @@ title: "System Properties" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=263} + "WPFPanelSystem": { + "Content": "System Properties", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "sysdm.cpl" + ], ``` diff --git a/docs/content/dev/features/Legacy-Windows-Panels/Timedate.md b/docs/content/dev/features/Legacy-Windows-Panels/Timedate.md index 612210cc..977349b0 100644 --- a/docs/content/dev/features/Legacy-Windows-Panels/Timedate.md +++ b/docs/content/dev/features/Legacy-Windows-Panels/Timedate.md @@ -3,31 +3,14 @@ title: "Time and Date" description: "" --- -```powershell {filename="functions/public/Invoke-WPFControlPanel.ps1",linenos=inline,linenostart=1} -function Invoke-WPFControlPanel { - <# - - .SYNOPSIS - Opens the requested legacy panel - - .PARAMETER Panel - The panel to open - - #> - param($Panel) - - switch ($Panel) { - "WPFPanelControl" {control} - "WPFPanelComputer" {compmgmt.msc} - "WPFPanelNetwork" {ncpa.cpl} - "WPFPanelPower" {powercfg.cpl} - "WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"} - "WPFPanelRegion" {intl.cpl} - "WPFPanelRestore" {rstrui.exe} - "WPFPanelSound" {mmsys.cpl} - "WPFPanelSystem" {sysdm.cpl} - "WPFPanelTimedate" {timedate.cpl} - "WPFPanelUser" {control userpasswords2} - } -} +```json {filename="config/feature.json",linenos=inline,linenostart=274} + "WPFPanelTimedate": { + "Content": "Time and Date", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "InvokeScript": [ + "timedate.cpl" + ], ``` diff --git a/docs/content/dev/features/Powershell-Profile-Powershell-7--Only/InstallPSProfile.md b/docs/content/dev/features/Powershell-Profile-Powershell-7--Only/InstallPSProfile.md new file mode 100644 index 00000000..a3ca01cf --- /dev/null +++ b/docs/content/dev/features/Powershell-Profile-Powershell-7--Only/InstallPSProfile.md @@ -0,0 +1,15 @@ +--- +title: "Install CTT PowerShell Profile" +description: "" +--- + +```powershell {filename="functions/private/Invoke-WinUtilInstallPSProfile.ps1",linenos=inline,linenostart=1} +function Invoke-WinUtilInstallPSProfile { + + if (Test-Path $Profile) { + Rename-Item $Profile -NewName ($Profile + '.bak') + } + + Start-Process pwsh -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"' +} +``` diff --git a/docs/content/dev/features/Powershell-Profile-Powershell-7--Only/UninstallPSProfile.md b/docs/content/dev/features/Powershell-Profile-Powershell-7--Only/UninstallPSProfile.md new file mode 100644 index 00000000..73a160de --- /dev/null +++ b/docs/content/dev/features/Powershell-Profile-Powershell-7--Only/UninstallPSProfile.md @@ -0,0 +1,18 @@ +--- +title: "Uninstall CTT PowerShell Profile" +description: "" +--- + +```powershell {filename="functions/private/Invoke-WinUtilUninstallPSProfile.ps1",linenos=inline,linenostart=1} +function Invoke-WinUtilUninstallPSProfile { + if (Test-Path ($Profile + '.bak')) { + Remove-Item $Profile + Rename-Item ($Profile + '.bak') -NewName $Profile + } + else { + Remove-Item $Profile + } + + Write-Host "Successfully uninstalled CTT Powershell Profile" -ForegroundColor Green +} +``` diff --git a/docs/content/dev/features/Remote-Access/SSHServer.md b/docs/content/dev/features/Remote-Access/SSHServer.md new file mode 100644 index 00000000..c767b2cf --- /dev/null +++ b/docs/content/dev/features/Remote-Access/SSHServer.md @@ -0,0 +1,24 @@ +--- +title: "Enable OpenSSH Server" +description: "" +--- + +```powershell {filename="functions/public/Invoke-WPFSSHServer.ps1",linenos=inline,linenostart=1} +function Invoke-WPFSSHServer { + <# + + .SYNOPSIS + Invokes the OpenSSH Server install in a runspace + + #> + + Invoke-WPFRunspace -ScriptBlock { + + Invoke-WinUtilSSHServer + + Write-Host "=======================================" + Write-Host "-- OpenSSH Server installed! ---" + Write-Host "=======================================" + } +} +``` diff --git a/docs/content/dev/tweaks/Essential-Tweaks/DisableExplorerAutoDiscovery.md b/docs/content/dev/tweaks/Essential-Tweaks/DisableExplorerAutoDiscovery.md index 5a67ccd7..2b8ecbfb 100644 --- a/docs/content/dev/tweaks/Essential-Tweaks/DisableExplorerAutoDiscovery.md +++ b/docs/content/dev/tweaks/Essential-Tweaks/DisableExplorerAutoDiscovery.md @@ -6,7 +6,7 @@ description: "" ```json {filename="config/tweaks.json",linenos=inline,linenostart=2616} "WPFTweaksDisableExplorerAutoDiscovery": { "Content": "Disable Explorer Automatic Folder Discovery", - "Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience.", + "Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience. WARNING! Will disable file explorer grouping", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ diff --git a/docs/content/dev/tweaks/Essential-Tweaks/Services.md b/docs/content/dev/tweaks/Essential-Tweaks/Services.md index bded6f1c..0f76470c 100644 --- a/docs/content/dev/tweaks/Essential-Tweaks/Services.md +++ b/docs/content/dev/tweaks/Essential-Tweaks/Services.md @@ -967,46 +967,3 @@ description: "" } ], ``` -#Function -```powershell {filename="functions/private/Set-WinUtilService.ps1",linenos=inline,linenostart=1} -Function Set-WinUtilService { - <# - - .SYNOPSIS - Changes the startup type of the given service - - .PARAMETER Name - The name of the service to modify - - .PARAMETER StartupType - The startup type to set the service to - - .EXAMPLE - Set-WinUtilService -Name "HomeGroupListener" -StartupType "Manual" - - #> - param ( - $Name, - $StartupType - ) - try { - Write-Host "Setting Service $Name to $StartupType" - - # Check if the service exists - $service = Get-Service -Name $Name -ErrorAction Stop - - # Service exists, proceed with changing properties -- while handling auto delayed start for PWSH 5 - if (($PSVersionTable.PSVersion.Major -lt 7) -and ($StartupType -eq "AutomaticDelayedStart")) { - sc.exe config $Name start=delayed-auto - } else { - $service | Set-Service -StartupType $StartupType -ErrorAction Stop - } - } catch [System.ServiceProcess.ServiceNotFoundException] { - Write-Warning "Service $Name was not found" - } catch { - Write-Warning "Unable to set $Name due to unhandled exception" - Write-Warning $_.Exception.Message - } - -} -``` diff --git a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RazerBlock.md b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RazerBlock.md index db533b41..8bcd1f9b 100644 --- a/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RazerBlock.md +++ b/docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RazerBlock.md @@ -6,7 +6,7 @@ description: "" ```json {filename="config/tweaks.json",linenos=inline,linenostart=1908} "WPFTweaksRazerBlock": { "Content": "Block Razer Software Installs", - "Description": "Blocks ALL Razer Software installations. The hardware works fine without any software. WARNING: this will also block all Windows third-party driver installations.", + "Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [