Microsoft KB Archive/254094

From BetaArchive Wiki
Knowledge Base

Runas Utility Uses Default Profile When Invoked from Command Prompt If Not Using the /profile Switch

Article ID: 254094

Article Last Modified on 2/21/2007


  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition

This article was previously published under Q254094


When you use the Runas utility without the /profile option from a command prompt, the default user profile is used instead of the profile of the impersonated user.


When programs use the default profile, files that are typically created in the per-user folders are created in the default user folder. An example of a per-user folder is the My Documents folder. If a program that is invoked from the Runas tool without the /profile switch saves a document in the My Documents folder, the file is saved in the default user My Documents folder, not the My Documents folder of the user that Runas is impersonating.

When you start Runas from Windows Explorer (instead of a command prompt), Runas uses the /profile switch by default. To start Runas from Windows Explorer, click Start, point to Programs, point to Accessories, SHIFT+right-click Command Prompt, and then click Run As.


This behavior is by design.

Keywords: kbprb kbtool KB254094