Copying default profile for new users fails with "The process cannot access the file because it is being used by another process"

April 22, 2014 in answer

0 votes, 0.00 avg. rating (0% score)


I used to see this happen when we had a ton of new users logging into a terminal server in a short period of time. Are you using user profile redirection? I would highly recommend that in a terminal service environment.

Occasionally i would just need to reboot as well. I hate that answer but it just happens with terminal servers (at least back in 2003).

Finally, i would also make it a habit of cleaning up stale user profiles (delprof.exe). With the correct parameter it only delete local cached profiles not the terminal server profile (roaming profile)

Local Computer Policy/Computer Configuration/Administrative
Templates/Windows Components/Terminal Services


To perform this procedure, you must be a member of the Administrators
group on the local computer, or you must have been delegated the
appropriate authority. If the computer is joined to a domain, members
of the Domain Admins group might be able to perform this procedure. As
a security best practice, consider using Run as to perform this
procedure. For more information, see Default local groups, Default
groups, and Using Run as.

Double-click the Set path for TS Roaming Profiles setting, and then
click Enabled.

In the Profile path box, type the path for Terminal Services roaming
profiles, and then click OK.

Eric C. Singer from