Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to run the migrator #25

Closed
tonjewaasjo opened this issue Aug 18, 2022 · 2 comments
Closed

Error when trying to run the migrator #25

tonjewaasjo opened this issue Aug 18, 2022 · 2 comments

Comments

@tonjewaasjo
Copy link

tonjewaasjo commented Aug 18, 2022

I logged on the mfa with wrong credentials one time and now the login window will not show again. What can I do to make the old credentials not to be remembered?

@Zerg00s
Copy link
Owner

Zerg00s commented Aug 18, 2022

hi @tonjewaasjo,

It's a common issue. Can you, please try these workarounds?

Clear Browser Cache in Internet Explorer

  • Launch Internet Explorer
  • Clear browser Cache

If the above does not help, also try updating two ps1 files

RunAllScripts.ps1 file
Replace
Connect-PnPOnline -Url $TARGET_SITE_URL -UseWebLogin -WarningAction Ignore
with
Connect-PnPOnline -Url $TARGET_SITE_URL -SPOManagementShell -ClearTokenCache -WarningAction Ignore

CompleteResourceMapping.ps1 file
Replace
Connect-PnPOnline -Url $TARGET_SITE_URL -UseWebLogin -WarningAction Ignore
with
Connect-PnPOnline -Url $TARGET_SITE_URL -SPOManagementShell -ClearTokenCache -WarningAction Ignore

@tonjewaasjo
Copy link
Author

The replacement worked! Thank you =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants