-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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.