Take ownership of an entire drive in Windows

take ownership

The commands below will show you how to take ownership of an entire drive. Here is a simple script to accomplish just that.

Option 1: Create a cmd file takeowner.cmd in notepad

Option 2: Type the following or past this in a command line prompt one line at a time

takeown /f %1 /r /d y
icacls %1 /grant administrators:F /t

Please Note: This will take a large amount of time on big drives

In closing, this will work in almost any situation, however, if you do have issues check out my PowerShell post on taking ownership of entire network drives.

File Permissions in PowerShell

Leave any Questions and Comments below and I will get back to you. I regularly publish on YouTube, Steemit, and christitus.com so if you’d like to see more videos and articles click the subscribe button in the top right.

Leave a Reply

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

%d bloggers like this: