Detecting admin elevation in PowerShell

Published Thu, Feb 15 2007 15:08

Though i really don't like the new UAC much (yes, I agree that it's a necessity, but I still don't like it :)), I'm trying to use it again lately. Another thing I'm trying to do is relearning PowerShell. Ian has posted a great article on how you can use configure your shell so that you know when you're running it as admin or as a regular user (do note that this is not as simple as you may be thinking due to the UAC).

Filed under:

Leave a Comment

(required) 
(required) 
(optional)
(required)