Readd $PSProfile.hash file removal to Invoke-WinUtilUninstallPSProfile.ps1

This commit is contained in:
Cryostrixx 2024-11-10 17:32:30 -08:00
parent e07710d69c
commit 8b3583e61d
No known key found for this signature in database
GPG Key ID: BB5F0D4A545DBB71

View File

@ -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