Change profile Path

Posted on 2006-05-31
Last Modified: 2008-02-01
I want to be able to change the profile path from \\server1\profiles$\%username% to \\server2\profiles$\%username% for 150 users on a Windows 2000 DC.

The problem is in 2003 you can multiselect and change them in one go on Windows 2000 you dont appear to be able to do it.  

How do I get round this without changing every single one of them.

Question by:MarionTaylor
    LVL 15

    Expert Comment

    Export a list of the users to a file - users.txt, then run the following command on a DC:

    for  %x  in  (users.txt)  do  net  user  %x  /profilepath:\\server2\profiles$\%x

    You can use CSVDE to get a list of users:

    CSVDE  -f  users.txt  -r  "(ObjectClass=User)"  -l  sAMAccountName

    Or you can use the NET command to export a list of users:


    The output from either of these commands will need to be processed (easily done) to create a list of users that can be used in the first command.
    LVL 15

    Expert Comment

    Sorry, that NET USERS command should have been:

    NET  USERS  >  users.txt
    LVL 33

    Accepted Solution

    Go to the OU that you want to modify the people's profile path...

    Highlight the OU... (the users will be listed in the right hand pane..)

    Using the CTRL (for individual selection) or the SHIFT (for mass selection), highlight the users that you want to modify.  The right click one of the users...  Select PROPERTIES from the drop down box.  Click the PROfile tab and edit the profile...  click OK to save..

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    remote services windows server 2 40
    WSUS 0x80072ee2 Error 16 121
    RDWeb 3 48
    Dcdiag failures on some of my domain controllers 12 44
    It is a known fact that servers reach the end of their lives. Some get there quicker than others, based on age, manufacturer, usage and several other factors. However, if your organization has spent time deploying Microsoft's Active Directory server…
    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now