Results 1 to 5 of 5

Thread: Script to change User Profile paths

  1. #1
    gram Guest

    Script to change User Profile paths

    We need a script to change about 100 users profile paths in 2003 AD, instead
    of doing it manually.

    The only change is the servername, rest of path is ok.

  2. #2
    Mathieu CHATEAU Guest

    Re: Script to change User Profile paths

    you have many way :
    vbscript
    admodify

  3. #3
    Ken Zhao [MSFT] Guest
    Based on my knowledge, AD users and computers WILL let you select multiple
    users and also let you select the properties of them, however it will not
    allow you to apply the changes for the users you select rather just one of
    the users. The work around is to create a script which will modify the
    profilepath attribute in AD

    I found the script already from Microsoft web site. Here is the sample
    script for reference:
    =======================
    Set objUser = GetObject _
    ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrika m,dc=com")

    strCurrentProfilePath = objUser.Get("profilePath")
    intStringLen = Len(strCurrentProfilePath)
    intStringRemains = intStringLen - 11
    strRemains = Mid(strCurrentProfilePath, 12, intStringRemains)
    strNewProfilePath = "\\fabrikam" & strRemains
    objUser.Put "profilePath", strNewProfilePath
    objUser.SetInfo
    =======================

    I'm sorry that we are unable to assist with this request in the newsgroups
    as the Partner Support newsgroups are geared towards break-fix scenarios.
    It appears that this is a development-related request that would be best
    addressed in the developer newsgroups. The developer newsgroups are located
    at:

    http://msdn.microsoft.com/newsgroups/default.asp.

    The support professionals there will be able to provide you with more
    efficient and suitable suggestions for your development-related needs. (I
    believe that they can provide you with better assistance for this kind of
    development-related issue.)

    For further assistance on this issue, you may also want to contact our
    Develop Support Services by telephone so that a dedicated Support
    Professional can assist you further with your request. To obtain the phone
    numbers for specific technology request please take a look at the web site
    listed below:

    http://support.microsoft.com/default...S;PHONENUMBERS.

  4. #4
    Join Date
    Dec 2009
    Posts
    4

    Re: Script to change User Profile paths

    hi, I need a script that reads members from a specific Group and sets their ProfilePath and HomeFolder.

  5. #5
    kj [SBS MVP] Guest

    Re: Script to change User Profile paths

    Might be easier and quicker to use the combination of adfind and admod

Similar Threads

  1. Replies: 4
    Last Post: 02-06-2011, 10:56 AM
  2. How to change or restore user profile path registry?
    By elldeegee in forum Operating Systems
    Replies: 2
    Last Post: 11-08-2009, 09:14 PM
  3. Strange user profile path change to C:\Documents and Settings\TEMP
    By NZSchoolTech in forum Windows Server Help
    Replies: 4
    Last Post: 28-02-2009, 02:53 PM
  4. Change Local User Profile path after domain change
    By ptumelty in forum Windows Server Help
    Replies: 0
    Last Post: 11-09-2007, 10:36 PM
  5. Replies: 3
    Last Post: 05-06-2007, 06:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,707,050.45383 seconds with 17 queries