Cmd.exe Shortcut Does Not Have Same "Run as" Behavior as Command Line

This article was previously published under Q258948
This article has been archived. It is offered "as is" and will no longer be updated.
When you use the Run as command from a Microsoft default shortcut whose Start in value is set to "%HOMEDRIVE%%HOMEPATH%" (a common default for shortcuts created by Windows 2000), the command does not work and generates a "The directory name is invalid" error message. This can occur if the primary user's account has a home folder that is mapped from a server share, on which the secondary user (usually the local administrator) does not have privileges.
To work around this behavior, you can delete the path before using the Run as command by viewing the properties for the shortcut and changing the Start in path to be blank.

Also you can set both administrator passwords to be the same. Local administrators could use a different account to complete administrative tasks on their computers.
This behavior is by design.
For additional information about this behavior, see Windows 2000 Help: Click Start, click Help, click the Search tab, type runas, click List Topics, and then double-click the Use Run as to start a program as an administrator topic.

Article ID: 258948 - Last Review: 12/05/2015 19:30:32 - Revision: 3.3

Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, Microsoft Windows 2000 Professional Edition

  • kbnosurvey kbarchive kbhotfixserver kbqfe kbfix kbprb kbwin2000presp2fix KB258948