Skip to content

CTT PowerShell Profile - Remove

functions/private/Invoke-WinUtilUninstallPSProfile.ps1
 1function Invoke-WinUtilUninstallPSProfile {
 2
 3    if (Test-Path ($Profile + ".bak")) {
 4        Move-Item -Path ($Profile + ".bak") -Destination $Profile
 5    } else {
 6        Remove-Item -Path $Profile
 7    }
 8
 9    Write-Host "Successfully uninstalled CTT PowerShell Profile." -ForegroundColor Green
10}