Problem

You hate magnify.exe yet you are unable to delete magnify.exe

Solution

  1. Take ownership of magnify.exe
  2. Move it to a new filename
  3. Celebrate

i_hate_magnify.bat

takeown /f "%windir%\system32\Magnify.exe" && icacls "%windir%\system32\Magnify.exe" /grant administrators:F
echo "Took ownership of Magnify.exe!"
move "%windir%\system32\Magnify.exe" "%windir%\system32\Magnify.exe.ihateyou"
pause
Last modified: August 13, 2013

Author

Comments

Eddy Adams 

Copy-pasted into command prompt and it worked instantly! I love you.

Write a Reply or Comment

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.