An admin on the account (likely the school admins) can add / remove and otherwise manage devices here.
https://mysignins.microsoft.com/security-info
Once the account is reset a new QR code will be generated.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--