mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-06-04 22:27:28 +00:00
18 lines
479 B
Markdown
18 lines
479 B
Markdown
---
|
|
title: "CTT PowerShell Profile - Remove"
|
|
description: ""
|
|
---
|
|
|
|
```powershell {filename="functions/private/Invoke-WinUtilUninstallPSProfile.ps1",linenos=inline,linenostart=1}
|
|
function Invoke-WinUtilUninstallPSProfile {
|
|
|
|
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
|
|
}
|
|
```
|