Hello there,
The easiest way is to use the Log On To account policy in the user’s account in Active Directory (AD). Open the user’s account Properties in the Microsoft Management Console (MMC) Active Directory Users and Computers snap-in. Select the Account tab and click Log On To. Then, click Logon Workstations, select The following computers, enter the name of the workstation you want to restrict the user to, and click Add.
How to restrict use of a computer to one domain user only
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer--