diff --git a/config/feature.json b/config/feature.json index 907a62ce..5a682514 100644 --- a/config/feature.json +++ b/config/feature.json @@ -272,7 +272,7 @@ }, "WPFWinUtilInstallPSProfile": { "Content": "Install CTT PowerShell Profile", - "category": "Powershell Profile", + "category": "Powershell Profile Powershell 7+ Only", "panel": "2", "Order": "a083_", "Type": "Button", @@ -280,7 +280,7 @@ }, "WPFWinUtilUninstallPSProfile": { "Content": "Uninstall CTT PowerShell Profile", - "category": "Powershell Profile", + "category": "Powershell Profile Powershell 7+ Only", "panel": "2", "Order": "a084_", "Type": "Button", diff --git a/functions/private/Invoke-WinUtilInstallPSProfile.ps1 b/functions/private/Invoke-WinUtilInstallPSProfile.ps1 index 970a4dcf..f5eba446 100644 --- a/functions/private/Invoke-WinUtilInstallPSProfile.ps1 +++ b/functions/private/Invoke-WinUtilInstallPSProfile.ps1 @@ -4,5 +4,5 @@ function Invoke-WinUtilInstallPSProfile { Rename-Item $Profile -NewName ($Profile + '.bak') } - Start-Process powershell -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"' + Start-Process pwsh -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"' }