I have a script that changes the computers which an user account can log on
to. The sample script below works fine. However I need to remove this
restriction from some users accounts an set back to "All Computers." So, how
can I do that? I have tried the following unsuccesfully. Any help is greatly
apprecciated.
objUser.userWorkstations = NULL
************* SCRIPT SAMPLE *************
Set objUser = GetObject(adsipath)
If Err.Number <> 0 Then 'Error should occur if the user does not exist
Wscript.Echo ErrorMsg
Err.Clear
Else
objUser.GetInfo
objUser.userWorkstations = "mycomputer"
objUser.SetInfo