Goddamnit Microsoft

Source: Richard Wilson: An error occurred while applying security information to

I was locked out of my Pictures folders recently. The commands on the blog worked:

takeown /f G:\folder /r /d y
icacls G:\folder /grant administrators:F /T

Wonder how this is supposed to work now that Microsoft is phasing out cmd over PowerShell.