+ 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
    306
    Thank Post
    17
    Thanked 10 Times in 10 Posts
    Rep Power
    15

    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,438
    Thank Post
    61
    Thanked 206 Times in 178 Posts
    Rep Power
    56
    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
    125
    Thank Post
    20
    Thanked 20 Times in 17 Posts
    Rep Power
    8
    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,438
    Thank Post
    61
    Thanked 206 Times in 178 Posts
    Rep Power
    56
    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
    306
    Thank Post
    17
    Thanked 10 Times in 10 Posts
    Rep Power
    15
    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,508
    Thank Post
    1,528
    Thanked 2,633 Times in 1,823 Posts
    Rep Power
    813
    Delprof2 here - running from server
    Isn't perfect but it is pretty good

  7. #7

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

  8. #8

    Join Date
    Jan 2008
    Location
    South West
    Posts
    1,842
    Thank Post
    219
    Thanked 271 Times in 219 Posts
    Rep Power
    69
    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,438
    Thank Post
    61
    Thanked 206 Times in 178 Posts
    Rep Power
    56
    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
    306
    Thank Post
    17
    Thanked 10 Times in 10 Posts
    Rep Power
    15
    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, 05:28 PM
  2. Replies: 8
    Last Post: 22nd May 2013, 12:10 PM
  3. Deleting Local Profiles
    By Mr_M_Cox in forum Windows
    Replies: 43
    Last Post: 17th March 2009, 03:02 PM
  4. Windows Profiles
    By wesleyw in forum Windows
    Replies: 6
    Last Post: 14th December 2006, 10:40 AM
  5. Deleting User Profiles
    By Gordie in forum Scripts
    Replies: 4
    Last Post: 19th June 2006, 04: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
  •