+ Post New Thread
Page 1 of 6 12345 ... LastLast
Results 1 to 15 of 76
Windows Thread, Script to delete profile at log off? in Technical; Is there a log off script I can run to remove their local profile?...
  1. #1

    Join Date
    Jun 2005
    Location
    Carlisle, Cumbria
    Posts
    525
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Script to delete profile at log off?

    Is there a log off script I can run to remove their local profile?

  2. IDG Tech News

  3. #2


    Join Date
    Jan 2006
    Posts
    6,457
    Thank Post
    324
    Thanked 740 Times in 557 Posts
    Rep Power
    201

    Re: Script to delete profile at log off?

    use delprof.exe on the resource cd.
    delprof /Q will do it quietly

  4. #3

    Join Date
    Feb 2006
    Posts
    1,193
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Script to delete profile at log off?

    Isn't there a GPO setting to delete cached profiles automatically?

  5. #4

    Join Date
    Jun 2005
    Location
    London, UK
    Posts
    110
    Thank Post
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    16

    Re: Script to delete profile at log off?

    Yes. There is also the User Profile Hive Cleanup Service which can be used in conjunction with that policy setting.

    The policy setting is at Computer Configuration->Administrative Templates->System->User Profiles->Delete cached copies of Roaming Profiles

    User Profile Hive Cleanup:
    http://www.microsoft.com/downloads/d...DisplayLang=en

  6. #5
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,641
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    29

    Re: Script to delete profile at log off?

    I do the lot. GPO setting + UPHCLEAN + DELPROF /Q /I /R.

  7. #6
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,810
    Thank Post
    89
    Thanked 212 Times in 195 Posts
    Rep Power
    83

    Re: Script to delete profile at log off?

    Quote Originally Posted by ajbritton
    I do the lot. GPO setting + UPHCLEAN + DELPROF /Q /I /R.
    Me too.

  8. #7

    Join Date
    Feb 2006
    Posts
    1,193
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Script to delete profile at log off?

    kills all known pofiles. dead

    OK I guess I should go add some value elsewhere ops:

  9. #8

    Join Date
    Oct 2006
    Location
    Ohio USA
    Posts
    14
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Script to delete profile at log off?

    I, too, want (need) a logoff script that will selective delete LOCAL profiles - selective as I want to delete the students' local profile, but not my admin1, administrator, or the teacher's profile. I have read the various postings in this forum and understand, to a point, about UPHClean and Delprof, but I do not understand scripting and script writing enough to know what my logoff script would look like. Also, does UPHClean and Delprof need to be installed on the client? I have also set in the GPO to "enable" the "delete cashed copies of Roaming Profiles" but it does not have any effect in XP Pro. Any assistance would be greatly appreciated!

  10. #9
    tosca925's Avatar
    Join Date
    Aug 2005
    Location
    Midlands
    Posts
    1,565
    Thank Post
    4
    Thanked 4 Times in 4 Posts
    Rep Power
    17

    Re: Script to delete profile at log off?

    Isn't there a GPO setting to delete cached profiles automatically?
    I thought this as well

  11. #10
    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Dunstable
    Posts
    1,352
    Thank Post
    13
    Thanked 51 Times in 42 Posts
    Rep Power
    30

    Re: Script to delete profile at log off?

    There is for roaming/manatory profiles but not for local ones I think.

  12. #11

    Join Date
    Oct 2006
    Location
    Ohio USA
    Posts
    14
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    script for deleting local profiles on logoff

    I, too, want (need) a logoff script that will selective delete LOCAL profiles - selective as I want to delete the students' local profile, but not my admin1, administrator, or the teacher's profile. I have read the various postings in this forum and understand, to a point, about UPHClean and Delprof, but I do not understand scripting and script writing enough to know what my logoff script would look like. Also, does UPHClean and Delprof need to be installed on the client? I have also set in the GPO to "enable" the "delete cashed copies of Roaming Profiles" but it does not have any effect in XP Pro. Any assistance would be greatly appreciated!

    [topic merged - please do not start needless topics when they exist thanks - tarquel]

  13. #12
    Midget's Avatar
    Join Date
    Oct 2006
    Location
    In a Server Room cutting through a forest of Cat5e
    Posts
    1,298
    Thank Post
    5
    Thanked 53 Times in 46 Posts
    Rep Power
    33

    Re: script for deleting local profiles on logoff

    I would also be interesting in such a thing, especially if it takes account that the students dont have any local access rights.........

    qq on this: why doesnt the GPO setting (delete local profs) actually work?

    Midget

  14. #13

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    5,479
    Thank Post
    676
    Thanked 401 Times in 286 Posts
    Rep Power
    230

    Re: script for deleting local profiles on logoff

    The GPO setting is only for cached copies of ROAMING profiles - therefore wont work on locally stored profiles..

    Delprof doesn't need to be copied to the client - I run it from a batch file stored in the NETLOGON share using GPO logoff script

  15. #14
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,872
    Thank Post
    13
    Thanked 40 Times in 34 Posts
    Rep Power
    24

    Re: script for deleting local profiles on logoff

    I noticed yesterday that it has stopped working on mine as well - and as a result, causes problems...

    [such as clearing a students roaming profile on the server wont have the desired effect if they log on to a machine that still has a copy of their profile]

    ...so I'm going to look at it - when i get a chance.

    As my machines reboot each night, that would be an opportune time for a computer shutdown script to run that clears the profiles.

    Anyone got one to hand that saves us having to create one?

    Cheers
    Nath

  16. #15
    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,056
    Blog Entries
    1
    Thank Post
    104
    Thanked 439 Times in 380 Posts
    Rep Power
    114

    Re: script for deleting local profiles on logoff

    Have a look at remote profile cleaner by No Nonsense Software Inc.

    http://www.no-nonsens.nl/

    You can setup 'templates' telling it exactly which profiles you want to clean on what machines. You can test your settings before you try them too. Plus everything can be done via command line options.

SHARE:
+ Post New Thread
Page 1 of 6 12345 ... LastLast

Similar Threads

  1. Replies: 8
    Last Post: 17th November 2007, 10:04 PM
  2. need a script to delete shortcuts
    By philtomo-25 in forum Scripts
    Replies: 2
    Last Post: 1st November 2007, 04:50 PM
  3. Delete Profile on LogOff
    By roland in forum How do you do....it?
    Replies: 11
    Last Post: 20th September 2007, 09:43 PM
  4. Script to Delete Profiles - PLEASE HELP
    By Mr_M_Cox in forum Scripts
    Replies: 10
    Last Post: 13th June 2007, 03:51 PM
  5. Script to delete printer
    By tosca925 in forum Scripts
    Replies: 2
    Last Post: 31st August 2005, 07:45 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
  •