How I create a script to restrict computer acces filling the "Log On To" ("userWorkstations") field, from a text file
Posted on 2009-05-19
Hello my dear experts,
I use this script to fill the "Log on To" field on AD:
Set objUser = GetObject _
("LDAP://cn=user (USR),ou=3rd OU,ou=2nd,ou=1st ou,dc=bpco,dc=com")
objUser.Put "userWorkstations", "A,B,C,D,E"
Because of frequent changes inside the net, a very cool improvement will be to be able to use this same script, but allowing to pull the userWorkstations from a file text with a pre-defined computer ser list
Can you help me?