mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-06 14:48:31 +00:00
19 lines
497 B
Markdown
19 lines
497 B
Markdown
---
|
|
title: "Uninstall CTT PowerShell Profile"
|
|
description: ""
|
|
---
|
|
|
|
```powershell {filename="functions/private/Invoke-WinUtilUninstallPSProfile.ps1",linenos=inline,linenostart=1}
|
|
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
|
|
}
|
|
```
|