How to install OneDrive for Business Next Gen Sync Client without local admin rights

April 19, 2016 - ConfigMgr/SCCM, SCCM 2012

Microsoft recently released the OneDrive for Business Next Generation Sync Client.

You can find more info about the deployment here:

The client only installs within the current user account. The setup will need to be run once per each user account on the machine. This might be tricky, while most of the time, users are not local admin on their machine.
I used powershell to get around this problem. the following command doesn’t need elevation to install the client:
start-process -filepath ‘.\onedrivesetup.exe’ -argumentlist “/peruser /childprocess /cusid:$cusid /silent” –wait

$cusid is the current user sid. You can retrieve it like this:
$cusid = Get-WmiObject win32_useraccount -Filter “name = ‘$env:username’ AND domain = ‘data'” | select sid