Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modify a file

Status
Not open for further replies.

lintow

Programmer
Nov 29, 2004
82
US
I have a file with usernames in it. File name is users.txt

example:
lintow
djones
aharper
mjordan

I would like to format this like the example here for every username.

I guess it would loop through and format it

any help would be appreciated

DN: CN=test3,OU=test,DC=ces,DC=edu
changetype: add
cn: lintow
givenName: lintow
objectClass: user
samAccountName: lintow
homeDrive: Z:
homeDirectory: \\pibbon\home\%username%


 
Seems like you are only providing half of what you are trying to do here. What is your end objective? Are you looking to create users in AD with this?

If so then take a look at this thread: thread329-1159009.

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top