For Files:
takeown /f file_name /d yicacls file_name /grant administrators:F
For Directories (will perform action recursively):
takeown /f directory_name /r /d yicacls directory_name /grant administrators:F /t
No comments:
Post a Comment