Hello Masja Brayer,
What has happened here is that the laptop was provisioned as an Azure AD–joined device during the initial setup. In that mode, the first account used to sign in is treated as a cloud identity, but it does not automatically become a local administrator unless Intune or Azure AD policies explicitly grant that role. Assigning Microsoft 365 admin roles (Global Admin, etc.) in the tenant does not translate into local administrator rights on the Windows device. That is why you are blocked from performing system changes and cannot reset the machine without local admin credentials.
Once the device was removed from Azure AD, the link between the cloud identity and the local profile was broken, but the underlying problem remains: there is no valid local administrator account available to authorize changes. Without one, you cannot reset or reconfigure the device.
The only supported way forward is to use a local administrator account that was created during setup. If none was created, you will need to perform a full Windows reset or clean installation. Since you cannot trigger a reset from within Windows without admin rights, you must boot into the Windows Recovery Environment. Restart the laptop and hold Shift + Restart or boot from installation media. From there, choose Troubleshoot > Reset this PC. This process does not require local admin credentials because it is executed outside the OS. It will wipe the current configuration and allow you to set up the device again, this time with a personal Microsoft account or a local account as administrator.
If you want to avoid this situation in the future, make sure that during initial setup you select “Set up for personal use” instead of “Set up for work or school.” That ensures the first account created is a local administrator tied to your personal Microsoft account. If you must use a work account but still want local admin rights, configure Intune or Azure AD to automatically add the first user to the local Administrators group (Device settings > Additional local administrators).
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.