Skip to main content

Just thought you all might like to know it is finally here:



https://support.office.com/en-us/article/Get-started-with-the-OneDrive-for-Business-Next-Generation-Sync-Client-on-Mac-OS-X-d11b9f29-00bb-4172-be39-997da46f913f?ui=en-US&rs=en-US&ad=US



https://support.office.com/en-us/article/Get-started-with-the-OneDrive-for-Business-Next-Generation-Sync-Client-on-Mac-OS-X-d11b9f29-00bb-4172-be39-997da46f913f



make sure you run those commands as in website:
defaults write com.microsoft.OneDrive-mac DefaultToBusinessFRE -bool True
defaults write com.microsoft.OneDrive-mac EnableAddAccounts -bool True



Download App from app store, fix Mas_reciept, drop into composer, grab the plist from :
/Users/*/Library/Containers/com.microsoft.OneDrive-mac/Data/Library/Preferences/com.microsoft.OneDrive-mac.plist



FUT, FEU



and away you go!!

Does anyone know if OneDrive for Mac works with on-premises (local) storage and SharePoint?


Just a heads up. A member of the OneDrive team has joined the #microsoft-office channel on Slack.
http://macadmins.org


@Josh.Smith On your menubar, click the OneDrive applet, and go to Preferences:



However, I do like your idea of just creating a LaunchAgent that goes in /Library.



As everyone else, I haven't found a way of skipping the folder location screen.


@Josh.Smith you mind sharing the full script? I want to automate adding one drive to sidebar once i deploy one drive


@wmateo Sure, that's actually the full script (minus some some comments/versioning/logging, I added the comments back below), then I run it with a LaunchAgent so it runs as the user. There probably should be logic in the script to check for existing conditions....but that wasn't really necessary the way we were using it at the time so I never developed it further.



Script:



#!/bin/sh
loggedInUser=`python -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""][username in [u"loginwindow", None, u""]]; sys.stdout.write(username + "
");'`

#enables Finder Extension for current user
pluginkit -e use -i com.microsoft.OneDrive-mac.FinderSync

#adds OneDrive to end of current user's Finder SideBar
/PathToMySides/mysides add OneDrive file:///Users/$loggedInUser/YourOneDriveDirectoryName

#Delete the LaunchAgent for this User so it doesn't run at every login
rm ~/Library/LaunchAgents/com.company.OneDriveFinderPreferences.plist


LaunchAgent:



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.company.OneDriveFinderPreferences</string>
<key>Program</key>
<string>/pathToScript/OneDriveFinderPreferences.sh</string>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>

@Josh.Smith Thank You, how is this working for you? Fully Automated? script adds OneDrive folder to the Finder Sidebar?


Yes fully automated, adds OneDrive to sidebar at next user login. I ran it as part of a self service policy that installed OneDrive. The user has to log out and back in to get the launch agent to run....I think I did it that way because we had a reboot in the policy anyway. You could probably modify it to run directly for one user instead of taking the LaunchAgent approach if desired.


@Josh.Smith This was very helpful. Thank You!!!!


I just want a script to enable the Finder Extension for the current user. Does this need to go into the Launch Agent?