Updating Many User Objects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello - we need to remove the Profile Path (Terminal Services Profile) from each user ID in a given OU. We just want to clear the field entirely and have it be blank. Other than going one by one, what is the easiest way to do this in batch
Thanks
 
Dman,

I am not sure if ADModify will allow you to modify this particular attribute
( Terminal Services Profile Path ) but I would like to take this opportunity
to introduce you to it. It is written by two guys from Microsoft and is a
really useful tool. Here is the link:

ftp://ftp.microsoft.com/PSS/Tools/Exchange%20Support%20Tools/ADModify/

If that will not do it, then consider using LDIFDE to do this. There is
always scripting but I am not that great at scripting so I could not really
be of much use there....maybe point you to a couple of places that might
eventually get you to where you want to be.

HTH,

Cary

Dman said:
Hello - we need to remove the Profile Path (Terminal Services Profile)
from each user ID in a given OU. We just want to clear the field entirely
and have it be blank. Other than going one by one, what is the easiest way
to do this in batch?
 
Hi there!

The easiest way to do this would be something like:

for /F "DELIMS=" %%a in ( USERS.TXT ) do (
net user %%a /PROFILEPATH:"" /DOMAIN
)

Where users.txt contains the list of users to do the
operation on.

If you're using W2K3, you could also create a saved query
to find all user accounts, do a select all and open the
properties. If you clear the data on the profile tab,
this should clear all of the selected users as well.

Hope this helps,
Tony Yuhas
Microsoft
Active Directory Tools
------------------------------------------
This posting is provided "AS IS" with no warranties, and
confers no rights.
-----Original Message-----
Hello - we need to remove the Profile Path (Terminal
Services Profile) from each user ID in a given OU. We
just want to clear the field entirely and have it be
blank. Other than going one by one, what is the easiest
way to do this in batch?
 
Back
Top