We are using roaming profiles with all of our users on Windows XP, but are
having problems deleting the profiles again from the client computers!
On the client computers (Windows XP) the profiles are supposed to be
automatically deleted when the user logs out. This is done using GP and it
has been working before. But now the profiles are no longer deleted.
When the user logs out the profile is still present in the C:\Documents and
Settings, and if we log on to the computer using an administrative account
and tries to delete the folder manually we get a "Error Deleting File or
Folder" error message.
If we use the "handle.exe" command from SysInternals we can see that the
WinLogon.exe process has locked the profile folder (eg. C:\Documents and
Settings\vibeke in this example). Further investigation seems to suggest
that the problem has to do with our logon script (from the GP). If we use a
CreateObject command in the script the folder gets locked! E.g. if the logon
scripts is as simple as just the line:
Set WSHNetwork = CreateObject("WScript.Network")
then the profile folder cannot be deleted. If we comment out the line there
seems to be no problem any more...
The user.log file shows the following errors:
USERENV(294.298) 17:49:38:958 Delnode: Failed to delete directory
<C:\Documents and Settings\vibeke>. Error = 32
USERENV(294.298) 17:49:38:958 DeleteProfileEx: Delnode failed. Error = 32
USERENV(294.298) 17:49:38:973 DeleteProfile: Failed to delete directory,
C:\Documents and Settings\vibeke with error 32
[...]
USERENV(294.298) 17:49:40:164 UnloadUserProfileP: Leaving with a return
value of 1
USERENV(294.298) 17:49:40:164 UnloadUserProfile: UnloadUserProfileP
succeeded
USERENV(294.298) 17:49:40:164 UnloadUserProfile: returning 1
Hope someone can help us as we cannot seem to get any further solving the
problem...
Thanks,
-Brian
|