LA.NET [EN]

Feb 15

Detecting admin elevation in PowerShell

Posted in PowerShell      Comments Off on Detecting admin elevation in PowerShell

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).