How can I change this setting from a batch file? For any given user, how can I make it so they can only log onto the computer named abc? A vbs or powershell script would be my second choice.
How can I change this setting from a batch file? For any given user, how can I make it so they can only log onto the computer named abc? A vbs or powershell script would be my second choice.
You need to update the "userWorkstations" AD attribute for the users.
In VBS it would be something Like:
This takes all users in the top level "SCRIPT" OU and modifies the userWorkstation attribute for each. Obviously you can manipulate it as needed.
Also, as Greg pointed out the attribute is not an array and to specify more than one workstation you would use: