Popular Post nickbro Posted March 21, 2019 Popular Post Posted March 21, 2019 Looks like Microsoft have made the latest insider build capable of installing on a per machine basis: https://docs.microsoft.com/en-us/onedrive/per-machine-installation By default, the OneDrive sync client installs per user, meaning OneDrive.exe needs to be installed for each user account on the PC under the %localappdata% folder. With the new per-machine installation option, you can install OneDrive under the “Program Files (x86)” directory, meaning all profiles on the computer will use the same OneDrive.exe binary. Other than where the sync client is installed, everything else stays the same. All I can say is: about time 11
free780 Posted March 22, 2019 Posted March 22, 2019 I wonder if it will reduce the high CPU and disk IO on 1st user logon? You'd hope so since it will be up to date.
psumner1992 Posted March 22, 2019 Posted March 22, 2019 This is a great addition for shared machine locations and will help use OneDrive without slow login times.
DrCheese Posted March 22, 2019 Posted March 22, 2019 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....
Killer_Bot Posted March 22, 2019 Posted March 22, 2019 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.
DrCheese Posted March 22, 2019 Posted March 22, 2019 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.
Smokebomb Posted March 22, 2019 Posted March 22, 2019 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!
jmak Posted March 22, 2019 Posted March 22, 2019 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...
mullet_man Posted March 22, 2019 Posted March 22, 2019 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.
nickbro Posted March 22, 2019 Author Posted March 22, 2019 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: Download QueryString.zip Create c:\temp In Chrome/Firefox go to the sharepoint site (for teams go files > sharepoint site) Click Sync and open the link with QueryString.exe It will output a txt file in c:\temp Copy the contents of that, replace the userEmail with $Encode 1
techie17 Posted March 25, 2019 Posted March 25, 2019 Does anyone have a guide on how to deploy the new client using SCCM to all my current Windows 10 machines? Is there a silent install switch?
mullet_man Posted March 25, 2019 Posted March 25, 2019 It does look like you can use the /silent command https://docs.microsoft.com/en-us/onedrive/deploy-on-windows If you can use it with /silent /allusers I'll let you know soon, am going to test it with SCCM. 1
mullet_man Posted March 25, 2019 Posted March 25, 2019 (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 March 25, 2019 by mullet_man 1
techie17 Posted March 25, 2019 Posted March 25, 2019 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 1
mullet_man Posted March 25, 2019 Posted March 25, 2019 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 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 There is probably a much better way to detect it's installed fully, but this worked for me. 3
MS2011 Posted March 25, 2019 Posted March 25, 2019 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.
pete Posted March 25, 2019 Posted March 25, 2019 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. 1
mullet_man Posted March 25, 2019 Posted March 25, 2019 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.
mullet_man Posted March 25, 2019 Posted March 25, 2019 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? 1
k-strider Posted March 26, 2019 Posted March 26, 2019 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?
ollyyllo Posted March 26, 2019 Posted March 26, 2019 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
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