Hi Liz Popp,
When you select "Set up for work or school" during the initial installation, Windows attempts to join the device directly to your organization's Entra ID (formerly Azure AD) tenant. If your organization's cloud policy is configured to provision users as "Standard Users" rather than "Administrators" (which is the secure default), or if the token handshake was incomplete, you effectively lock yourself out of your own machine with restricted permissions immediately upon reaching the desktop.
Since you do not have an administrator account to authorize a change in privileges, you cannot simply promote yourself via settings or command prompt; you are structurally stuck. The only reliable way to reclaim ownership of the hardware is to perform a factory reset and use a specific setup sequence that guarantees local administrator rights. You can initiate this by holding down the Shift key on your keyboard while selecting Restart from the Start menu power options. This will boot the machine into the Windows Recovery Environment (WinRE), where you can select "Troubleshoot" and then "Reset this PC" to wipe the current restricted configuration and start fresh.
When the device reboots and asks you to set it up again, it is critical that you select "Set up for personal use" instead of "Work or school." This choice forces Windows to create a Local Administrator account (or a personal Microsoft Account with admin rights) as the primary identity. Once you reach the desktop and have full control, you can then go to Settings > Accounts > Access work or school and click Connect to link your business credentials. This "layered" approach gives you the best of both worlds: it registers the device with your company for email and OneDrive access, but it keeps your underlying local profile as the master administrator, preventing the lockout you just experienced.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to ACCEPT ANSWER. Should you have more questions, feel free to leave a message. Have a nice day!
VPHAN