Log on to specific computers
Hi can you help. I have a VBS script below which updates the user account “log on to” properties in Active directory. Basically the script adds computers that the user can log on too. However as we have over 400 PC’s but we only want them to have access to 300 of them it will take some time to add the 300 in the form"COMPS300, COMPS172, COMPS173"
I realise this can be done via a GPO but this is not needed in this instance.
I’m not a script writer so not sure how to amend this. I assume some sort of wild card or loop statement is needed .
Any advice would be greatly appreciated
Set objUser = GetObject _
objUser.Put "userWorkstations", "COMPS300, COMPS172, COMPS173"