Re: AD home folders

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




<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
--


.



Relevant Pages

  • DO Loop problem /reading from text file
    ... , searches for each username in three different domains, ... grabs their homedirectory server and then querys the homedirectory ... server to find out which exact volume each respective user has their ... For Each strUsers In arrUsers ...
    (microsoft.public.scripting.vbscript)
  • Re: do-while vs. if..else if...if...else..if...else if.....
    ... to a filter, which in turn calls the object I've written ... all users and their authentication status. ... logged in, username doesn't exist, etc. ... ErrorMessage LogIn ...
    (comp.programming)
  • RE: Custom webpart for document library
    ... You can Modify the Default view to filter by username. ... You can use "" Keyword to specific the current user login. ... We have custom columns in the document library. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Multiple Drop-Downs
    ... ConditionExpression userNameCondition = new ConditionExpression; ... // Create the username filter ... RetrieveMultipleRequest retrieve = new RetrieveMultipleRequest; ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mapping Home Drive
    ... If he is doing the mapping from ADUC, when he sets it to map h: ... It will also replace %username% ... I doubt it is a matter of the folder ... it will create the correct new home directory. ...
    (microsoft.public.windows.server.active_directory)