OneDrive Error: The credential is invalid. Unexpected sub status (6008)

Error message "The credential is invalid. Unexpected sub status (6008)

Option 1: Remove Microsoft Account

  1. Sign Out from All Microsoft Apps

    • Open Microsoft Edge or Office apps

    • Sign out from your old work account and ensure your personal account is set as the default

  2. Disconnect Work or School account

  • Open Settings ->Go to Accounts – Click on Accounts > Access work or school.

  • Find the Account – Locate the Work or School account you want to remove.


Option 2: Remove the Account from Windows Credentials

Sometimes, Windows stores old login details in the Credential Manager, which can cause repeated sign-in attempts.

  • Press Windows + S, type Credential Manager, and open it.

  • Go to Windows Credentials

  • Look for any entries related to your old work or Microsoft 365 account (e.g., MicrosoftOffice16_Data:

  • Click Remove on those entries


Option 3: Clear Cached Credentials in the Registry

If the issue persists, there may be cached data in the registry.

  • Press Windows + R, type regedit, and press Enter

  • Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Office\

  • Look for folders/names matching your old work account and delete them


REFERENCES

Last updated

Was this helpful?