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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to modify the user accounts in windows NT Domian

Status
Not open for further replies.

Aslamvs

Technical User
Joined
Jul 8, 2002
Messages
472
Hi All,

It may be a dumb question. but i ma facing the problem i have to modify user properties in my network . I want to change their home folder path and profiles path.

e.g. I m having \\server1\home$\%username% for home folder

\\server1\profiles$\%username% for profiles.

I want to change it to \\server2\profiles$|%username% for profiles and \\server2\home$\%username% for home folders i can copy the data from home folders no problem with that. but problem is taht i m having 700 users in my domian so how can i change the home and profiles paths for all users at a glance.

Thanks in Advance.

Aslam
 
Well , it is a programming question .
The easiest way is to use ADSI or Windows API .

Very easy way is to do it in Visual Basic or by VBA of Excel .
You can check at MSDN Library for values like "Change user properties" or "NT Domain" , I did something similar few times , If you want , I can send you an example to your e-mail . Give me your email for that .
alexbest@bezeqint.net Alex,
Problem? No Problem!
Drink more beer...
 
What about the net user command (/HOMEDIR:pathname /PROFILEPATH[:path]).

You can generate list of users and either multiple edit that file to run a net user command for each or use it as input to a FOR statement.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top