Take ownership of an entire drive in Windows

Take ownership of an entire drive in Windows
Share on:

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

I live stream on Twitch and encourage you to drop in and ask a question. I regularly publish on YouTube and christitus.com, but if you need immediate assistance, check out our discord channel at Chris Titus Tech Discord.