diff --git a/README.md b/README.md index 749e95b..709ac34 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,10 @@ function prompt { $prompt = "> " If ((New-Object Security.Principal.WindowsPrincipal $( [Security.Principal.WindowsIdentity]::GetCurrent() - ).IsInRole( - [Security.Principal.WindowsBuiltinRole]::Administrator - ) - )) { + )).IsInRole( + [Security.Principal.WindowsBuiltinRole]::Administrator + ) + ) { $prompt = "Admin$prompt" } $prompt diff --git a/profile.ps1 b/profile.ps1 index 011e6d5..ec334d4 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -5,10 +5,10 @@ function prompt { $prompt = "> " If ((New-Object Security.Principal.WindowsPrincipal $( [Security.Principal.WindowsIdentity]::GetCurrent() - ).IsInRole( - [Security.Principal.WindowsBuiltinRole]::Administrator - ) - )) { + )).IsInRole( + [Security.Principal.WindowsBuiltinRole]::Administrator + ) + ) { $prompt = "Admin$prompt" } $prompt diff --git a/update_and_clean.ps1 b/update_and_clean.ps1 index 798df9b..059bcc6 100644 --- a/update_and_clean.ps1 +++ b/update_and_clean.ps1 @@ -2,10 +2,10 @@ param([switch]$elevated) # If not in an Administrator environment If (!(New-Object Security.Principal.WindowsPrincipal $( [Security.Principal.WindowsIdentity]::GetCurrent() - ).IsInRole( - [Security.Principal.WindowsBuiltinRole]::Administrator - ) - )) { + )).IsInRole( + [Security.Principal.WindowsBuiltinRole]::Administrator + ) +) { # and elevating hasn't already been tried if (!$elevated) { # attmempt to become Administrator by re-invoking this script