OneDrive was previously disabled and now I can't enable it with GPO

G O'Connor 96 Reputation points
2021-07-13T13:12:47.56+00:00

Hello all,

We are very late to the party with OneDrive but want to allow students and staff at our school to start using this soon.

When I inherited my role, I noticed the native OneDrive wasn't enabled. I found a GP called disable one drive with various settings configured including 'prevent the usage of OneDrive for file storage' which was set to enabled.

I removed this policy so it was not applied anywhere, waited ages, still no OneDrive. I then deleted the policy, no difference. I then made a new one called 'enable one drive' and reversed the settings and applied it to a test OU. If I run a Group policy modelling wizard for test staff on a test pc, I can see it should be applied:

114252-onedrive1.jpg

I have also tried setting all of the above to not configured.

Annoyingly, as it's a computer setting, gpresult doesn't show the computer policies being applied but based on the modeling, I'm pretty sure it is being applied but for some reason, OneDrive is not pinned. Also, If I click on the flag and type 'OneDrive, I get the following:

114301-onedrive2.jpg

If I log in as domain admin on the test pc, it's pinned and if I click on the flag and type OneDrive it brings up the usual 'sign in to OneDrive' box which is what I want for staff and students.

I have searched the modelling results for 'OneDrive' but can't see anything else other than the settings above. I can't see any registry settings to block the icon either. I have tried enforcing the gp and even blocking inheritance so it just be applying that policy but it still doesn't work for a test staff or student account.

Any help or guidance would be much appreciated.

OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,173 questions
0 comments No comments
{count} vote

Accepted answer
  1. Appleoddity 91 Reputation points
    2021-07-13T14:10:30.32+00:00

    FIrst note, if you want to see the cumulative policy applied to a user run rsop.msc, not gpresult.

    "OneDrive for Business" otherwise known as Groove, is obsolete. You are running a very old version of OneDrive and that is your problem. You'll need to bring every user up to a current version of OneDrive and have it take over. The process is described here. You may have BOTH installed, and you are choosing "OneDrive for Business" rather than "OneDrive," when you run the application. They are completely different.

    OneDrive has come a LONG ways over the last couple of years.... If done properly, OneDrive will automatically deploy, login, and configure itself for every new user on your network.

    At the most basic level, each user needs to download the newest OneDrive client and install it. It is a "per user" application, so it can't just be installed by an Admin for everyone. Newer versions of Windows 10 include the installer, and automatically install it when a new user logs on. But, if it's been tweaked, removed, or is old it may not be working any more.

    Each user can download the latest OneDrive installer from here.

    The deployment of OneDrive can be scripted or handled by automation tools. The process can be read about here.

    When we adopted OneDrive in our organization, I created a powershell login script that checked if the user had an existing version of OneDrive and if it was newer than the installer that was available on the local network. If not installed, or older, the script executed the installer on the network and deployed OneDrive. It also waits 5 minutes after the user logs on, if it detects an existing installer in Windows - which typically runs automatically and does what the script does, all by itself. The script is a "fix," not a necessity.

    Here is the script. Place the latest OneDrive installer in a publicly available network folder, reconfigure this script, and run it at logon for every user. If you have a disconnected workforce, you may need to copy the installer, via GPO, to the local machine and run it from there.

    $ODSetupPath = "\\<UNC Path>\OneDrive" #Make sure OneDriveSetup.exe is here  
    $ODInstallPath = "$env:LocalAppData\Microsoft\OneDrive\OneDrive.exe"  
      
    #Check if the Windows 10 installer is already present  
    if (Test-Path $env:Systemroot\SysWow64\OneDriveSetup.exe)  
    {  
        #If it is, wait 5 minutes for it to complete doing whatever it does.  
        Start-Sleep -s 300  
    }  
      
    #Install OneDrive if missing or older  
    if (Test-Path $env:localappdata\Microsoft\OneDrive\OneDrive.exe)  
    {  
        if ([Version](Get-Item "$ODSetupPath\OneDriveSetup.exe").VersionInfo.FileVersion -gt [Version](Get-Item $ODInstallPath).VersionInfo.FileVersion)  
        {  
            Start-Process -FilePath "$ODSetupPath\OneDriveSetup.exe" -ArgumentList "/thfirstsetup" -wait | out-null  
        }  
    }  
    else  
    {  
        Start-Process -FilePath "$ODSetupPath\OneDriveSetup.exe" -ArgumentList "/thfirstsetup" -wait | out-null  
    }  
    

    Assuming you are using Office 365 there are a few things to do:

    • Adjust your Microsoft Office deployment configuration to no longer deploy the Groove.exe client, and/or script the uninstall of Groove from existing machines.
    • Update your OneDrive Computer and User group policies so that OneDrive automatically signs in, configures itself, and specific settings are locked down. You'll need to install the latest OneDrive .admx in your GPO policy store. The latest .admx is provided when the latest OneDrive client is installed. Details are here.
    • Deploy the latest version of the OneDrive client using the login script above. Make sure future Windows deployments do not have the OneDrive installer removed. This script is not necessary on new Windows deployments.
    • Using group policy redirect important folders (Desktop, Photos, Documents, etc.) to the OneDrive sync folder. Note that we use GPO to redirect folders, and not the OneDrive option to move important folders. This is because the latter does not handle all the "important" folders and can also involve/require user interaction.

    Here are a couple of links to help you with your group policy setup.

    Silently configure user accounts
    Use OneDrive policies to control sync settings

    Here's a screenshot of the computer and user policies we apply in our organization:
    Computer policy:
    114199-image.png

    User policy for configuring OneDrive and preparing for folder redirection:
    114273-image.png

    User policy example for redirecting user's folders to the OneDrive sync folder. Note, in the first policy we set an environment variable. In this policy we consume that variable. OneDrive already provides a variable you can use (%OneDrive), however, this is not suitable for our purposes. %OneDrive% is not guaranteed to point to the proper folder at all times. Also note, the redirection policy could probably be placed in the same user policy as above. But, the order of operations may cause it to not work until the user has logged off and back on two or three times.
    114200-image.png

    Our OneDrive usage is completely seamless. New or existing users sign-in to their computers, OneDrive automatically activates with no user intervention, and data begins syncing immediately. If they are an existing user on a new computer, the desktop, documents, and other user folders will begin populating right away.

    If you are in a larger organization, or have previously used roaming profiles (no longer useful in todays age), you may also be interested in exploring the use of User Experience Virtualization and integrating it with OneDrive.

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. G O'Connor 96 Reputation points
    2021-07-13T14:52:55.387+00:00

    Hi,

    Thanks so much for replying with such a detailed reply, I really do appreciate it.

    I will use rsop in the future :-)

    When I log on with a test staff account, the only option for OneDrive seems to be One Drive For Business but now you have explained, I think we do have both versions and I believe I am seeing that version because of a re-directed Start Menu. This would make sense as our build is relatively up to date.

    If I log on as domain admin, I can see that I have a newer version. Strangely though, if I try to open the file location, I get an error message.

    114302-onedrive3.jpg

    Our environment is currently Office 2016 desktop with roaming profiles. I hae copied the admx and adml templates so have the policies ready to configure.

    I didn't realise One Drive needed installing on a per user basis actually.

    I will go over your documentation, especially the script, that looks really useful!


  2. G O'Connor 96 Reputation points
    2021-07-14T14:29:42.28+00:00

    Hi,

    Today, I unboxed a brand new Dell PC and joined it to the domain. If I log on with a domain admin, One Drive is available from the Start Menu. If I log on as my test staff account, I can't locate OneDrive. I think this shows the problem is nothing to do with the actual PC build and that a policy or something else is blocking OneDrive.

    If I visit c:\users\teststaff\appdata\local\microsoft\onedrive\setup\logs

    I see the following:

    07/14/2021 14:38:25.984 WatsonReport: Registering setup log files with watson
    07/14/2021 14:38:25.984 SetupUtils: Detecting AllUsers install (CommandLine check): isAllUsersSetup = 0
    07/14/2021 14:38:25.984 SetupUtils: Detecting AllUsers update: isUpdate = 0, isOneDriveAllUsersInstalled = 0, isAllUsersInstall = 0
    07/14/2021 14:38:25.984 ResourceManager: Found lang id: 0409
    07/14/2021 14:38:25.984 ResourceManager: Using lang id: 0409
    07/14/2021 14:38:25.984 ResourceManager: Using langId 0x0409
    07/14/2021 14:38:25.984 SingleUserSetupEngine: Entered Initialize
    07/14/2021 14:38:25.984 SetupEngine: Image: JokeYakLog:\FarGoodIcy\BagZooWar\CanLabEgg.exe
    07/14/2021 14:38:25.984 SetupEngine: X-LogID: 63795FC0-432F-46A4-9D8B-1CE8087B7605
    07/14/2021 14:38:25.984 SetupEngine: X-AppName: SkyDriveSetup
    07/14/2021 14:38:25.984 SetupEngine: X-AppVersion: 19.043.0304.0013
    07/14/2021 14:38:25.984 SetupEngine: X-User: %UserDnsDomain%\%UserName%
    07/14/2021 14:38:25.984 SetupEngine: X-Computer: %ComputerName%
    07/14/2021 14:38:25.984 SetupEngine: X-UMID: DA1B1D3E-DBD5-4C9D-91B3-3F3B65DFFD92
    07/14/2021 14:38:25.984 SetupEngine: X-UUID: 22A69F79-B617-4F25-84E1-D0DDA8DAA1FF
    07/14/2021 14:38:25.984 SetupEngine: Flavor: SHIP
    07/14/2021 14:38:25.984 SetupEngine: Date: Apr 23 2019 (14:29:46)
    07/14/2021 14:38:25.984 SetupEngine: CommandLine: LawBigTruck:\FarGoodIcy\BagZooWar\CanLabEgg.exe"
    07/14/2021 14:38:25.984 SetupEngine: Windows: 10.0 (19042) [100]
    07/14/2021 14:38:25.984 SetupEngine: Processor: 8 processor(s), architecture=amd64
    07/14/2021 14:38:25.984 SetupEngine: Memory: 8130260 KB, 3937444 KB available
    07/14/2021 14:38:25.984 SetupEngine: Locale: System=1033, UI=1033
    07/14/2021 14:38:25.984 SetupEngine: Locale: en-US
    07/14/2021 14:38:25.984 SetupEngine: OS String: 10.0.19042sp0.0x64-Wrk-1(1033;1033;en-US)
    07/14/2021 14:38:26.000 SetupEngine: Local Time: 07/14/2021 15:38:26.000 (Time Zone: GMT Daylight Time - bias: -60) with daylight saving
    07/14/2021 14:38:26.000 SetupEngine: Number of milliseconds that have elapsed since the system was started: 2548609
    07/14/2021 14:38:26.000 SetupEngine: Install root volume C:\ has bytes available to caller: 201429954560
    07/14/2021 14:38:26.000 SetupEngine: The install root volume matches the TMP folder volume: True
    07/14/2021 14:38:26.000 SetupCache: SetupCache::Initialize Migration completed with: 0x00000000
    07/14/2021 14:38:26.000 SetupCache: SetupCache::Initialize fs manager instance created completed with: 0x00000000
    07/14/2021 14:38:26.000 SetupUtils: Detecting AllUsers install (CommandLine check): isAllUsersSetup = 0
    07/14/2021 14:38:26.000 SetupUtils: Detecting AllUsers update: isUpdate = 0, isOneDriveAllUsersInstalled = 0, isAllUsersInstall = 0
    07/14/2021 14:38:26.000 SetupCache: isThfirstsetup = 0, isUpdate = 0, isAllUsers = 0
    07/14/2021 14:38:26.000 SetupCache: ExtractFilesWithLessThreadCount = 0, ExtractFilesInBackgroundThreadMode = 0, ExtractCabV2 = 0
    07/14/2021 14:38:26.000 SetupCache: SetupCache::Initialize C:\ProgramData\Microsoft OneDrive\setup\refcount.ini path created with PathCchAppend result: 0x00000000
    07/14/2021 14:38:26.000 SetupCache: SetupCache::SetSetupCacheIniSecurity Result for Admins AddAllowedAce: 0x00000000
    07/14/2021 14:38:26.000 SetupCache: SetupCache::SetSetupCacheIniSecurity Result for Admins AddAllowedAce: 0x00000000
    07/14/2021 14:38:26.000 SetupCache: SetupCache::SetSetupCacheIniSecurity Result for Interactive AddAllowedAce: 0x00000000
    07/14/2021 14:38:26.000 SetupCache: SetupCache::SetSetupCacheIniSecurity Result for Users AddAllowedAce: 0x00000000
    07/14/2021 14:38:26.000 SetupCache: SetupCache::SetSetupCacheIniSecurity Result for SetNamedSecurityInfo: 0x80070005 for file ownership for S-1-5-32-544
    07/14/2021 14:38:26.000 SetupCache: SetupCache::SetSetupCacheIniSecurity Result for SetNamedSecurityInfo: 0x80070005 for setting all Dacles
    07/14/2021 14:38:26.000 SetupEngine: Entered DownloadAndApplyUpdateRingSettings()
    07/14/2021 14:38:26.000 SetupEngine: Downloading settings from https://g.live.com/odclientsettings/Prod
    07/14/2021 14:38:26.000 PreSignInSettingsConfigJSON: Downloading settings from https://g.live.com/odclientsettings/Prod
    07/14/2021 14:38:26.000 WebClient: WebClient(06E53FF8): Beginning Async Download, id=[PreSignInSettingsConfigJSON], highPri=[true], Uri=[https://g.live.com/odclientsettings/Prod]
    07/14/2021 14:38:26.000 WebClient: WebClient(06E53FF8): Background thread started
    07/14/2021 14:38:26.000 WebClient: WebClient(06E53FF8): Download attempt #1 (max 10)
    07/14/2021 14:38:26.000 WebClient: WebClient(06E53FF8): BeginDownloadAttempt: using BITS
    07/14/2021 14:38:30.146 Chk: !ERROR! (0x80004005) (webclient.cpp:963) ERROR: "" failed with 0x80004005 in .

    07/14/2021 14:38:30.162 WebClient: WebClient(06E53FF8): BITS temporary file=[%UserProfile%\TaxZigPen\WarPewMuch\CarLogWee\BlueAmazeZoo.tmp], foreground download=true
    07/14/2021 14:38:30.162 WebClient: WebClient(06E53FF8): WaitForDownloadAttempt()
    07/14/2021 14:38:30.381 WebClient: WebClient(06E53FF8): Download of 'PreSignInSettingsConfigJSON' finished successfully.
    07/14/2021 14:38:30.381 WebClient: WebClient(06E53FF8): WaitForMultipleObjects() TryCompleted was signaled.
    07/14/2021 14:38:30.381 WebClient: WebClient(06E53FF8): Download attempt #0 result hr=0x00000000
    07/14/2021 14:38:30.381 WebClient: WebClient(06E53FF8): Background thread exiting, hr=0x00000000
    07/14/2021 14:38:30.396 UpdateRingSettingsDownloader: Update settings. hresult = 0
    07/14/2021 14:38:30.396 WebClient: WebClient(06E53FF8): destroyed
    07/14/2021 14:38:30.396 SetupEngine: Attempting to find process by name: OneDriveSetup.exe
    07/14/2021 14:38:30.396 SetupEngine: Found process, PID=5356
    07/14/2021 14:38:30.396 SetupEngine: Excluding current process ID 5356 from process list.
    07/14/2021 14:38:30.396 SetupEngine: Registry key LastKnownODSInfo was not found, adding all processes as unknown
    07/14/2021 14:38:30.396 SetupEngine: UnblockHangingSetupProcesses found active setup processes:
    07/14/2021 14:38:30.396 SetupEngine: Entered CreateAndObtainSetupMutex()
    07/14/2021 14:38:30.396 SetupEngine: InitSetupEvents attach handle for setup completion returned hr = 0x00000000
    07/14/2021 14:38:30.396 SetupEngine: InitSetupEvents attach handle for setup cancellation returned hr = 0x00000000
    07/14/2021 14:38:30.396 SetupEngine: GetSetupExeInfo() GetFileNextToModule hr = 0
    07/14/2021 14:38:30.474 FSItem: File verification result for file 'JokeYakLog:\FarGoodIcy\BagZooWar\CanLabEgg.exe' returned hr=0x00000000 on build flavor 'ship'
    07/14/2021 14:38:30.474 SingleUserSetupEngine: Ended Initialize with hr = 0x00000000
    07/14/2021 14:38:30.474 SetupView: Initializing SetupView
    07/14/2021 14:38:30.474 SingleUserSetupController: Initializing SingleUserSetupController
    07/14/2021 14:38:30.474 SetupEngine: Entering WorkItemProc() to perform background work.
    07/14/2021 14:38:30.474 Instrumentation: Entered Instrumentation::StartExperience()
    07/14/2021 14:38:30.474 Instrumentation: Delete cached time values
    07/14/2021 14:38:30.505 SetupUtils: Detecting AllUsers install (CommandLine check): isAllUsersSetup = 0
    07/14/2021 14:38:30.505 SetupUtils: Detecting AllUsers update: isUpdate = 0, isOneDriveAllUsersInstalled = 0, isAllUsersInstall = 0
    07/14/2021 14:38:30.505 Instrumentation: VDIProviderHelper Log: Failed to read ProfileSessionRegSubKey StatusRegValueName REG_DWORD with hr=-2147024894
    07/14/2021 14:38:30.505 Instrumentation: VDIProviderHelper Log: Failed to read O365ContainerSessionRegSubKey StatusRegValueName REG_DWORD with hr=-2147024894
    07/14/2021 14:38:30.505 Instrumentation: Common datapoints have been set.
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'ANID' has ''
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'AccountType' has 'OneDriveSetup'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'AppId' has '77'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'AppVersion' has '19.043.0304.0013'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'App_Name' has 'OneDriveSetup'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'BuildArchitecture' has 'x64'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'CID' has ''
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'Environment' has 'Prod'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'FeatureSet' has '|'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'IsAllUsersSetup' has 'false'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'IsTestMachine' has 'false'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'MSFTInternal' has '0'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'MachineGuid' has '834AEAF6-5B3A-4FE5-87CE-DB8388FE0F8C'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'Market' has 'en-GB'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'OSDeviceName' has '*****'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'OSSku' has '48'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'OSUserName' has '*****'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'OfficeVersionString' has '16.0.13127.20616'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'OneDriveDeviceId' has 'f6fd8db6-3e4f-1c81-1099-c6957f7d17e3'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'Scenario' has 'OneDriveSetupInstall'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'UpdateGroupId' has '100'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'UpdateRing' has 'Prod'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'UserGuid' has '80337E3D-004C-4A44-9DC6-FB75BE22E816'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'VDIProvider' has 'Unknown'
    07/14/2021 14:38:30.505 Instrumentation: Set Common datapoint: 'WipRing' has 'Retail'
    07/14/2021 14:38:30.505 Instrumentation: Leaving Instrumentation::StartExperience()
    07/14/2021 14:38:30.505 SetupEngine: WorkItemProc() BeginBackgroundWork hr = 0
    07/14/2021 14:38:30.505 SingleUserSetupEngine: DoBackgroundWork() fIsParentProcess=1 fIsOEMSetup=0 PerMachineFlag=0 PerUserFlag=0 IsElev=0
    07/14/2021 14:38:30.505 SetupEngine: Entering GetPayloadAndVerifySignature()
    07/14/2021 14:38:30.505 SetupEngine: GetPayloadAndVerifySignature() GetTempFileNameW result 0
    07/14/2021 14:38:30.505 SetupEngine: Loading PAYLOAD from resources
    07/14/2021 14:38:30.505 SetupEngine: Creating file [JokeYakLog:\RodOafGad\SumQuillEye\TaxZigPen\WarPewMuch\CarLogWee\GemHazHis.tmp]...
    07/14/2021 14:38:30.505 SetupEngine: Writing PAYLOAD file...
    07/14/2021 14:38:30.630 FSItem: File verification result for file 'JokeYakLog:\RodOafGad\SumQuillEye\TaxZigPen\WarPewMuch\CarLogWee\GemHazHis.tmp' returned hr=0x00000000 on build flavor 'ship'
    07/14/2021 14:38:30.630 SetupEngine: GetPayloadAndVerifySignature() VerifyMicrosoftTrust hr = 0
    07/14/2021 14:38:30.630 SingleUserSetupEngine: DoBackgroundWork() GetPayloadAndVerifySignature Result = 0
    07/14/2021 14:38:30.630 SetupCache: Previous version installed on machine was 19.232.1124.0008
    07/14/2021 14:38:30.630 SingleUserSetupEngine: DoBackgroundWork() CreateSharedEvent MachineGo Result=[0x0]
    07/14/2021 14:38:30.630 SingleUserSetupEngine: DoBackgroundWork() CreateSharedEvent MachineCancel Result=[0x0]
    07/14/2021 14:38:30.630 SetupComponentLogger: SetupComponentOverlayRegistry initialized with RequiredOverlayKeys=0
    07/14/2021 14:38:30.630 SetupComponentLogger: Machine could have Cloud files so check each account info to see if Cloud files are enabled
    07/14/2021 14:38:30.630 SetupComponentLogger: Overlay registration needs to be checked
    07/14/2021 14:38:30.630 SetupComponentLogger: Only checking default TH keys
    07/14/2021 14:38:30.630 SetupComponentLogger: Only checking default TH keys
    07/14/2021 14:38:30.630 SingleUserSetupEngine: IsPerMachineWorkNeeded? No
    07/14/2021 14:38:30.630 SingleUserSetupEngine: DoBackgroundWork() QueryIsPerMachineWorkNeeded Result=[0x0], fPerMachineRequired=0
    07/14/2021 14:38:30.630 RunAsStandardUser: CreateProcess: file=[JokeYakLog:\FarGoodIcy\BagZooWar\CanLabEgg.exe] args=[JokeYakLog:\FarGoodIcy\BagZooWar\WagFlyMaw/KidLogOne/GemMadAmaze/OrbEggYew/RagFigBug]
    07/14/2021 14:38:30.630 SingleUserSetupEngine: DoBackgroundWork() LaunchSelfForPerUserWork Result=[0x0]
    07/14/2021 14:38:30.630 SingleUserSetupEngine: DoBackgroundWork() continuing with background work after creating multi-process synchronization events.
    07/14/2021 14:38:30.630 SingleUserSetupEngine: Wait for setup child process(es) to complete...
    07/14/2021 14:38:40.932 SingleUserSetupEngine: WaitForMultipleObjects() returned with Result=[0x0]
    07/14/2021 14:38:40.932 SingleUserSetupEngine: Per-user process exit code = 2147747474 (0x80040692)
    07/14/2021 14:38:40.932 SingleUserSetupEngine: DoBackgroundWork() Finished waiting for child processes with OverallResult=[0x80040692], OverallResultPerUser=[0x80040692], OverallResultPerMachine=[0x80040693]
    07/14/2021 14:38:40.932 SingleUserSetupEngine: DoBackgroundWork() cancelling per machine work because per-user proc finished without signalling per-machine instance.
    07/14/2021 14:38:40.932 SetupEngine: SetOverallResultFromHR() with supplied hr = 80040692
    07/14/2021 14:38:40.932 SetupEngine: WorkItemProc() DoBackgroundWork hr = 80040692
    07/14/2021 14:38:40.932 SetupEngine: Overall result = 0x80040692
    07/14/2021 14:38:40.932 SingleUserSetupController: SingleUserSetupController::OnEndWork
    07/14/2021 14:38:40.932 SetupController: Delete UpdateErrorCount RegValue. hr = 80070002
    07/14/2021 14:38:40.947 SetupController: OverallResult: ParentResult=0x80040692, PerUserResult=0x80040692, PerMachineResult=0x80040693. Time spent: 10453 ms
    07/14/2021 14:38:40.947 Instrumentation: Entered Instrumentation::EndExperience()
    07/14/2021 14:38:50.982 Instrumentation: Leaving Instrumentation::EndExperience()
    07/14/2021 14:38:50.982 SetupView: Uninitializing SetupView
    07/14/2021 14:38:50.982 SetupController: Uninitializing SetupController

    At C:\SysWOW64 there is a OneDrive.exe but if I try to launch, it tells me a newer version is already installed.

    Could this be something to do with my my test staff account having a roaming profile and my domain admin not having one or could it be the teststaff account doesn't have admin rights to install OneDrive?

    Many Thanks


  3. G O'Connor 96 Reputation points
    2021-07-15T08:58:22.58+00:00

    Hi,

    Thanks for the information as always.

    There is no OneDrive.exe in C:\Users\<username>\AppData\Local\Microsoft\

    I do have a OneDrive folder which contains a setup folder and logs.

    I tried deleting HKCU\Software\Microsoft\OneDrive and restarting but no difference and couldn't see a way of launching OneDrive.

    I downloaded the latest version and installed onedrive.exe/all users as local admin to test the per machine instance. If I log on to my test GP without the usual school policies, it works. If I have the user in their regular OU, it doesn't. Students don't have access to the C drive so it could be this, I will have to investigate but it's a step in the right direction :-)


  4. G O'Connor 96 Reputation points
    2021-07-20T12:35:02.457+00:00

    Hi,

    I did some testing and for our environment, we had a group policy set to 'delete cached copies of roaming profiles' This can be found under:
    Computer Configuration/Policies/Administrative Templates/System/User Profiles

    When set to enabled, OneDrive isn't pinned. When not configured, OneDrive is pinned and works ok.

    Hope this helps someone in the future.

    0 comments No comments