This commit is contained in:
secretspecter 2023-06-19 00:12:44 -04:00
parent 0934084b60
commit b022d39083

View file

@ -39,7 +39,7 @@ A very simple first customization one can do is update the prompt. This will ind
```powershell ```powershell
function prompt { function prompt {
$prompt = "> " $prompt = "> "
If ((New-Object Security.Principal.WindowsPrincipal $( if ((New-Object Security.Principal.WindowsPrincipal $(
[Security.Principal.WindowsIdentity]::GetCurrent() [Security.Principal.WindowsIdentity]::GetCurrent()
)).IsInRole( )).IsInRole(
[Security.Principal.WindowsBuiltinRole]::Administrator [Security.Principal.WindowsBuiltinRole]::Administrator