Tuesday, October 21, 2014

Command prompt opening differently in windows 7


When I open cmd through start menu, it opens up as normal -- default directory is
c:\users\username


but when I pin cmd to task bar and open it, it opens with default directory as
c:\windows\system32.
Also opening through task bar doesn't ask me for confirmation of whether I want to run as admin or not?


Please help me in this regard...


Answer



It does sound like you've pinned the elevated command prompt instead of the standard user prompt.


To check this, right-click on the taskbar icon, then right-click on the "Windows Command Processor" option, and click the "Properties" option. The field that matters is the "Start in" field (if the properties menu doesn't automatically open there, this is under the "Shortcut" tab). The "Start in" field should read "C:\Windows\System32" or "%HOMEDRIVE%%HOMEPATH%". If it reads "C:\Windows\System32", it's probably running as admin by default.


I would recommend altering it to the aforementioned system variables "%HOMEDRIVE%%HOMEPATH%". If you're uncomfortable with that, unpin it from the taskbar, then, using the search bar in the start menu, search for "command prompt". Pin that to the taskbar & it should run as a standard privilege user.


An associate of mine had the same issue recently.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...