Solved

CMD administrator error

Posted on 2012-04-05
5
351 Views
Last Modified: 2012-04-06
Hi All,

When a domain user is logged into a workstation and I try to open the cmd prompt (run as) as an administrator I get this error message:

          C:\WINDOWS\system32\cmd.exe
          The directory name is invalid.

How do I get the cmd prompt to open as an administrator?  Is there a fix that could be deployed over group policy (2008 R2 server)?

Thanks in advance
0
Comment
Question by:Reyesrj
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:suvmitra
ID: 37815072
Are you simply doing ..

Window + R to open the Run Window .. type "cmd" -- Enter to open the Command Prompt?
0
 

Author Comment

by:Reyesrj
ID: 37815083
No, in XP I click on start and go to Accessories and right click on the command prompt then click on "Run as...".  I will enter my credetials (I am a domain admin) or I will enter the local machines administrator credetials.  After useing both credentials I get the error message.
0
 
LVL 9

Expert Comment

by:suvmitra
ID: 37815094
You need to set the access levels / permissions ... there is no option like "Run as.." Run
0
 
LVL 6

Accepted Solution

by:
Joshua1909 earned 500 total points
ID: 37815095
Hi,
When you run the program as administrator, the user variables (like where you home directory is etc) will be for the administrator account.

If you open the system32 directory, can you right-click cmd.exe and run as administrator from there?

Cheers,
Josh
0
 

Author Closing Comment

by:Reyesrj
ID: 37815398
BIG THANKS!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allStar challenge 1 52
Path of Workbook 3 61
drawing animated level bar based on numbers 3 88
Is it possible to programatically fill out a fillable ADOBE PDF form? 9 77
This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now