Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2007

Enter Your Administrator Credentials Only Once

RSS
Subscribe to Windows IT Pro | See More Security Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Executive Summary:
Following good security practices, administrators should log on to their Windows XP workstations with restricted domain user accounts, not with domain administrator accounts. To avoid logging off and on repeatedly, administrators often launch programs that require administrator credentials by using those programs' Run As option. Here's a simple trick administrators can use to avoid repeatedly entering their administrator account credentials every time they need to use the Run As option.


You're a domain administrator. Following good security practices, you log on to your Windows XP workstation with your restricted domain user account, not with your domain administrator account. To avoid logging off and on repeatedly, alternating between your user and your administrator accounts, you launch programs that require administrator credentials by using those programs' Run As option.

Here's a simple trick you can use to avoid repeatedly entering your administrator account credentials each time you need to use the Run As option. Begin by creating a shortcut to cmd.exe on your desktop. (You can find cmd.exe in the C:\WINDOWS system32 folder.) Right-click the shortcut icon, and select the Run as option. Enter your administrator credentials and click OK. Keep this command-shell window open or minimized. From this point on, you don't need enter your administrative credentials again. To launch an application that requires an administrator account, simply drag and drop the application's icon onto the open command-shell window and press Enter. (If the command-shell window is minimized, you can drag and hover the application's icon over the command-shell window button in the taskbar. After the command-shell window opens, drop the application's icon onto the window.) Every application you launch this way will run under your domain administrator account.

To launch the shortcut icon with a double-click (instead of using its Run As option) and to get the command-shell window to always start positioned in a specific directory, right-click the command-shell window's shortcut icon and select Properties. In the Target field enter runas.exe /user:your_domain_name your_domain_admin_userid "cmd.exe /k cd\your_dir" (replacing your_domain_name, your_domain_admin_userid, and your_dir with the appropriate information).

Finally, to distinguish this command-shell window from other command-shell windows you might have open, give it a different colored background. To do so, use the shortcut to open the command-shell window, right-click anywhere on the title bar, and select Properties. Click the Colors tab. Select the Screen Background radio button, select a color (e.g., red), and click OK. You'll get a dialog box that basically asks whether you want this change to apply to just the current window or future windows as well. Select the option that provides the latter. The option might read Modify shortcut that started this window or Save properties for future windows with same title, depending on your machine.
—Andre Boutet, Technical Analyst, CSST Quebec

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Where is Microsoft NetMeeting in Windows XP?

...


Security Whitepapers The Impact of Messaging and Web Threats

Why SaaS is the Right Solution for Log Management

Protecting (You and) Your Data with Exchange Server 2007

Related Events Security Summit

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing