Hello,
Thank you for posting in Q&A forum.
Please open a command prompt as an administrator, in the command prompt, type "whoami" and press Enter. This will return the domain and username in the following format.
As shown below:
Reference link: How to find my domain name and username on Windows 11. – GateKeeper (zendesk.com)
I hope the information above is helpful.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.