Files
winutil/functions/private/Invoke-WinUtilUninstallPSProfile.ps1
T

12 lines
315 B
PowerShell
Raw Normal View History

function Invoke-WinUtilUninstallPSProfile {
if (Test-Path ($Profile + '.bak')) {
Remove-Item $Profile
Rename-Item ($Profile + '.bak') -NewName $Profile
}
else {
Remove-Item $Profile
}
Write-Host "Successfully uninstalled CTT Powershell Profile" -ForegroundColor Green
}