I think you can probably use cusrmgr.exe from the Win2k Resource Kit for
free to accomplish this.
Cusrmgr -u username -m \\name_of_PDC_Emulator
<file:///\\name_of_PDC_Emulator> -h \\server2\home\username
<file:///\\server2\home\username> .
HTH
Z
CUsrMgr Ver 1.0 Jan98 by G.Zanzen (c) MCS Central Europe
Sets a random password to a user
usage: -u UserName [-m \\MachineName] \\ default LocalMachine
Resetting Password Function
-p Set to a random password
-P xxx Sets password to xxx
User Functions
-r xxx Renames user to xxx
-d xxx deletes user xxx
Group Functions
-rlg xxx yyy Renames local group xxx to yyy
-rgg xxx yyy Renames global group xxx to yyy
-alg xxx Add user (-u UserName) to local group xxx
-agg xxx Add user (-u UserName) to global group xxx
-dlg xxx deletes user (-u UserName) from local group xxx
-dgg xxx deletes user (-u UserName) from global group xxx
SetProperties Functions
-c xxx sets Comment to xxx
-f xxx sets Full Name to xxx
-U xxx sets UserProfile to xxx
-n xxx sets LogonScript to xxx
-h xxx sets HomeDir to xxx
-H x sets HomeDirDrive to x
+s xxxx sets property xxxx
-s xxxx resets property xxxx
where xxxx can be any of the following properties:
MustChangePassword
CanNotChangePassword
PasswordNeverExpires
AccountDisabled
AccountLockout
RASUser
returns 0 on success
________________________________
From: Matthew W. Ross [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 10, 2008 1:37 AM
To: NT System Admin Issues
Subject: Re: AD Script
I use Ad Infinitum, available from http://www.newfawm.com. I think it's
$200 per domain. Saves me a ton of time.
--Matt Ross
________________________________
From: Michael Adamson [mailto:[EMAIL PROTECTED]
To: NT System Admin Issues
[mailto:[EMAIL PROTECTED]
Sent: Wed, 09 Jan 2008 20:41:00 -0800
Subject: AD Script
Hi
I need to change my AD users homes folders from \\server1\home\username\
<file:///\\server1\home\username\> to \\server2\home\username
<file:///\\server2\home\username> . Can someone share a script that can
do this for me?
Thanks Michael
Michael Adamson | Network Analyst - Australia/NZ | Health World Ltd
741 Nudgee Rd Northgate 4013| Tel: +61 (7) 3117 3378 | Fax: +61 (7) 3117
3399 | Email: [EMAIL PROTECTED] | Website:
www.healthworld.com.au
Health World Ltd
ABN: 73 010 636 165
741 Nudgee Rd
Northgate QLD 4013
Ph: +61 7 3117 3300
Fax: +61 7 3117 3399
Visit us at: www.metagenics.com.au
Disclaimer:
This email message (and attachments) may contain information that is
confidential to Health World Limited. If you are not the intended
recipient you cannot use, distribute or copy the message or attachments.
In such a case, please notify the sender by return email immediately and
erase all copies of the message and attachments. Opinions, conclusions
and other information in this message and attachments that do not relate
to the official business of Health World Limited are neither given nor
endorsed by it.
~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~