AD home folders
 




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

AD home folders

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






PostPosted: Mon Jun 25, 2007 8:02 am    Post subject: AD home folders Reply with quote

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
Back to top
Herb Martin
Guest





PostPosted: Mon Jun 25, 2007 9:57 am    Post subject: Re: AD home folders Reply with quote

<mattbinns@gmail.com> wrote in message
news:1182740548.183224.268170@e16g2000pri.googlegroups.com...
Quote:
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?

I don't know that you can SEE it in any built-in tools but it should be
scriptable, and might show up in something like CSVDE or DSQuery
but a quick look in DSQuery doesn't even reveal this property as
being available there.

Quote:
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%.

No, not with multiple selection, and why would you want that?

If you use Multiple Selection you have to use the 'same value' for the field
and so you would either be pointing them to all one directory or you must
use %username% to distinguish one user's directory from another.

You could of course batch something like that in with scripting tools.

Generally you WANT to be using %username% even if you need some
prefix or suffix on that:

\\Servername\Userdir\user-%username%-directory

Quote:
If not can I replace \\serverB\username with \\serverA\%username%?
would this work with the existing file structure/permissions?

That will work.* Since you can just select everyone that goes to ServerA
(or the other server whatever it is) and then put them all to:

\\ServerA\%username%

Now, whether they were using the specific name or the environment variable
they will be pointed to the Username directory but physically configured
with
the preferred Environment variable method.

*But if you move the locaton from one server to another (or even the
directory
names effectively change) then YOU must most the files there or the profile
will get recreated and the users will lose their current/prior settings.


--
Herb Martin, MCSE, MVP
http://www.LearnQuick.Com
(phone on web site)
Back to top
Ace Fekay [MVP]
Guest





PostPosted: Mon Jun 25, 2007 10:58 am    Post subject: Re: AD home folders Reply with quote

In news:1182740548.183224.268170@e16g2000pri.googlegroups.com,
mattbinns@gmail.com <mattbinns@gmail.com> typed:
Quote:
Hi,

snipped

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

Herb's suggestions will work. For this part, you can use Admodify:
ftp://ftp.microsoft.com/PSS/Tools/Exchange%20Support%20Tools/


--
Regards,
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT, MVP
Microsoft MVP - Directory Services
Microsoft Certified Trainer

Infinite Diversities in Infinite Combinations

Having difficulty reading or finding responses to your post?
Instead of the website you're using, try using OEx (Outlook Express
or any other newsreader), and configure a news account, pointing to
news.microsoft.com. Anonymous access. It's free - no username or password
required nor do you need a Newsgroup Usenet account with your ISP. It
connects directly to the Microsoft Public Newsgroups. OEx allows you
o easily find, track threads, cross-post, sort by date, poster's name,
watched threads or subject. It's easy:

How to Configure OEx for Internet News
http://support.microsoft.com/?id=171164

"Quitting smoking is easy. I've done it a thousand times." - Mark Twain
Back to top
Richard Mueller [MVP]
Guest





PostPosted: Mon Jun 25, 2007 3:41 pm    Post subject: Re: AD home folders Reply with quote

<mattbinns@gmail.com> wrote in message
news:1182740548.183224.268170@e16g2000pri.googlegroups.com...
Quote:
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
--
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