Solved

CMD administrator error

Posted on 2012-04-05
5
350 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
Comment Utility
Are you simply doing ..

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

Author Comment

by:Reyesrj
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
BIG THANKS!!!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 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

7 Experts available now in Live!

Get 1:1 Help Now