Jump to content

Recommended Posts

Posted
Tried this this morning - This is a billion times better than the previous method - It's *so* much quicker. You still get the restart of explorer.exe when a user logs in for the first time but other than that....
Posted
How are people running this on shared Teacher machines? My worry would be allowing a 'sync' would quickly fill the drives. Can it be restricted for redirection only? That would be handy.
Posted
You disable Sync'ing via group policy and only allow files on demand. It'll "sync" individual files down when requested so you'll need a logoff script that cleans up the sync folder.
Posted
Just done some side by side testing with two identical laptops, one with per-machine sync client and one with per-user. From desktop appearing to sync client auto sign-in on per-machine laptop:16 seconds. Per-user laptop: 1 min, 34 secs. Much improved!
Posted
You disable Sync'ing via group policy and only allow files on demand. It'll "sync" individual files down when requested so you'll need a logoff script that cleans up the sync folder.
How are people running this on shared Teacher machines? My worry would be allowing a 'sync' would quickly fill the drives. Can it be restricted for redirection only? That would be handy.
With Files on Demand it'll keep synching until the disk (or quota) is full, then it deletes the local copy of the least recently used file. Therefore it should never actually run out of space.

 

We haven't had a machine run out of space yet, so I can't say how well it performs in production...

Posted

I wonder if this will be the default on future builds of Windows?

 

Were just about to start pushing OneDrive a lot more and this will help as the delay in opening up on first logon was a pain, will give this a test one day next week.

Posted

Forgot to take the "Require user signed on" in SCCM last night. Changed my powershell script and because onedrive wasn't installed it didn't work. Whoops.

Also: https://docs.microsoft.com/en-us/onedrive/use-group-policy#AutoMountTeamSites

 

I've yet to get it working however, so I still use my PS script.

 

For those who are interested this is my script:

 

#abort if pc is not on 1709 or newer
if ([system.Environment]::OSVersion.Version.Build -ge 16299) {

   $UserUPN = ([ADSISEARCHER]"samaccountname=$($env:USERNAME)").FindOne().Properties.userprincipalname

   $Encode = [uri]::EscapeDataString($UserUPN) 
   $Encode = $Encode.Replace('-', '%2D')
   $Encode = $Encode.Replace('.', '%2E')

   Write-Host "Map Onedrive"

   cd "${Env:ProgramFiles(x86)}\Microsoft OneDrive"


   ./onedrive.exe /url:"sync?userEmail=$Encode"
   sleep 10



   #if (Test-Path "$env:USERPROFILE\Crickhowell High School\") {
   Write-Host "Map Main Sharepoint"
   ./onedrive.exe /url:"sync?"
   sleep 10

   $groups = ([ADSISEARCHER]"samaccountname=$($env:USERNAME)").Findone().Properties.memberof -replace '^CN=([^,]+).+$','$1';

   $ea1 = ([ADSISEARCHER]"samaccountname=$($env:USERNAME)").Findone().Properties["extensionAttribute1"]

   if ($ea1 -eq "Staff") {
       Write-Host "Staff"
       ./onedrive.exe /url:"sync?"
       sleep 10
   }

   $groups | ForEach-Object {
       if ($_ -eq "Leadership Team") {
           #Leadership
           Write-Host "Map Leadership Team"
           ./onedrive.exe /url:"sync?"
           sleep 10
       } elseif ($_ -eq "Group_0e208ef6-82a8-4a88-bdd3-a8d811b8bcf1") {
           #Finance
           Write-Host "Map Finance Team"
           ./onedrive.exe /url:"sync?"
           sleep 10
       } elseif ($_ -eq "Group_e3aeecb7-66b9-4937-88fd-469a1aff359f") {
           #Sports Centre
           Write-Host "Sports Centre Team"
           ./onedrive.exe /url:"sync?"
           sleep 10
       } elseif ($_ -eq "Group_eb7c4712-2964-4d76-91d0-e0a3a8dc3fc9") {
           #IT Team
           Write-Host "IT Team"
           ./onedrive.exe /url:"odopen://sync?"
           sleep 10
       }
   }

} else {
   Write-Host "OS Version Not Supported"
}

 

Use as you want.

 

To get the sync command to use:

 

  1. Download QueryString.zip
  2. Create c:\temp
  3. In Chrome/Firefox go to the sharepoint site (for teams go files > sharepoint site)
  4. Click Sync and open the link with QueryString.exe
  5. It will output a txt file in c:\temp
  6. Copy the contents of that, replace the userEmail with $Encode

  • Thanks 1
Posted (edited)

Just to confirm I've managed to install via SCCM silently using the following command

 

OneDriveSetup.exe /allusers /silent

 

You need to grab the client exe from the link below.

 

https://docs.microsoft.com/en-us/onedrive/per-machine-installation

 

One thing I did notice was the application didn't run after it had finishing installing, although it did when I did it manually on my PC as a test. It's something to look out for if you mass deploying it out, maybe force a restart to be sure.

Edited by mullet_man
  • Thanks 1
Posted
Just to confirm I've managed to install via SCCM silently using the following command

 

OneDriveSetup.exe /allusers /silent

 

You need to grab the client exe from the link below.

 

https://docs.microsoft.com/en-us/onedrive/per-machine-installation

 

One thing I did notice was the application didn't run after it had finishing installing, although it did when I did it manually on my PC as a test. It's something to look out for if you mass deploying it out, maybe force a restart to be sure.

Awesome! Ive only deloyed msi's so how did you deploy it as an exe? also What did you set for the detection method?

 

Thanks

  • Thanks 1
Posted

I added it as an application, and when prompted I chose manually specify the application information and then manually specify the deployment type information so it looks like this

 

OneDrive - SCCM.PNG

 

My detection method was a bit crude but I just checked for OneDrive exe file existing in the new Program Files location

 

So like this

 

OneDrive - SCCM2.PNG

 

There is probably a much better way to detect it's installed fully, but this worked for me.

  • Thanks 3
Posted
This is a great addition for shared machine locations and will help use OneDrive without slow login times.

 

My only concern is for shared machine for the students. Some of the computers have only 240 GB SSD local storage.

Posted
There is probably a much better way to detect it's installed fully, but this worked for me.

 

I'd probably add a "File version X.X.X.X or Greater" check in there on Onedrive.exe.

  • Thanks 1
Posted
I'd probably add a "File version X.X.X.X or Greater" check in there on Onedrive.exe.
Yeah, I think that's a good shout to add that. If I read the info correctly once it is installed via all users it will still update automatically as it does currently.

 

It would be good if future Windows default to this so I can ditch pushing it via SCCM.

Posted
My only concern is for shared machine for the students. Some of the computers have only 240 GB SSD local storage.
Can you not set the default to Files On Demand so it doesn't download the whole file?
  • Thanks 1
Posted
if you install it with the /allusers switch where does it put the ADMX files as the ms docs suggest they are in the %appdata% share but they arent or in the program files (x86) onedrive folder either?
Posted
if you install it with the /allusers switch where does it put the ADMX files as the ms docs suggest they are in the %appdata% share but they arent or in the program files (x86) onedrive folder either?

 

Just ran an install with /allusers, they ended up here...

 

C:\Program Files (x86)\Microsoft OneDrive\[b]BuildNumber[/b]\adm

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...