+ Post New Thread
Page 1 of 5 12345 LastLast
Results 1 to 15 of 75
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
    woody's Avatar
    Join Date
    Jun 2005
    Location
    Carlisle, Cumbria
    Posts
    617
    Thank Post
    3
    Thanked 17 Times in 15 Posts
    Rep Power
    22

    Script to delete profile at log off?

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

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Script to delete profile at log off?

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

  3. #3

    Join Date
    Feb 2006
    Posts
    1,187
    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?

  4. #4

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

    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

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

    Re: Script to delete profile at log off?

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

  6. #6
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,013
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    108

    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.

  7. #7

    Join Date
    Feb 2006
    Posts
    1,187
    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:

  8. #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!

  9. #9
    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: Script to delete profile at log off?

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

  10. #10
    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Harpenden
    Posts
    2,383
    Thank Post
    54
    Thanked 315 Times in 245 Posts
    Blog Entries
    6
    Rep Power
    120

    Re: Script to delete profile at log off?

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

  11. #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]

  12. #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 59 Times in 49 Posts
    Rep Power
    40

    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

  13. #13

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,678
    Thank Post
    861
    Thanked 650 Times in 431 Posts
    Rep Power
    499

    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

  14. #14
    tarquel's Avatar
    Join Date
    Jun 2005
    Location
    Powys, Mid-Wales, UK
    Posts
    1,740
    Thank Post
    13
    Thanked 45 Times in 35 Posts
    Rep Power
    29

    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

  15. #15

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,804
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    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 5 12345 LastLast

Similar Threads

  1. Script to Delete Profiles - PLEASE HELP
    By Mr_M_Cox in forum Scripts
    Replies: 13
    Last Post: 22nd February 2013, 03:53 PM
  2. Replies: 8
    Last Post: 17th November 2007, 09:04 PM
  3. need a script to delete shortcuts
    By philtomo-25 in forum Scripts
    Replies: 2
    Last Post: 1st November 2007, 03:50 PM
  4. Delete Profile on LogOff
    By roland in forum How do you do....it?
    Replies: 11
    Last Post: 20th September 2007, 09:43 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
  •