+ Post New Thread
Page 1 of 3 123 LastLast
Results 1 to 15 of 45
Windows Thread, Deleting Local Profiles in Technical; Firstly i am sure this will have been discussed on another thread, i did search but could not find it. ...
  1. #1
    Mr_M_Cox's Avatar
    Join Date
    May 2007
    Location
    Portsmouth
    Posts
    142
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Deleting Local Profiles

    Firstly i am sure this will have been discussed on another thread, i did search but could not find it. if someone knows of a relevant thread please just post link.

    i want to delete all local profiles other than administrator and all users from my XP workstations in a 2003 domain when a user logs off. any ideas

    Thanks

  2. IDG Tech News

  3. #2

    Domino's Avatar
    Join Date
    Oct 2006
    Location
    Bromley
    Posts
    3,225
    Blog Entries
    4
    Thank Post
    100
    Thanked 670 Times in 476 Posts
    Rep Power
    240

    Re: Deleting Local Profiles

    have a search fpr Delprof, it'll run from the network and do it

  4. #3
    Mr_M_Cox's Avatar
    Join Date
    May 2007
    Location
    Portsmouth
    Posts
    142
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Deleting Local Profiles

    from what i know, and i may well be wrong, i think delprof will delete all profiles and not leave certain ones. i also need it to run unattended at log off

  5. #4
    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: Deleting Local Profiles

    It'll leave All Users, Default User and Administrator alone.

  6. #5

    Join Date
    Jun 2007
    Location
    Midlands
    Posts
    55
    Thank Post
    3
    Thanked 2 Times in 2 Posts
    Rep Power
    10

    Re: Deleting Local Profiles

    Doesn't the user profile hive cleanup (or whatever it's called) do this?

    Basically, you just need to install it on the local machine, ensure that you have left whichever profiles you want loaded onto the machine, and when a user logs off, it deletes their own profile. This only works assuming you have roaming profiles set up though iirc...

    hth

  7. #6

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,284
    Blog Entries
    2
    Thank Post
    598
    Thanked 879 Times in 617 Posts
    Rep Power
    287

    Re: Deleting Local Profiles

    Bossman made a vbscript to delete all but some profiles from local machines, and assigned it via GPO as a shutdown script. Attached here, might be handy...
    Attached Files Attached Files

  8. Thanks to webman from:

    projector1 (20th May 2009)

  9. #7
    Mr_M_Cox's Avatar
    Join Date
    May 2007
    Location
    Portsmouth
    Posts
    142
    Thank Post
    4
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Deleting Local Profiles

    that script you uploaded is supurb, thank you. one question. i have run it with exclusions on administrator and all users but now my users cant log in with an error of cant find profile. is this because i have deleted default user?

  10. #8
    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: Deleting Local Profiles

    Yes

  11. #9
    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: Deleting Local Profiles

    The default profile should recreate itself though.

  12. #10
    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: Deleting Local Profiles

    I'm fairly sure it doesn't.

  13. #11
    Oops_my_bad's Avatar
    Join Date
    Jan 2007
    Location
    Man chest hair
    Posts
    1,746
    Thank Post
    438
    Thanked 52 Times in 49 Posts
    Rep Power
    24

    Re: Deleting Local Profiles

    You will have to recreate the default user if it's gone (probably best way is just copy any local profile folder and rename it default user i'd have thought).

    I find this works best as a computer startup script, that way the little darlings dont forcibly switch the PC off whilst it runs shutdown scripts

  14. #12

    Join Date
    Dec 2005
    Location
    Essex
    Posts
    87
    Thank Post
    7
    Thanked 5 Times in 5 Posts
    Rep Power
    14
    Use delprof. It comes as an msi that can be deployed via group policy. Then create a script and set it to run on startup to run delprof and the desired switches. I'm pretty sure you can have delprof delete local and/or roaming profiles depending on the switches used. So if you didnt want your local profiles removed then you can set it to remove roaming profiles only.

    James

  15. #13

    tech_guy's Avatar
    Join Date
    May 2007
    Location
    That little bit in the middle of Little England
    Posts
    7,184
    Blog Entries
    3
    Thank Post
    1,550
    Thanked 1,105 Times in 606 Posts
    Rep Power
    282
    Quote Originally Posted by JamesC View Post
    Use delprof. It comes as an msi that can be deployed via group policy. Then create a script and set it to run on startup to run delprof and the desired switches. I'm pretty sure you can have delprof delete local and/or roaming profiles depending on the switches used. So if you didnt want your local profiles removed then you can set it to remove roaming profiles only.

    James
    Yeah, and Mattx has got it on his very handy Admin's Admin Toolbar.

  16. #14
    Norphy's Avatar
    Join Date
    Jan 2006
    Location
    Dunstable
    Posts
    1,352
    Thank Post
    13
    Thanked 51 Times in 42 Posts
    Rep Power
    30
    You don't even need to deploy delprof, you can run it from a network share. I always used to bung it in \\domain.tld\netlogon and run it as a shutdown script.

  17. #15

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    4,747
    Blog Entries
    6
    Thank Post
    1,015
    Thanked 427 Times in 272 Posts
    Rep Power
    141
    delprof isnt working for me. Have it set to run as a machine startup script from a world readable share. The policy is definately being applied. But the profiles arent being deleted.

    am I doing something wrong?

SHARE:
+ Post New Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Deletion of local profiles on xp.
    By mac_shinobi in forum Scripts
    Replies: 25
    Last Post: 13th June 2007, 08:14 PM
  2. Replies: 17
    Last Post: 14th December 2006, 02:52 PM
  3. Deleting profiles on server
    By pinemarten in forum General Chat
    Replies: 4
    Last Post: 29th August 2006, 08:44 PM
  4. 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
  •