Question : In W2003, How can I auto-populate users' home folder with a file

Background - We need users to print to a local scanner from citrix applications.  From citrix knowledgebase, for TWAIN redirection, some applications are not Terminal Services aware and look for Twain_32.dll in the \WINDOWS directory of the user profile (by default, C:\Documents and Settings\UserName\Windows). Copying Twain_32.dll into the \Windows directory of each user profile resolves this issue.   We have users C:\Documents and Settings\UserName folders redirected to a file server.  
Question - How can I auto-populate this twain file to everyone's home C:\Documents and Settings\UserName folder?   I'd like to copy the file to that folder for exisiting users and have it copied to new users when I create their account in active directory.  THANKS!

Answer : In W2003, How can I auto-populate users' home folder with a file

If they are logging on to a Domain, you can use LOGON script.

Put the file you want copied on the server where everyone can access it (READ).  Then use your LOGON script to copy the file to  C:\Documents and Settings\%UserName%\Windows.

When they logon, the file will be copied.  Don't forget to remove it when you believe it's all copied to their home folders.  You may want to use IF EXIST in your batch file so that it doesn't delay your other users who already have it.  Something like this:

LOGON.BAT
---------------
@echo off
if exist  "C:\Documents and Settings\%UserName%\Windows\filename.ext" GOTO END
copy \\servername\share\filename.ext  "C:\Documents and Settings\%UserName%\Windows\"
:END
---------------

Hope this helps.
Random Solutions  
 
programming4us programming4us