+ Post New Thread
Results 1 to 12 of 12
How do you do....it? Thread, Delete Profile on LogOff in Technical; Hi, I would like to delete user profiles when they logoff XP Pro, I need to do this because the ...
  1. #1

    Join Date
    May 2007
    Posts
    47
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Delete Profile on LogOff

    Hi, I would like to delete user profiles when they logoff XP Pro, I need to do this because the desktop are re-appearing after deletion.

    for instance

    I remove the student profile from the server,
    Student logins to a computer where which they have used before and
    surprise surprise everything comes back to the desktop.

    I'm sure (read guessing) this is a AD setting?

    best Roland

  2. #2
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Delete Profile on LogOff

    Yes theres an AD policy to deal with this:

    Computer Config>Admin Template>User Profiles>Delete Cached copies of roaming profiles

    This will delete the profile from the local machine when it logs off after it updates the roaming profile. However I've found that it often leaves the local profile behind on laptops that run on wireless so will need something like delprof to get rid.

  3. #3
    tech-man's Avatar
    Join Date
    Jul 2005
    Location
    The Pub
    Posts
    171
    Thank Post
    13
    Thanked 17 Times in 11 Posts
    Rep Power
    21

    Re: Delete Profile on LogOff

    I use this script from www.wisesoft.co.uk http://www.wisesoft.co.uk/Scripts/di...ipt.aspx?id=14 on PC boot - works really well.

  4. #4
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,547
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    22

    Re: Delete Profile on LogOff

    I use the AD setting in GPO but is works fine if the machine logs off correctly. If the kid just shuts it down by the power button or there is apower fialure for some reason then the pofile gets left.

    I too use a script that runs on log off that deletes all the local user profiles except, administrator, default and one other ( which escapes me) This is fine on curriculum machines but don't run it on a OU that has staff laptops in becasue this could cause major problems with how you have your staff laptops set.

    PM me if you want a copy of the script.

  5. #5
    User3204's Avatar
    Join Date
    Aug 2006
    Location
    Wirral
    Posts
    769
    Thank Post
    55
    Thanked 66 Times in 62 Posts
    Rep Power
    34

    Re: Delete Profile on LogOff

    I don't have roaming profiles, so the profiles are all quite small anyway.

    I _do_ end up with 1,000s of profiles on each machine eventually.
    What we do is, regularly is run delprof, either, on the machine, or remotely.

    Usually for each classroom we run delprof from a .BAT file, that starts at PC1 and goes until it gets to the last one. We do this in the holidays usually, but we have run this during lesson time, no-one seems to notice it.

  6. #6
    binky's Avatar
    Join Date
    Sep 2006
    Posts
    290
    Thank Post
    1
    Thanked 19 Times in 16 Posts
    Rep Power
    0

    Re: Delete Profile on LogOff

    I just use pGina as this has that option built in!

  7. #7
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,738
    Thank Post
    438
    Thanked 53 Times in 50 Posts
    Rep Power
    30

    Re: Delete Profile on LogOff

    We go about it in 2 ways:

    Deploy the user profile hive cleanup service MSI (on microsofts website somewhere) you need this to "unlock" their profile on logoff so it can be deleted at next startup.

    Use a computer startup script via a GPO (but not linked to staff OU's) that runs delprof silently. Seems to work OK and only adds a few seconds to the startup time of a PC.

  8. #8
    iatkinson's Avatar
    Join Date
    Jun 2007
    Location
    Blackburn
    Posts
    135
    Thank Post
    5
    Thanked 6 Times in 5 Posts
    Rep Power
    16

    Re: Delete Profile on LogOff

    I use delprof in abatch file that runs on shutdown, though only on machines where the amount of profiles is becoming a problem.

  9. #9

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,724
    Thank Post
    867
    Thanked 666 Times in 438 Posts
    Rep Power
    501

    Re: Delete Profile on LogOff

    Using Delprof too as a Startup Script (easiest way)

    The "Cached Profile" setting in GPO is for Roaming profiles only - if you dont use Roaming Profiles it has no effect.

  10. #10
    ChrisP's Avatar
    Join Date
    Apr 2007
    Location
    norfolk
    Posts
    150
    Thank Post
    4
    Thanked 8 Times in 8 Posts
    Rep Power
    17

    Re: Delete Profile on LogOff

    !! remember that if delprof runs on a laptop your gonna wipe the local accounts !!

  11. #11

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,724
    Thank Post
    867
    Thanked 666 Times in 438 Posts
    Rep Power
    501

    Re: Delete Profile on LogOff

    Is there not a way to stop DELPROF deleting certain profiles?

  12. #12

    Join Date
    May 2007
    Posts
    84
    Thank Post
    0
    Thanked 3 Times in 2 Posts
    Rep Power
    15

    Re: Delete Profile on LogOff

    We run delprof when the user logs on to the laptop locally. This deletes all the other profiles, but not the local one they are logged on with

    Are network printers stored under the network profile, because when we delete the network login profiles, staff lose their network printers and have to add them again ?

SHARE:
+ Post New Thread

Similar Threads

  1. Script to delete profile at log off?
    By woody in forum Windows
    Replies: 74
    Last Post: 15th February 2013, 02:28 PM
  2. Create 1hr PC sessions with auto logoff?
    By gshaw in forum Windows
    Replies: 5
    Last Post: 10th September 2007, 09:12 AM
  3. Auto logoff by GPO?
    By contink in forum How do you do....it?
    Replies: 8
    Last Post: 31st March 2007, 10:12 PM
  4. CC3 Workstations seem to hang on logoff
    By Mintsoft in forum Windows
    Replies: 3
    Last Post: 27th February 2006, 03:33 PM
  5. Replies: 7
    Last Post: 27th November 2005, 10: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
  •