Hi
whene i try to run cmd as administrator (Run as administrator) this message shown : access denide you dont have permision to ...
how can i do this ???
thanks

Dani AI

Generated

A short, practical path to fix the “Access denied” when trying to open an elevated Command Prompt — without repeating earlier tips but building on them (see , and ).

If the normal desktop can’t elevate, get an elevated shell first (Safe Mode with Command Prompt or the Windows Recovery Environment from your Vista/7 DVD or USB). Once you have an elevated prompt, these actions will address the usual underlying causes (corrupt ACLs, a disabled built‑in Administrator, damaged system files, or a replaced/malicious cmd.exe):

  • Enable the built‑in Administrator and give it a password, then add your regular account to the Administrators group (replace YourUserName):

    net user Administrator /active:yes
    net user Administrator *
    net localgroup administrators "YourUserName" /add
  • Repair or reset cmd.exe permissions and check system files. In WinRE the Windows drive letter can differ (verify with dir C:\Windows); then run:

    icacls C:\Windows\System32\cmd.exe /reset
    icacls C:\Windows\System32\cmd.exe /grant Administrators:F
    sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
    chkdsk C: /f

Notes and cautions: do not assume the Windows partition is C: while in Recovery; confirm the path first. If the machine is domain‑joined, local changes can be blocked by domain Group Policy — coordinate with the domain admin. If malware is suspected (as warned), run a full offline antivirus scan from rescue media before re‑enabling network access. After repair, disable the built‑in Administrator if it was not previously used:

net user Administrator /active:no

These steps provide a reliable way to regain elevation when “Run as administrator” fails and avoid recreating accounts or reinstalling Windows unless system damage or infection requires it.

Recommended Answers

All 5 Replies

It is worth trying
1. log on as an administrator and see if it can work like that.
2; Goto windows help and look for 'take ownership of this file' and apply that and see it it works.
3: check to see if your cmd files (dos etc) are on the same drive partition as windows.
4. Finally I had trouble with an external drive trying to use cmd to delete a file. This was because the attributes of the file were set to read only. It may be that your cmd file is unable to work because of some problem like that;
5: Check that your group policy is not blocking it. (ie you may have to allocate permissions to allow cmd to work on certain files etc)

for login as administrator i need to active it for this i shuld run cmd as administrator !!!!

Whezn you turn on hte machine and login in you use an ID (name) . Is this name actually an administrator in the users group. If the user that you login in as is less than an adlinistrator many functions such as the Dos arfe are restricted;
M

You must be using vista.. the only os that would do something like this.

If you are an "administrative user" then create a new windows account(administrative user) and then it should work from there.

If you want ot transfer your data over easily try Dmailer Backup

hi
Your problem is caused by a virus has not let you open that user, so you first have to update your Antivirus and then talk to us

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.