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

Article translations Article translations
Article ID: 258948 - View products that this article applies to.
This article was previously published under Q258948
Expand all | Collapse all

SYMPTOMS

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.

RESOLUTION

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.

STATUS

This behavior is by design.

MORE INFORMATION

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.

Properties

Article ID: 258948 - Last Review: February 20, 2007 - Revision: 3.3
APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
Keywords: 
kbhotfixserver kbqfe kbfix kbprb kbwin2000presp2fix KB258948

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com