Skip to content

Instantly share code, notes, and snippets.

@lastlink
Created April 5, 2025 16:55
Show Gist options
  • Save lastlink/c841c521d950191c7bce721b448e3068 to your computer and use it in GitHub Desktop.
Save lastlink/c841c521d950191c7bce721b448e3068 to your computer and use it in GitHub Desktop.
Reset halo infinite and master chief collection (mcc) login credentials when stuck at login
# List all stored credentials
$credentials = cmdkey /list | ForEach-Object {
if ($_ -like "*Target:*" -and ($_ -like "*xbl|*" -or $_ -like "*xblgrts|*")) {
# Extract the target name and delete the credential
$target = ($_ -replace " ", "" -replace "Target:", "")
Write-Host "deleting:$target"
cmdkey /delete:$target
}
}
Write-Host "All matching credentials have been deleted."
@lastlink
Copy link
Author

lastlink commented Apr 5, 2025

The issue seems to be conflicting entries in credentials manager > windows credentials for halo infinite and halo master chief collection (mcc).

You can invoke this script remotely using this command in PowerShell.

Invoke-RestMethod -Uri "https://gist.githubusercontent.com/lastlink/c841c521d950191c7bce721b448e3068/raw" | Invoke-Expression

You may need to enable remotely running scripts. You should be able to enable it by running this in PowerShell in administrator

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Close and reopen the game and login should allow you to complete and enter game. You may have to run this script again if you switch from halo infinite to mcc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment