Link to home
Start Free TrialLog in
Avatar of sheila54603
sheila54603Flag for United States of America

asked on

How to copy a file or files to all user profiles on a W2K terminal server

Does anyone know the syntax for a batch file (or other solution) to copy a file from one local location to all user profiles on a Windows 2000 terminal server without setting location for each specific user?

Avatar of Pete Long
Pete Long
Flag of United Kingdom of Great Britain and Northern Ireland image

xcopy \\servername\sharename\filename "c:\documents and settings\%username%\foldername\"
Avatar of sheila54603

ASKER

That works great for the logged in user but does not resolve my issue. As an administrator, I'd like to copy the file to all user profiles in one shot without waiting for them to log in.


Avatar of CDCOP
CDCOP

xcopy \\servername\sharename\filename "c:\documents and settings\all users\foldername\"
The file needs to be copied to each users profile and not to the "All Users" folder.



ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This script was great help for me also, thank you  oBdA!