From 681f0ec3b903b41caa32a666ae112ffbf168f54d Mon Sep 17 00:00:00 2001 From: Gabi <182965942+GabiNun@users.noreply.github.com> Date: Tue, 10 Feb 2026 22:10:04 +0200 Subject: [PATCH] Change WinUtilInstallPSProfile to use pwsh (#3998) * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Update Invoke-WinUtilInstallPSProfile.ps1 * Mention that ps profile is pwsh only --- config/feature.json | 4 ++-- functions/private/Invoke-WinUtilInstallPSProfile.ps1 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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"' }