I like this feature in Vista that elevated command prompts have the word “Administrator” in the title bar. This seems to be some special functionality baked into the command prompt – at least this does not work when starting PowerShell elevated.
This little script can do the trick – just call it from your profile.ps1:
$id = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$p = New-Object System.Security.Principal.WindowsPrincipal($id)
if ($p.IsInRole([System.Security.Principal.WindowsBuiltInRole]::Administrator))
{
$Host.UI.RawUI.WindowTitle = “Administrator: ” + $Host.UI.RawUI.WindowTitle
}
Thanks to Christian for the title bar code.