Change bulk user properties
 




IT Certification FAQ

 
|
Home
|
Microsoft
|
CISCO
|
CompTIA
|
Exam/Study FAQ
|
Employment FAQ
| Links  | Forums  |
Book Reviews


FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  ProfileProfile  Log in to check your private messagesPrivate messages  Log inLog in

Change bulk user properties

 
Post new topic   Reply to topic    Forum Index -> microsoft.public.windows.server.active_directory
Author Message
Fabrussio
Guest





PostPosted: Thu May 18, 2006 4:21 pm    Post subject: Change bulk user properties Reply with quote

I have around 1500 users in my win2003 AD all who have the entries:

\\server\profile
to connect them to a userprofile

\\server\users\"username"
to connect them to their home directories

I want to change these for every user to a different server name. I remember
in NT4 you could bulk edit users but not in win2003, how can i do this.
Looked at LDFIDE but it's quite a tricky process.
Back to top
Carlo Cacciafesta
Guest





PostPosted: Thu May 18, 2006 4:53 pm    Post subject: RE: Change bulk user properties Reply with quote

"Fabrussio" wrote:
Quote:
I have around 1500 users in my win2003 AD all who have the entries:

\\server\profile
to connect them to a userprofile

\\server\users\"username"
to connect them to their home directories

I want to change these for every user to a different server name. I remember
in NT4 you could bulk edit users but not in win2003, how can i do this.
Looked at LDFIDE but it's quite a tricky process.

You can use dsquery + dsmod, in this way.

If you want to modify only users in the OU "OU Users":

dsquery user "OU=OU Users,DC=mydomain,DC=local" | dsmod user -profile
\\server\users\$username$

If you want to modify all users:

dsquery user | dsmod user -profile \\server\users\$username$

Hope it helps.

Regards,

Carlo
Back to top
Kevin D. Goodknecht Sr. [
Guest





PostPosted: Thu May 18, 2006 5:12 pm    Post subject: Re: Change bulk user properties Reply with quote

Fabrussio wrote:
Quote:
I have around 1500 users in my win2003 AD all who have the entries:

\\server\profile
to connect them to a userprofile

\\server\users\"username"
to connect them to their home directories

I want to change these for every user to a different server name. I
remember in NT4 you could bulk edit users but not in win2003, how can
i do this. Looked at LDFIDE but it's quite a tricky process.

You can do this in the ADU&C console, hold down the Ctrl key, select the
users, then right click, choose properties, then select the Profile tab, for
the Home Directory,
use \\server\users\%username% This will create the folders with the user's
username and set permissions on the folder.
As for the profile, if you use %username% you will need to copy the profile
into each folder it creates so you should be sure to use the actual
directory that contains the profile.

--
Best regards,
Kevin D. Goodknecht Sr. [MVP]
Hope This Helps
===================================
When responding to posts, please "Reply to Group"
via your newsreader so that others may learn and
benefit from your issue, to respond directly to
me remove the nospam. from my email address.
===================================
http://www.lonestaramerica.com/
http://support.wftx.us/
https://secure.lsaol.com/
===================================
Use Outlook Express?... Get OE_Quotefix:
It will strip signature out and more
http://home.in.tum.de/~jain/software/oe-quotefix/
===================================
Keep a back up of your OE settings and folders
with OEBackup:
http://www.oehelp.com/OEBackup/Default.aspx
===================================
Back to top
Fabrussio
Guest





PostPosted: Thu May 18, 2006 7:59 pm    Post subject: RE: Change bulk user properties Reply with quote

Thanks, to get an entry for their actual usernames in the path do i use
$username$, rather than %username% which is the syntax I have used before in
scripting?
also if I have OU's containing many other OU's do i just add another entry?
eg:
OU = 'people, containing OU 'staff', then OU 'office staff' in my domain
KRP.LOCAL what would the script be to modify their home directories?



"Carlo Cacciafesta" wrote:

Quote:
"Fabrussio" wrote:
I have around 1500 users in my win2003 AD all who have the entries:

\\server\profile
to connect them to a userprofile

\\server\users\"username"
to connect them to their home directories

I want to change these for every user to a different server name. I remember
in NT4 you could bulk edit users but not in win2003, how can i do this.
Looked at LDFIDE but it's quite a tricky process.

You can use dsquery + dsmod, in this way.

If you want to modify only users in the OU "OU Users":

dsquery user "OU=OU Users,DC=mydomain,DC=local" | dsmod user -profile
\\server\users\$username$

If you want to modify all users:

dsquery user | dsmod user -profile \\server\users\$username$

Hope it helps.

Regards,

Carlo
Back to top
Carlo Cacciafesta
Guest





PostPosted: Fri May 19, 2006 11:40 am    Post subject: RE: Change bulk user properties Reply with quote

"Fabrussio" wrote:
Quote:
Thanks, to get an entry for their actual usernames in the path do i use
$username$, rather than %username% which is the syntax I have used before in
scripting?

Yes, dsmod requires you to use "$" wildcard instead of "%". It's a syntax
requirement.

Quote:
also if I have OU's containing many other OU's do i just add another entry?
eg:
OU = 'people, containing OU 'staff', then OU 'office staff' in my domain
KRP.LOCAL what would the script be to modify their home directories?

"OU=office staff,OU=staff,OU=people,DC=KRP,DC=local"

Regards,

Carlo
Back to top
Paul Williams [MVP]
Guest





PostPosted: Fri May 19, 2006 11:45 am    Post subject: Re: Change bulk user properties Reply with quote

If you use %username% the command shell will insert your username (or the
username of the user running the command).

--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> microsoft.public.windows.server.active_directory All times are GMT
Page 1 of 1

 

Copyright © 2002-2006 Web-S-Sense Pty. Ltd. All rights reserved.

Powered by phpBB
Advertising | Policies/Disclaimers | Contact us | Link to us


Featured Sites: Free Antivirus and Antispyware Info | Free PC Support | MCSE Directory