How to take Ownership of a Drive, Folder or File in Windows 7
Isn’t it just a pain in the butt. A fresh install of Windows 7 64-bit and I’m trying to copy files over from Windows Vista and I get Access Denied! Here’s how to fix it.
I’ve tried a registry key addition from MyDigitalLife which is all very nice but it attaches itself to a right click context menu which only works once you’ve opened the drive, I couldn’t, it’s quite handy though if it’s just a file or folder you want to take control of, you can download a copy here. I want to take control of the whole drive not just a folder or file and I couldn’t open the drive without getting an Access Denied error.
Microsoft in their infinite wisdom have decided to take control away from us foolish, ignorant and hardened system administration professionals and in their blind panic that running any program at all is going to cause a fatal exception or get riddled with viruses.
Fortunately there is a simple’ish way around Microsoft’s latest Uber decision using the Command Prompt to get all your drives, folders and files back – Yippee!
Are you ready? Well just follow along now…
Click on ‘Start ‘ which incidentaly isn’t called Start anymore it’s just the round glowing icon.
In the Run box (the text enrty bit) type CMD – but don’t press the Enter Key! Wait for the CMD icon to appear in the menu above, then right click on it and select Run as Administrator.
When the UAC (panic control) box appears just click Continue.
Now that your command prompt window is open type this: (adapted for your own use)
takeown /f (full path of your file)
In my case because I wanted to take control of my D: drive I typed:
takeown /f d:
Now press Enter.
You should get a message saying that it has completed successfully – this gives you ownership of the file.
icacls (full path of file) /grant (your username):F
In my case I used:
icacls d: /grant mycomputername\simon:F
And away your little system goes re-writing your permissions, you should now have complete control over your files. I had a little padlock in the bottom left of my files and directories which looked ominus, but you only have to click on them or their containing directory and Windows 7 will report that you are now taking full control of this file/directory etc…
If Windows is still causing you grief there’s always going down the pub – which isn’t always a bad idea.
Many thanks to Snake08 for his help on this.
Powered by Facebook Comments
- Windows 7 file copy and Internet slow – solved
- Drupal – The selected file… could not be uploaded. Only JPEG, PNG and GIF images are allowed
- Full hard drive = slow computer?
- Hard Drive Data Recovery – Advanced
- To my old Windows 2003 Server – RIP
- Make Windows 2008 look like Windows 7
- Windows 7 Problems.
Leave a Reply
- WordPress Contact Form 7 & WP-Mail-SMTP problem solved
- How to take Ownership of a Drive, Folder or File in Windows 7
- The environment variable Home is not set (Solved)
- Excel 2007 sort columns & rows data.
- Failed to initialize OpenGL (Checklist)
- Android SDK Manager won’t start (Solved)
- Creating a Drupal 6 custom login form – Step by Step tutorial.
- Android requires compiler compliance level 5.0 or 6.0. Found ’1.7′ instead. Please use Android Tools > Fix Project Properties.
- IIS7 – No HTTP redirect icon
- WordPress widgets not saving or dragging?
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- July 2012
- June 2012
- May 2012
- February 2012
- November 2011
- September 2011
- August 2011
- June 2011
- January 2011
- December 2010
- November 2010
- October 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- January 2009
- December 2008
- August 2008
- June 2008