takeown /r /a /skipsl /d y /f <filename>

/r: recursive
/a: administrators group becomes owner
/skipsl: takeown probably doesn't support junction points properly, may enter
recursive loop on bullshit symlinks in C:\Users dirs
/f: required for the <filename> argument

if you have grep, this is also recommended, as there is no option for "output
on errors only":

takeown /r /a /skipsl /d y /f <filename> | grep -v -e SUCCESS -e "^$"