Change the User Account Control security settings using the steps below:
Run this command to open the Local Security Policy.
Expand Local Policies, then open the Security Options.
Look for the policies regarding the User Account Control and set them as shown below:
| Policy | Security Setting |
|---|---|
| Virtualize file and registry write failures to per-user locations | Enabled |
| Switch to the secure desktop when prompting for elevation | Disabled |
| Run all administrators in Admin Approval Mode | Enabled |
| Only elevate UIAccess applications that are installed in secure locations | Enabled |
| Only elevate executables that are signed and validated | Disabled |
| Detect application installations and prompt for elevation | Enabled |
| Behavior of the elevation prompt for standard users | Prompt for credentials |
| Behavior of the elevation prompt for administrators in Admin Approval Mode | Elevate without prompting |
| Allow UIAccess applications to prompt for elevation without using the secure desktop | Disabled |
| Admin Approval Mode for the Built-in Administrator account | Enabled |
Restart the computer to apply the changes.
Install OneDrive using the per machine installation option.
/Allusers parameter.
Alternatively, set the User Account Control (UAC) to the lowest setting within the Control Panel by following the steps shown under "Elevated is No".
If the OneDrive desktop app is installed on your computer, you should see the Share option when you right-click a file or folder in Explorer.