icacls Pictures /reset /t /q (this will reset all the permissions on Pictures folder tree to default)
cd /<onedrive folder> (i.e. cd to base OneDrive folder)
icacls Pictures /reset /t /q
Press Windows key + R and type control userpasswords2 and click OK Select the user name and click Properties Click on Group Membership Make sure Administrator option is selected Also, click the option Other and select Administrator from dropdown Click Apply and then OK Restart the computer and check
If the issue still persists, enable the hidden Admin account and check. Press Windows key + X and click Command Prompt (Admin) Type the following command and press Enter net user Administrator /active:yes To exit Command Prompt, type Exit and press Enter or simple click X on top right of the same window.
To reset files permissions, follow these easy 3 steps:
Step 1: Run “cmd” as Administrator.
Note: In MS Windows 8 and above, press the Win+X keys, then choose “Command Prompt (Admin)”.
Step 2: Go to the drive or folder in question, for example:
CD /D D:
Step 3: To reset all the files permissions, type:
icacls * /T /Q /C /RESET
Very Important note:
Step 3 is irreversible. Make sure you backup the permissions before you proceed!
It is possible that “icacls” might fail. For that try to take ownership of the files first. Just before Step (3), please type the following command:
takeown /R /F *