Microsoft KB Archive/272472

= Runas Command Does Not Work with UPN Name =

Article ID: 272472

Article Last Modified on 2/19/2007

-

APPLIES TO


 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 1

-



This article was previously published under Q272472



SYMPTOMS
After you install Microsoft Windows 2000 Service Pack 1, the runas command may not work correctly (whether you use the command from a command prompt or in a script).

If you use a user principal name (UPN) name, such as, @ .com, the program starts successfully, but when the program initializes you may receive the following error message:

Microsoft Visual C++ Runtime Library

Runtime Error!

Program &quot;path to executable&quot;

abnormal program termination

If you use &quot;plain&quot; user names, the behavior on standalone computers is the same as for UPN names. On domain members and domain controllers, the runas command generates the following error message:

RUNAS ERROR: Unable to run - &quot;command&quot;

1326: Logon failure: unknown user name or bad password.

You may experience these issues with tools such as Ntbackup.exe or Mmc.exe that are used by administrative consoles.



CAUSE
The runas command uses the TranslateName function to convert the user name syntax to the \  syntax if necessary. The value that is returned from the TranslateName function is used to grant desktop access to the user. If this does not work, the user does not have access to the desktop and the program does not start.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

The English version of this fix should have the following file attributes or later:   Date        Time    Version        Size     File name 12/18/2000 01:05p  5.0.2195.2778  357,648  Advapi32.dll



WORKAROUND
To work around this problem, you can use the \  syntax for both UPN names and plain user names. On standalone computers or when you want to use a local account on a domain member, use the computer name as the security principal. For UPN names, use the down-level domain name and the down-level user name.

For domain members and domain controllers, the supported formats for user names are domainname\username and UPN name. 'Plain' names are not supported in this configuration if the intent is to run Runas with domain credentials.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.

Keywords: kbbug kbfix kbwin2000presp2fix kbqfe kbhotfixserver KB272472

-

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

© Microsoft Corporation. All rights reserved.