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

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

External Sharing and Guest User Access in Microsoft 365 and Teams

This eBook will dive into policy considerations you need to make when creating and managing guest user access to your Teams network, as well as the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

You will learn:

  • Who should be allowed to be invited as a guest?
  • What type of guests should be able to access files in SharePoint and OneDrive?
  • How should guests be offboarded?
  • How should you determine who has access to sensitive information in your environment?

Sponsored by:

 
Office 365 Coexistence for Mergers & Acquisitions: Don’t Panic! Make it SimpleLive Webinar on Tuesday, November 16, 2021 @ 1 pm ET

In this session, Microsoft MVPs Steve Goodman and Mike Weaver, and tenant migration expert Rich Dean, will cover the four most common steps toward Office 365 coexistence and explain the simplest route to project success.

  • Directory Sync/GAL Sync – How to prepare for access and awareness
  • Calendar Sharing – How to retrieve a user’s shared calendar, or a room’s free time
  • Email Routing – How to guarantee email is routed to the active mailbox before and after migration
  • Domain Sharing – How to accommodate both original and new SMTP domains at every stage

Aimed at IT Admins, Infrastructure Engineers and Project Managers, this session outlines both technical and project management considerations – giving you a great head start when faced with a tenant migration.the different layers of guest access and the common challenges that accompany a more complicated Microsoft 365 infrastructure.

Sponsored by: