+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
Windows Server 2000/2003 Thread, Profiles - How should they work in Technical; Originally Posted by Gibbo Same here. I've picked one machine at random and it contains the following: 7user 7user.network 7user.network.000 ...
  1. #16

    Join Date
    Jan 2009
    Location
    Northants
    Posts
    135
    Thank Post
    3
    Thanked 11 Times in 10 Posts
    Rep Power
    13
    Quote Originally Posted by Gibbo View Post
    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

  2. Thanks to SkreeM1980 from:

    Gibbo (6th May 2011)

  3. #17
    Gibbo's Avatar
    Join Date
    Feb 2008
    Location
    Cheshire
    Posts
    893
    Thank Post
    206
    Thanked 343 Times in 238 Posts
    Rep Power
    92
    Thanks for that. I usually just run a DELPROF batch file on a server every week or two.

    The machines have the User Profile Hive Cleanup Tool installed though.
    Last edited by Gibbo; 6th May 2011 at 01:32 PM.

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. mandatory profiles Staff Profiles
    By kevin_lane in forum Windows
    Replies: 8
    Last Post: 14th January 2011, 10:22 PM
  2. Windows Media player - why will it work at home but not at work?
    By speckytecky in forum Internet Related/Filtering/Firewall
    Replies: 5
    Last Post: 12th October 2010, 03:35 PM
  3. Profiles doesn't work on new installs (50)
    By meastaugh1 in forum MIS Systems
    Replies: 0
    Last Post: 27th November 2008, 08:24 AM
  4. "if you can't work with them, work round them"
    By djm968 in forum General Chat
    Replies: 45
    Last Post: 30th June 2008, 11:13 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •