Try this, all files and folders in D:\*.*, process subfolders, assign administrators as owners, Auto reply Yes to take ownership before assigning administrators.
Code: Select all
TAKEOWN /F D:\*.* /R /A /D Y
Moderator: Theet
Code: Select all
TAKEOWN /F D:\*.* /R /A /D Y