Setting HomeDrive

D

Don Jones

We are in the process of moving to a Windows Domain from
a standalone server, we are using the net user command to
add all the users. Having a hard time with the home
directory. We want to set it to H, but there is no
syntax for setting the Home Drive. What is the best way
to set homedrive, and is there an example of a script
that sets it? Is using ADSI/Windows Scripting
better/easier than using net commands?

Thanks.

Don Jones
 
S

Steven Liu

Hi Don,

We can write the ADSI scipt to modify the Home Directory for users in the
Windows 2000. We can refer to the following article to get the sample code:

234746 How to Create User Shares for All Users in a Domain with ADSI
http://support.microsoft.com/?id=234746

This article contains a sample script that demonstrates how to create user
folders and share them for each user in the domain in which you are logged
on. This sample script requires Active Directory Services Interface (ADSI)
version 2.5 or later and is written in Microsoft Visual Basic Scripting
language.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu [MSFT]

Microsoft Online Partner Support

MCSE 2000

Get Secure! - www.microsoft.com/security

This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top