Hi Adomas Kamunavičius,
Thank you for posting in the Microsoft Community Forums.
If what you want is a domain configuration for your work environment, such as creating a domain, creating multiple workgroups within the domain, multiple objects within the workgroups, and then logging in with a different account password for each object.
The prerequisite is that the device you are using is a server device, and then the standalone server is promoted to a domain controller.
You can install ADDS (Active Directory Domain Services) on the server console and follow the prompts:
Select "Domain Controller for New Domain".
Select "Create a new domain directory tree".
Select "Create a new directory forest for the domain directory tree".
Enter the full DNS name of the new domain (e.g. example.com).
Enter the NetBIOS domain name (e.g. EXAMPLE).
Set the storage location for the database, log files, and SYSVOL (it is recommended to store them on separate hard disks to improve performance and recoverability).
Configure DNS (the wizard will prompt you to install it if it is not already installed).
Set the administrator password for Directory Services Restore Mode (for restoring Active Directory if needed).
Complete the installation and restart the server.
On the client computer, right-click "My Computer" -> "Properties" -> "Network Identity" -> "Change Change".
Select "Domain" in "Affiliation" and enter your domain name (e.g. example.com), then enter your username and password for authentication.
Once authentication is complete, restart the client computer.
On the server, open "Administrative Tools" -> "Active Directory Users and Computers".
In Active Directory Users and Computers, you can create Organizational Units (OUs) to organize users, groups, and computers, and create new user accounts.
Best regards
Neuvi Jiang