HereIGoAgain2601 Posted June 12, 2018 Posted June 12, 2018 Hi, I am desperately trying to get a OneDrive mapper script that will work. I don't want to use the WebDav tools and prefer the built-in Windows 10 application. I have seen this article but struggling to work out how I would populate this command. https://support.office.com/en-ie/article/deploy-the-new-onedrive-sync-client-for-windows-3f3a511c-30c6-404a-98bf-76f95c519668?ui=en-US&rs=en-IE&ad=IE Can anyone shed anylight? The email ID bit I have sorted just not sure how I will figure out the Site ID, List ID and Web ID for the Sharepoint Collections odopen://sync/?siteId=SiteID_HERE&webId=WebID_HERE&listId=ListID_HERE&userEmail=UserEmail_HERE&webUrl=WebURL_HERE" Thanks in advance
adamsund Posted June 12, 2018 Posted June 12, 2018 I’m not at a computer at the minute, but browse to the SharePoint site, go to the documents section, open up developer tools in your browser and click the “sync” button. All the details you need will be part of that link that shows up in the console/network view of developer tools. Incidentally, we developed a little program that takes the users email from AD to complete the odopen link so we can leave shortcuts for staff to open curriculum areas etc. Since putting some work into this, I realised that areas mapped with drive letters aren’t necessary. As long as staff have their areas listed down the left in explorer, everyone’s happy.
gsk Posted February 6, 2019 Posted February 6, 2019 Is there a way to get this link to prompt for credentials without having to supply it with an email in the link/shortcut itself?
HereIGoAgain2601 Posted February 6, 2019 Author Posted February 6, 2019 Not sure if this will help. I did at one point have a script that asked the user to Enter their email, but not sure I kept it as it wasn’t what I wanted to happen! However I’ve just finished a script that gets the users logged on UPN and populates this in the odopen before it runs. Happy to share if you need PM. Thanks
JHagman Posted March 7, 2019 Posted March 7, 2019 I'm interested in the script that fetches the current user UPN and populate the odopen command. If you could share this, it's much appriciated.
chaplic Posted March 8, 2019 Posted March 8, 2019 Can you hybrid azure ad join the devices? You can tweak onedrive to auto-log-in (which I assume is your goal) without all the faff, just ensure SilentAccountConfig and FilesOnDemandEnabled reg keys are set
JHagman Posted March 8, 2019 Posted March 8, 2019 Al devices are Azure AD joined only, no hybrid or local AD. SilentAccountConfig en FilesonDemandEnabled are set. OneDrive autoconfig is working, we just need the SharePoint (Shared) Document sites to add and sync automaticaly. As we have no local or hybrid AD and thus no real GPO, all have to be done by Intune GPO/PowerShell.
chaplic Posted March 8, 2019 Posted March 8, 2019 Ahh, I see I clicked on sync in the GUI then once I dismissed the 'open in onedrive' prompt, the 'copy library ID' had what I think you're looking for when I pasted into notepad?
JHagman Posted March 8, 2019 Posted March 8, 2019 That part i got covered, but thnx What i want to have fixed is automaticaly add SharePoint Document libraries to the OneDrive agent. I can do this with the Powershell from Intune. I do have the Library ID's as you mentioned, but i need to have the odopen://Sync?.... line to use current user UPN. I want al to be silent and without user interaction. Sofar i haven't been able to get this to work.
chaplic Posted March 8, 2019 Posted March 8, 2019 Not sure I entirely follow.. but something like this? $Searcher.Filter = "(&(objectCategory=person)(samaccountname=$env:UserName))" $Searcher.SearchRoot = [ADSI]'' $UserObject = [ADSI]$Searcher.Findone().path $Userprincipalname = $UserObject.UserPrincipalName $odopenstring=$("odopen://Sync?" + $userprincipalname + "blah") start-process $odopenstring -windowstyle minimized ?
PhilLockwood Posted March 11, 2019 Posted March 11, 2019 (edited) Hi JHagman, Our script is in VBNET, i have included a small walkthrough on what every piece of code does. It fetches the Email address field out of AD and adds the address at the end of the address. If you have any questions please let me know. https://drive.google.com/open?id=1pKd61NmwNvrNaAx45mJKS64H4G7QNVR7 Edited March 11, 2019 by PhilLockwood
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now