
Originally Posted by
Gibbo
Same here. I've picked one machine at random and it contains the following:
7user
7user.network
7user.network.000
7user.network.001
7user.network.002
7user.network.003
7user.network.004
7user.network.005
7user.network.006
7user.network.007
Inside the profile are the folders Cookies, containing INDEX.DAT and Local Settings, containing hidden system files HISTORY and TEMPORARY INTERNET FILES.
This is a definate case of needing the user profile hive cleanup tool installed and running on the machine. The profile is deleting on logoff, however these files are in use and cannot be deleted. If the Hivve cleanup is already installed it may be worth using a modified version of the script above on machine startup to clean all these out each time the computer boots. you could use
Code:
On Error Resume Next
Dim obtainfolder
Dim Pathfinder
Dim strPath
Set fso = CreateObject("Scripting.FileSystemObject")
strPath = "C:\Documents and Settings\"
userexcludelist = "Administrator,All Users,Default User,localservice,networkservice,"
Set f = fso.GetFolder(strPath)
' Loop through all subfolders
For Each fldrItem in f.SubFolders
fldrName = fldrItem.name
If Right(strPath,1) <> "\" Then
Pathfinder = strPath & "\" & fldrName
Else
Pathfinder = strPath & fldrName
End If
If InStr(1, ".00", fldrName, 1) Then
set obtainfolder = fso.GetFolder(Pathfinder)
obtainfolder.Delete true
Else
End If
Next
' Clean up objects
Set fso = Nothing
Set fc = Nothing