Fixed font Subject: Re: %username% variable not working in user home directory or profile
Author: Steven Anderson Date: 06 Jan 2011
References:
In the post you said that you have found a way to query all the users that have a home directory. I'm having trouble with that step. The query keeps returning with no users and I know that I have 492 users that have home directories. Can you help me out?

I'm user the query:

(&(objectClass=User)(home-directory=H:\\server\home\*)) were each user has a \\server\home\username directory.

Thanks!

Steven


> On Friday, July 27, 2007 1:56 PM Ehre wrote:

> Hello-
>
> I am trying to easily change all of the home directories for users which
> HAVE a home directory. I have found a way to do that using a LDAP query and
> admodify.net. However the problem is that when i specify the path for the
> user directory for the selected users in admodify.net and use
> \\server\users\%username%, when I go back into the individual user accounts
> to see if it worked thier user directory will be set to
> \\server\users\username instead of thier actual username!
>
> Is the %username% or other variables not work with admodify.net? If so what
> could I use to make this work as I would like and have it fill in each users
> username?
>
> Thanks in advance!


>> On Tuesday, August 07, 2007 5:11 PM Tim Ward wrote:

>> You are using the wrong variable. Look at the help file in ADModify or the variable section of the following TechNet article on ADModify: http://technet.microsoft.com/en-us/library/aa996216.aspx
>>
>>
>>
>> In ADModify use \\server\users\%'sAMAccountName' and it should work.


>>> On Tuesday, August 07, 2007 5:12 PM Tim Ward wrote:

>>> You are using the wrong variable. Look at the help file in ADModify or the variable section of the following TechNet article on ADModify: http://technet.microsoft.com/en-us/library/aa996216.aspx
>>>
>>>
>>>
>>> In ADModify use \\server\users\%'sAMAccountName' and it should work.


>>> Submitted via EggHeadCafe
>>> Microsoft ASP.NET For Beginners
>>> http://www.eggheadcafe.com/training-topic-area/ASP-NET/7/ASP.aspx