Skip to content

Issue running Download-OD4BAccount.ps1 - Failed to resolve OneDrive for user #4

@mgrima219

Description

@mgrima219

After running and authenticating i get this

authenticating with global admin

PS C:\ScriptHub> . 'C:\ScriptHub\Download-OD4BAccount.ps1'

cmdlet Download-OD4BAccount.ps1 at command pipeline position 1
Supply values for the following parameters:
Username: mgrima@xxx.com
Destination: c:\exports\onedrive
ThreadCount: 3

Connecting to Microsoft Graph API...
Welcome to Microsoft Graph!

Connected via delegated access using 14d82eec-204b-4c2f-b7e8-296a70dab67e
Readme: https://aka.ms/graph/sdk/powershell
SDK Docs: https://aka.ms/graph/sdk/powershell/docs
API Docs: https://aka.ms/graph/docs

NOTE: You can use the -NoWelcome parameter to suppress this message.
NOTE: Sign in by Web Account Manager (WAM) is enabled by default on Windows systems and cannot be disabled. Any setting stating otherwise will be ignored.

Connected successfully.

Resolving user and drive via Graph...
Exception: C:\ScriptHub\Download-OD4BAccount.ps1:343:5
Line |
343 | throw ('Failed to resolve OneDrive for user {0}. If the user neve …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Failed to resolve OneDrive for user mgrima@xxx.com. If the user never opened
| OneDrive, it may not be provisioned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions