change samaccountname to displayname
Hello. I have what im sure to some is a simple problem. I have logs files that lists internet activity. The first fiel is date\time, second field is IP address, third field is the samaccountname of the user. All of the fields are
sperated by a space. I need a script to go to the 3rd field (im guessing we could use the spaces to find the start and end of the third field, and then read the value being the samaccountname and then lookup in AD this user and get the displayname and
replcae it in the log file.
There are 1000's of lines and 1000's of users so it needs to be fast as possible. Can anyone help?????
July 15th, 2012 7:02pm
Hi,
Thanks for posting in Microsoft TechNet forums.
As we discussed in the other thread of yours, I suggest we create new threads in our script forum. There you can get more effective suggestion by other experts who familiar with script. Your understanding is appreciated.
http://social.technet.microsoft.com/Forums/en-US/ITCG/
Have a nice day.
Regards
Kevin
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2012 10:28pm
Hi,
Thanks for posting in Microsoft TechNet forums.
As we discussed in the other thread of yours, I suggest we create new threads in our script forum. There you can get more effective suggestion by other experts who familiar with script. Your understanding is appreciated.
http://social.technet.microsoft.com/Forums/en-US/ITCG/
Have a nice day.
Regards
Kevin
July 16th, 2012 10:41pm


