Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 367
  • Last Modified:

CMD administrator error

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
Reyesrj
Asked:
Reyesrj
  • 2
  • 2
1 Solution
 
suvmitraCommented:
Are you simply doing ..

Window + R to open the Run Window .. type "cmd" -- Enter to open the Command Prompt?
0
 
ReyesrjAuthor Commented:
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
 
suvmitraCommented:
You need to set the access levels / permissions ... there is no option like "Run as.." Run
0
 
Joshua1909Commented:
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
 
ReyesrjAuthor Commented:
BIG THANKS!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now