VBScript to change Profile Attributes in AD

Home Forums Scripting Windows Script Host VBScript to change Profile Attributes in AD

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    centbuntu
    Member
    #149224

    Hey Guys,
    1st post here, don’t know if this is the right place to put this, but I’m trying to write a VBScript to change User Profile attributes in AD. I’m trying to do this so I don’t have to add profile attributes to every single member of our AD.

    Set objUser = GetObject _
    (“LDAP://cn=testing,ou=Testing,ou=Technology,dc=miamips,dc=net”)

    objUser.Put “homeDirectory”, “\mpsnasusers%username%”
    objUser.Put “homeDrive”, “U”

    wscript.echo “Done”[/CODE]

    So what I’m trying to do is set the User Home drive on multiple users.

    It runs and says “Done” like it finished, but it didn’t do anything to the group

    Any help with the code? Is this code just for doing individual users? If so, What is one to help with what I’m trying to do?[CODE] Set objUser = GetObject _
    (“LDAP://cn=testing,ou=Testing,ou=Technology,dc=miamips,dc=net”)

    objUser.Put “homeDirectory”, “\mpsnasusers%username%”
    objUser.Put “homeDrive”, “U”

    wscript.echo “Done”[/CODE]

    So what I’m trying to do is set the User Home drive on multiple users.

    It runs and says “Done” like it finished, but it didn’t do anything to the group

    Any help with the code? Is this code just for doing individual users? If so, What is one to help with what I’m trying to do?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.