Microsoft KB Archive/258948

= Cmd.exe Shortcut Does Not Have Same &quot;Run as&quot; Behavior as Command Line =

Article ID: 258948

Article Last Modified on 2/20/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



This article was previously published under Q258948



SYMPTOMS
When you use the Run as command from a Microsoft default shortcut whose Start in value is set to &quot;%HOMEDRIVE%%HOMEPATH%&quot; (a common default for shortcuts created by Windows 2000), the command does not work and generates a &quot;The directory name is invalid&quot; 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.

Keywords: kbhotfixserver kbqfe kbfix kbprb kbwin2000presp2fix KB258948

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.