Re: AD home folders
- From: "Richard Mueller [MVP]" <rlmueller-nospam@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jun 2007 10:19:13 -0500
<mattbinns@xxxxxxxxx> wrote in message
news:1182740548.183224.268170@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I need to identify all users whose profile points to \\serverA
\username - note not %username%, but their actual username, and whose
home directory points to \\serverB\username.
Can this be done with the standard Microsoft AD tools, ie. ADUC,
dsquery,dsget, CSVDE etc, rather than some third party tools?
Also can I bulk change their home directory to point from \\serverB
\username to \\serverA\username where each username is different,
rather that using %username%.
If not can I replace \\serverB\username with \\serverA\%username%?
would this work with the existing file structure/permissions?
Thanks in advance!
Matt
In ADUC you can filter on users where the value of the homeDirectory
attribute begins with a specified string. In ADUC, on the "View" menu,
select "Filter Options...", select "Create customer filter", click the
"Customize..." button, click the "Advanced" tab, and enter an LDAP query
similar to:
(homeDirectory=\\serverA*)
The "*" is the wildcard character. The string is not case sensitive. A
similar query filter can be used in command line tools, or in a VBScript
program. For example, you could use ADO in a VBScript program to retrieve
the values of the homeDiretory and distinguishedName attributes of all users
meeting the filter condition. Then bind to the user objects with the
Distinguished Name, assign a new value to homeDirectory based on the old
value (parse to replace server name), then save changes. Tips on using ADO
linked here:
http://www.rlmueller.net/ADOSearchTips.htm
--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--
.
- References:
- AD home folders
- From: mattbinns
- AD home folders
- Prev by Date: Re: No Forest root domain just childs
- Next by Date: event id 1041 and 1091
- Previous by thread: Re: AD home folders
- Next by thread: Delegation to reset passwords
- Index(es):
Relevant Pages
|