+ Post New Thread
Results 1 to 10 of 10
Windows 7 Thread, Delete Windows 7 Profiles Logoff in Technical; Hi all, We use local profiles for users (would prefer to use roaming but don't ask!) - anyway, some of ...
  1. #1

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    297
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14

    Delete Windows 7 Profiles Logoff

    Hi all,

    We use local profiles for users (would prefer to use roaming but don't ask!) - anyway, some of our machines only have 80GB hard drives that after a few hundred users logon the hard drives become full - we then need to reimage.

    We'd like some kind of script that runs on log off to delete the users home directory and the associated registry key so that next time they logon they get a fresh profile copied from default, and all is good.

    Anyone done this already and can provide assistance?

    Many thanks
    Martin

  2. #2
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,175
    Thank Post
    47
    Thanked 152 Times in 133 Posts
    Rep Power
    46
    Delprof 2 all the way. Use it here and it works a treat.

    Delprof2 1.6.0 Released

  3. #3
    Vasriel's Avatar
    Join Date
    Oct 2012
    Location
    Scotland
    Posts
    103
    Thank Post
    13
    Thanked 16 Times in 13 Posts
    Rep Power
    6
    Hi

    check this page for using Delprof 2 to delete user profiles.

    I recently used it for making a script of my own for deleting old profiles.

  4. #4
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,175
    Thank Post
    47
    Thanked 152 Times in 133 Posts
    Rep Power
    46
    Heres the script we use to delete them.

    Code:
    \\server\share\software\delprof\delprof2.exe /ed:fairm010 /ed:administrator /q
    
    echo %ComputerName% Has deleted old user profiles. >> "\\server\share\software\delprof\log.txt"
    This deletes any profile apart from mine and the administrator profile. (And the default windows ones of course)

  5. #5

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    297
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    fairm010 - so you have del prof running from a server rather than locally - does this work ok?

  6. #6

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,276
    Thank Post
    1,376
    Thanked 2,379 Times in 1,675 Posts
    Rep Power
    703
    Delprof2 here - running from server
    Isn't perfect but it is pretty good

  7. #7

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    297
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Does delprof2 also get rid of the registry keys, not only the home directories?

  8. #8
    chazzy2501's Avatar
    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,782
    Thank Post
    213
    Thanked 263 Times in 213 Posts
    Rep Power
    67
    I use the setting "delete profiles older than X days" computer/admintemp/system/userprofiles I've set mine to 3 days. I do not use roaming profiles.

  9. #9
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,175
    Thank Post
    47
    Thanked 152 Times in 133 Posts
    Rep Power
    46
    Sorry, hadn't seen an update to this thread. Yes, it deletes the respective reg keys too and it runs here perfectly from the server.

  10. #10

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    297
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    Ok I'm struggling. I've got the script deleting profiles fine - I've then added this to group policy as a shutdown script - but it doesn't seem to be doing anything.

    I can't find any error logs etc :S

SHARE:
+ Post New Thread

Similar Threads

  1. automate User profile deletion - Windows 7
    By LeightonJames in forum Scripts
    Replies: 4
    Last Post: 8th October 2013, 04:28 PM
  2. Replies: 8
    Last Post: 22nd May 2013, 11:10 AM
  3. Deleting Local Profiles
    By Mr_M_Cox in forum Windows
    Replies: 43
    Last Post: 17th March 2009, 02:02 PM
  4. Windows Profiles
    By wesleyw in forum Windows
    Replies: 6
    Last Post: 14th December 2006, 09:40 AM
  5. Deleting User Profiles
    By Gordie in forum Scripts
    Replies: 4
    Last Post: 19th June 2006, 03:41 PM

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
  •