# How to add windows10 as client in window server 2019 domain
## Something to note
* Doing this setup make sure you have already configure window server 2019 **active directory**
* Make sure when you configure network between window 10 and window server 2019.
Window server ip : 172.26.180.226
window 10 ip : 172.26.187.8
Check window network connections
```
PS C:\Users\win2> ping 172.26.180.226
Pinging 172.26.180.226 with 32 bytes of data:
Reply from 172.26.180.226: bytes=32 time<1ms TTL=128
Reply from 172.26.180.226: bytes=32 time=1ms TTL=128
Reply from 172.26.180.226: bytes=32 time<1ms TTL=128
Reply from 172.26.180.226: bytes=32 time<1ms TTL=128
Ping statistics for 172.26.180.226:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
```
Now we have connection now lets configure window 10
## Window 10 configuration
### First configure dns
Set dns on window 10 by keeping window server ip

### Add domain to window10
Open setting >> system >> About >> Advanced system setting >> computername >> change >> Domain
Set the domain used on windowserver

It will popup credetial input area where you will put administrator credential

Last step you will popup succesfull

Now lets check on window server and view if the window server are added

Now we can see in above that win2 its added in our domain
## How client login with Aduser
First of all make sure that specific user that you need to login is enabled
```
PS C:\Users\Administrator> Get-ADUser -filter *
DistinguishedName : CN=user1,OU=SE,DC=baraka,DC=com
Enabled : True
GivenName :
Name : user1
ObjectClass : user
ObjectGUID : f6c34104-60dc-46d8-abdf-ef90e1e3dde8
SamAccountName : user1
SID : S-1-5-21-3152199951-1680450267-474462403-1103
Surname :
UserPrincipalName :
DistinguishedName : CN=user2,OU=SE,DC=baraka,DC=com
Enabled : False
GivenName :
Name : user2
ObjectClass : user
ObjectGUID : c0716da1-656e-4b06-93b4-3b907c5afbc2
SamAccountName : user2
SID : S-1-5-21-3152199951-1680450267-474462403-1104
Surname :
UserPrincipalName :
```
Video on how to login to aduser
https://youtu.be/Pb8VKoWVUb0
Hope this will help
# Check me out
[Baraka Range](https://twitter.com/barcrange)