Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can anyone tell me what the following command does, in detail if possible?

There is a item on my right click menu called "Run Elevated" that allows a normal user to run and executable file with elevated or admin privileges. I don't know how it got there but I wanted to know was this command used in granting that elevated privilege: cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F. I found this will browsing through my registry HKEY_CLASSES_ROOT/*/shell

1 Answer

Relevance
  • 7 years ago
    Favorite Answer

    That takeown command transfers ownership of the file identified by the %1 argument to the current logged-in user, and that icacls command grants ful access rights to all members of the administrators group.

    "Run elevated" doesn't show up in my menu, but my regular login doesn't have admin rights. Too much chance of infection. I believe that "run elevated" is an option given to an admin login to allow a command or batch file access to system control functions, and is a protection against accidental damage and/or intentional spoofing of a harmless command with a like-named batch file.

    For more information about those command, fire up Command Prompt and run:

    takeown /?

    icacls /?

Still have questions? Get your answers by asking now.