Posts Tagged ‘administrator’

PostHeaderIcon PowerShell Profile Trick – Change Background Color On Administrative Shell

 

Here’s a great piece of profile customization: Make your PowerShell session have a dark red background each time it starts a session running as an administrator.

To do this, I look the built in $host variable, which has several properties in it, such as the foreground color and the background color of the shell.  Here’s the difference between a PowerShell session running in normal mode (blue screen) vs. administrator mode (red screen)

Standard PowerShell Session

Blue background on regular session

Administrative Powershell Session

Red background on an administrative session

 

Read the rest of this entry »

Real Time Web Analytics