takeown /f "C:\path\to\file" /r /d y icacls "C:\path\to\file" /grant YourUsername:F /t
Or via Security → Advanced → Change owner → Type NT SERVICE\TrustedInstaller → OK.
net user administrator /active:yes
takeown /f "C:\path\to\file" /r /d y icacls "C:\path\to\file" /grant YourUsername:F /t
Or via Security → Advanced → Change owner → Type NT SERVICE\TrustedInstaller → OK.
net user administrator /active:yes
takeown /f "C:\path\to\file" /r /d y icacls "C:\path\to\file" /grant YourUsername:F /t
Or via Security → Advanced → Change owner → Type NT SERVICE\TrustedInstaller → OK. you need permission from trustedinstaller
net user administrator /active:yes