I'm getting closer..
After loggin on as a normal user (script applied on A useraccount in the ou) I'm getting an access denied error on line 10 which is this line:
Set info
Maybe a startup script intead of a logon script will do the trick?
Thanks, I've fixed it.
No users are harmed, I've created a test server setup.
I'm now getting en error on line 6 wich says:
Can't find object on the server
Which is this line of the code:
Set objOU = GetObject("LDAP://rocmn.lan/OU=scripttest,DC=rocmn,DC=lan")
I'm wondering If this is the...
I notice I didn't post the correct script. I mean this one:
On Error Resume Next
Sub AssignHomeDir()
Set objOU = GetObject("LDAP://rocmn.lan/OU=scripttest,DC=rocmn,DC=lan")
ObjOU.Filter= Array("user")
For Each objUser in objOU
strUser = objUser.Get("sAMAccountName")
objUser.Put...
Thanks for you comment.
Do you mean something like this?
Option explicit
strUser = objUser.userstring
strHomeDirectory = "\\ADD001\home\" & struser
objUser.homeDirectory = strHomeDirectory
objUser.homeDrive = "H:"
objUser.SetInfo
objuser is supposed to be the queried LDAP Value form the...
Hi, I'm having problems with a login script on a W2k3 Server. I would like a simple login script to set a new user with correct profile and homedrive setup when the new user logs on.
I managed to gather some info and combined it into this script:
ON ERROR RESUME NEXT
Dim WSHShell, WSHNetwork...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.