P
Paul Troescher
Hello!
I posted a message about a month ago and received some
really good help, to which I thank all of you.
I find myself with a question, however. I have a script
that will allow me to change users home directories.
However, I have to specify each individual user in order
to change more than one user.
I have inherited a situation in which I need to be able
to change the home directory for multiple users at one
time. With over 1000 users, this is a little much to do
by hand. Is there a way to edit the script below so that
it shall change all users home directories in a given OU?
Thank you for your help!
Paul
<snip>
Set objUser = GetObject _
("LDAP://CN=profile a.
test,OU=Users,OU=profile_test,DC=mycompany,DC=org")
objUser.Put "homeDirectory", "\\drake02file\users$\ptest1"
objUser.Put "homeDrive", "U:"
objUser.SetInfo
</snip>
I posted a message about a month ago and received some
really good help, to which I thank all of you.
I find myself with a question, however. I have a script
that will allow me to change users home directories.
However, I have to specify each individual user in order
to change more than one user.
I have inherited a situation in which I need to be able
to change the home directory for multiple users at one
time. With over 1000 users, this is a little much to do
by hand. Is there a way to edit the script below so that
it shall change all users home directories in a given OU?
Thank you for your help!
Paul
<snip>
Set objUser = GetObject _
("LDAP://CN=profile a.
test,OU=Users,OU=profile_test,DC=mycompany,DC=org")
objUser.Put "homeDirectory", "\\drake02file\users$\ptest1"
objUser.Put "homeDrive", "U:"
objUser.SetInfo
</snip>