You can create a guest account on a Windows 10 computer by using the Command Prompt feature. Here's what you'll need to do.
I use my own individual Windows computers at home but also share a PC with my wife and my cat, Mr. Giggles (don't ask). To ease that process, I set up dedicated accounts for each person (and feline).
Windows 10 allows you to change your password or recover it at any time if you forget it.
If you want to learn how to create a Microsoft Account in Windows 11, then this post will help you. A Microsoft account gives you access to all the apps and premium Microsoft services such as Office, ...