From 8b3583e61dc5e579ddd5bdeb5d7e8a62b8b10664 Mon Sep 17 00:00:00 2001 From: Cryostrixx Date: Sun, 10 Nov 2024 17:32:30 -0800 Subject: [PATCH] Readd $PSProfile.hash file removal to Invoke-WinUtilUninstallPSProfile.ps1 --- functions/private/Invoke-WinUtilUninstallPSProfile.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 b/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 index d97442d0..98829172 100644 --- a/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 +++ b/functions/private/Invoke-WinUtilUninstallPSProfile.ps1 @@ -175,6 +175,9 @@ function Invoke-WinUtilUninstallPSProfile { # Silently cleanup the oldprofile.ps1 file that was created when the CTT PowerShell profile was installed. Remove-Item "$env:USERPROFILE\oldprofile.ps1" | Out-Null + + # Silently cleanup the $PSProfile.hash file that was created when the CTT PowerShell profile was installed. + Remove-Item "$PSProfile.hash" | Out-Null } else { # Let the user know that the CTT PowerShell profile is not installed and that the uninstallation was skipped. Write-Host "===> Chris Titus Tech's PowerShell Profile Not Found. Skipped Uninstallation. <===" -ForegroundColor Magenta