Hello everyone, we have about 500 users with Logon Workstations Restrictions set in their user profile (I have a screen snap shot of exactly what I am talking about) We are trying to script the removal of this field but have had NO luck. Please help. Here is the code we are trying to use. Please help!!
Set objUser = GetObject _ ("LDAP://cn=genuser1,ou=generic,ou=people,dc=enterprise,dc=domain,dc=org") (This path is subject to change depending on the user, this was a test user)objUser.Put "userPrincipalName", "firstname.lastname@example.org"objUser.Put "sAMAccountName", "genuser1"objUser.Put "userWorkstations","" (to set it for all left blank, also tried putting all in there, either comment may work)objUser.SetInfo
Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.