Jump to content

Recommended Posts

Posted

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

Posted
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.
  • 7 months later...
Posted
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?
Posted

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

  • 1 month later...
Posted
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.
Posted
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
Posted

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.

Posted

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?

 

Capture.PNG

Posted

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.

Posted

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

 

 

?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...