Windows Client OS

Runas Command Failure

Why do get errors when trying to run programs or MMC snap-ins with the RUNAS command?

As a security best practice, it is recommended that you do not log on to your computer with administrative credentials. Running your computer as a member of the Administrators group makes the system vulnerable to Trojan horses attacks and other security risks.

It is recommended that you use a regular, non-administrative user account to perform routine tasks, including running programs and visiting Internet sites. When it becomes necessary to perform administrative tasks on the local computer or in Active Directory, use RUNAS to start a program using administrative credentials.

RUNAS allows you to accomplish administrative tasks without exposing your computer or data stored in Active Directory to unnecessary risk.

Sponsored Content

Maximize Value from Microsoft Defender

In this ebook, you’ll learn why Red Canary’s platform and expertise bring you the highest possible value from your Microsoft Defender for Endpoint investment, deployment, or migration.

However, Windows 2000/XP/2003 administrators might get error messages when trying to run the RUNAS command.

Here are some of the reasons for these errors:

Service not started or disabled

If you’re trying to run the RUNAS command yet fail without any specific error message, good chance is that the service was stopped or even set to be disabled on that computer.

To start the service follow the next steps:

  1. Go to the Services applet in Administrative Tools (or click Start, then Run, and type "services.msc" (without quotes) and click OK).
  2. Check to see if the "Secondary Logon" service is listed as "Automatic" or "Disabled".
  3. If the service is indeed set to start automatically (as it should) then just right-click it and select "Start".

  1. If the service is indeed set to be disabled, right-click it and select Properties, select "Automatic" instead of "Disabled" in the startup type box.

  1. Click Apply.
  2. Click Start.
  3. Click OK.

Specific Windows 2000 problems

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, [email protected], the program starts successfully, but when the program initializes you may receive the following error message:

Microsoft Visual C++ Runtime Library Runtime Error! Program "path to executable" abnormal program termination

If you use "plain" 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 – "command" 1326: Logon failure: unknown user name or bad password.

To fix these errors obtain and install a higher Windows 2000 SP (current – SP4) – Download Windows 2000 SP4.

Related articles

You may find these related articles of interest to you:

Links

Runas Command Does Not Work with UPN Name – 272472

Related Topics:

BECOME A PETRI MEMBER:

Don't have a login but want to join the conversation? Sign up for a Petri Account

Register
Comments (0)

Leave a Reply

External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by:

 
Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: