
|
email this FAQ to a colleague
Q:
How do I set a user's login script using ADSI?
A:
Here is some code that uses ADSI to change a user's login script.
Set oUser = GetObject("WinNT://machinename/username")
oUser.LoginScript = "Login script file name"
oUser.SetInfo
Set oUser = Nothing
- Wayne Berry
|
Articles
|
|
|
|
|
|
|
|
|
|
|
|
|
Mar 16, 1998 - ADSI Part II: Configuring NTLM with ADSI
|
|
|
ADSI Part II describes and demonstrations the power of ADSI by showing how to manipulate the NTLM database. Examples in this article show how to add a user to a domain, delete the user, add a group, and add the user to the group. There is also a discussion on security and an overview of the Group, User and Domain ADSI objects.
[Read This Article] [Top]
|
|
|
|
|