Feature: "Take Ownership" of a file or folder?

How would I apply this Take Ownership command to an entire disk? In my case, I have a dozen USB sticks and MicroSDs that frequently end up with permissions issues due to OS re-installs, account renames, and other chaos. :laughing:

I saw that context menus for hard drive must be compatible between Opus and Explorer, but don't understand what are the implications for a disk wide takeover function. I tried several iterations using Standard function: Opus or External but still don't have a working drive wide "take ownership"...

Bonus points if the function would automatically exit with an error if accidentally launched on the system drive... :smile:

# in /bin/bash that would be something like...
if %SystemDrive% == "{f}"; then
  echo "WARNING: dude... don't do this to your boot drive..." && exit
fi
# and then the actual permissions fix...
takeown /f {f} /r /d y
icacls {f} /grant administrators:F /t
pause

Can't wait until Linux shell completely replaces these crazy ".bat" files... :speak_no_evil: