Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. heskez

    problems with simple vb script

    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?
  2. heskez

    problems with simple vb script

    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...
  3. heskez

    problems with simple vb script

    Sub is not called. I don't know how to do this in this context..
  4. heskez

    problems with simple vb script

    Thanks, I'll change it. I'm still wondering if it is possible to achieve a goal like this with such a small amount of code..
  5. heskez

    problems with simple vb script

    Exactly the same...
  6. heskez

    problems with simple vb script

    It looks like the scipt is executed but nothing happens.. No error messages or anything. It just dies silently.
  7. heskez

    problems with simple vb script

    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...
  8. heskez

    problems with simple vb script

    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...
  9. heskez

    problems with simple vb script

    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...

Part and Inventory Search

Back
Top