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.
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.