The problem lies with a C# app that I've written to delete IE cache files
(although the code itself is not the issue - read on)
The machines are built with WDS. At the time the image is taken, there is
only a local administrator account. When the machines are built, the
personalization process sets a domain account to auto login into the machine
and then sets that user as a local administrator, and then logs off to allow
the domain user to login.
For some reason, that user is unable to delete its internet cache when
running my program. Any other domain user works fine - even domain users that
are failing on other machines. The local administrator account works.
If I then login with another administrator account and delete the failing
profile and allow the system to auto login (and recreate) the local profile
with the same user, everything works fine.
We've been researching this issue for quite some time. It's narrowed down to
something odd that happens when the local profile is created for the first
time for a domain user.
I can see all of the cache files in windows explorer, however when my
program attempts to loop through these directories, it only sees the
index.dat and desktop.ini files - but only when logged in as described above.
All other users in all other scenarios work just fine.
Any help would be greatly appreciated...