Update Invoke-WinUtilInstallPSProfile.ps1 (#4456)

* Update Invoke-WinUtilInstallPSProfile.ps1

* Update Invoke-WinUtilUninstallPSProfile.ps1

* Update Invoke-WinUtilInstallPSProfile.ps1

* Update Invoke-WinUtilUninstallPSProfile.ps1
This commit is contained in:
Gabi
2026-05-07 13:52:20 -07:00
committed by GitHub
parent a3f57532b6
commit ec3166bdc6
2 changed files with 16 additions and 10 deletions
@@ -1,10 +1,9 @@
function Invoke-WinUtilUninstallPSProfile {
if (Test-Path ($Profile + '.bak')) {
Remove-Item $Profile
Rename-Item ($Profile + '.bak') -NewName $Profile
}
else {
Remove-Item $Profile
if (Test-Path ($Profile + ".bak")) {
Move-Item -Path ($Profile + ".bak") -Destination $Profile
} else {
Remove-Item -Path $Profile
}
Write-Host "Successfully uninstalled CTT PowerShell Profile." -ForegroundColor Green