Featured Resource:

line

Newsletter

Email Address:


line

Ask the Expert

Have a question for our resident expert? Email your questions to Bob or post in the Forum.

« User Account Protection | Main | Restrictions: Vista in a VM »

No Need To RunAs

When you logon and use your computer at home, are you an administrator or a user? Most would have to reluctantly answer “administrator” – we know it is wrong, but as a user with restricted “standard” rights there is just too much you cannot do. At work it is common policy for administrators to have two accounts- a user account and an admin account, using the admin account only when logging into servers or performing certain tasks that require it. In such an environment, RunAs becomes a regularly used utility allowing you to launch certain applications with your “admin account” while still logged in with your regular “user account”. Anyone that has to do this will tell you it is a real nuisance.

A very welcome feature of Windows Vista is User Account Control (UAC) which aims to solve this problem. If you are familiar with RunAs, you may think of it like this: if you are a user or an admin, you actually run as a standard (restricted) account. Then, when you do something that requires admin privileges you are automatically prompted to allow the task to take place. At this point if you are logged in as an admin, you can just answer “OK” and let it happen, if you are not an admin you are given the opportunity to provide admin credentials so that it may happen.

uac-prompt.jpg

In the end this offers the benefit of a locked down environment, without stopping people from doing their work. Further, the system is far less likely to be impacted by malicious software (malware and adware).

Comments

What about running as a different user altogether?

Post a comment

(All comments are approved by site leader before appearing here. Thanks for commenting!)

Library Resources

line
line

Bob Kelly's Bio:

Bob Kelly is the founder of AppDeploy.com — a resource focused on desktop management products and practices. He is author of the Start to Finish Guide to Scripting with KiXtart and The Definitive Guide to Windows Desktop Administration. He is also president and co-founder of iTripoli, Inc. who provide AdminScriptEditor.com, home to an integrated suite of scripting tools and a shared library of scripts and language help. Not enough? For more on Bob click here.