+ Post New Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 44
Windows Thread, Deleting Local Profiles in Technical; If if you run delprof /? from a command prompt, it shows you all the options available. I seem to ...
  1. #16

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,265
    Thank Post
    242
    Thanked 1,575 Times in 1,254 Posts
    Rep Power
    341
    If if you run delprof /? from a command prompt, it shows you all the options available. I seem to recall there is an option whereby you can specify yes or no to deleting each profile in turn.

    As a word of caution, be careful using delprof on laptops where users have local profiles cached. It will delete everything, including their documents which isn't redirected unlike on a domain

  2. Thanks to Michael from:

    joe90bass (5th July 2008)

  3. #17

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,531
    Thank Post
    1,341
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    cheers, I have the /Q and /I flags set already. It works fine if i run it manally, its just not running on startup.

  4. #18

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    Why do you want it running on startup ?
    Are you trying to set it to run everytime a PC / User logs on ?
    If so - why ?

  5. #19

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,531
    Thank Post
    1,341
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    I want to run it when a PC is powered on, not when a user logs on. And because I have about 500 computers with 100 pupils profiles on each that I am trying to delete now they are away for the summer.

  6. #20

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,069 Times in 625 Posts
    Rep Power
    740
    Quote Originally Posted by RabbieBurns View Post
    I want to run it when a PC is powered on, not when a user logs on. And because I have about 500 computers with 100 pupils profiles on each that I am trying to delete now they are away for the summer.
    Deleting local profiles using Delprof can take time - [ depending on how large the profiles are to start with ] and you will be surprised as to how large local profiles can be.
    Not advisable running on startup.
    If you need to remove all the profiles over the summer the best way would be to make a .txt file with the names of your PCs in and then run delprof from a PC that has admin rights on over the network. [ Make sure all the PCs are turned on !! ]
    Create a txt file called computers.txt - make sure each computer name is on a new line then:

    Code:
    For /f %a in (computers.txt) Do 
    Delprof.exe /I /Q /C:\\%a /D:90
    Delprof will then delete all the profiles that haven't been used in 90 days that are in the txt file.

  7. Thanks to mattx from:

    RabbieBurns (2nd July 2008)

  8. #21

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,531
    Thank Post
    1,341
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    Nice one cheers.

    Can you recomomend an easy way to get a list of computers from active directory please?

  9. #22
    somabc's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    2,337
    Thank Post
    83
    Thanked 388 Times in 258 Posts
    Rep Power
    112
    Go to AD Users & Computers, right click on the domain on the left and choose export list, can export as csv, txt etc

  10. #23
    Sirbendy's Avatar
    Join Date
    Nov 2005
    Posts
    2,298
    Thank Post
    8
    Thanked 203 Times in 154 Posts
    Rep Power
    111
    I did that..our machines all have a scheduled task as part of the image, and a file containing the DEL command to wipe the accounts in the CSV on the first day of each month.

    I just update the list each new year with Netsupport replace, and job done. Removal at every logoff will slow the machine. Once a month at 4pm does nicely with our profiles now I've beaten Macromedia out of them..bloody space hog that it is.

    Any machines I run across that are full, I log into as local admin and run a script to add the scheduled task and relevant files, then execute it in the background. Then I log off and leave it to it.

    Seems spot on so far..I should check the suites now really, as it's day 3 of a new month!

  11. #24

    Join Date
    Mar 2007
    Posts
    307
    Thank Post
    3
    Thanked 9 Times in 8 Posts
    Rep Power
    17
    If you shut your computers down every day, running delprof at startup shouldn't be a problem. Run delprof over the summer hols so that all your machines are clear and then set delprof to run at startup. You should only have a days worth of profiles on the local machine.

    I was thinking of setting this up for next year, as every now and then I get people unable to logon because their profile has been corrupted on the client. Although I managed to narrow the reason down to people turning the power switch off at the wall rather than shutting the machine down

    But like other people here, I just have some batch scripts that run delprof for rooms regularly instead.

  12. #25
    azrael78's Avatar
    Join Date
    Sep 2007
    Location
    Devon
    Posts
    383
    Thank Post
    47
    Thanked 37 Times in 33 Posts
    Rep Power
    21
    We will shortly be doing this also.
    Running a delete profile script at PC shutdown (as our PCs get a reboot or 2 a day) - it won't delete Administrator, LocalService, NetworkService, Default User - but anything else is fair game to it.

    The good thing is it won't run on LFT's (as these have local cached roaming profiles) - but anything else (except Servers) is fair game for it.

    I'm almost looking forward to it in some kind of perverse way.

    Az

  13. #26
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118
    Thinking about this for a school that's primarily laptop based but I'm aware that if there's a problem with the wireless or the server goes down then for staff in particular, the system could wipe work done offline.

    Anyone got any thoughts on this and how best to counter the problem?

  14. #27

    Join Date
    Jan 2007
    Posts
    41
    Thank Post
    2
    Thanked 1 Time in 1 Post
    Rep Power
    0

    delprof can have issues with some profiles

    We have run delprof at shutdown for a while now (if it misses once or twice it'll catch them next time). But we have found that there is still an issue with some profiles which cause it to error out no matter what switches I use it stops when it gets to one of these. Java appears to save a file to which the administrator doesn't have permissions. When we go in manually we have to take ownership, then grant ourselves permissions, then delete the profile. Pain.

  15. #28

    maniac's Avatar
    Join Date
    Feb 2007
    Location
    Kent
    Posts
    3,070
    Thank Post
    210
    Thanked 430 Times in 310 Posts
    Rep Power
    144
    You could use XCACLS.VBS http://support.microsoft.com/kb/825751 with the relevant switches to grant the administrator full rights to everything in the documents and settings folder before you run Delprof. It works really well that script, and is dead handy for modifying folder and file rights on local machines at machine startup. Saved me hours of work when you build a machine image, then realise some horrible piece of software needs write access to an obscure folder somewhere to work properly!

    Mike.

  16. #29

    Join Date
    Sep 2007
    Posts
    90
    Thank Post
    7
    Thanked 32 Times in 17 Posts
    Rep Power
    20

    (domain)guest profiles are deleted by design.

    One doesn't even have to deploy some script or utility to delete profiles.
    By design, windows deletes profiles of users who are member of the domain or local Guests group, immediatly after logging of. Even if these users are also member of users, Power users or even (domain)admin's.

    And it will leave the default profiles alone.

  17. #30
    chrbb's Avatar
    Join Date
    Oct 2005
    Location
    Midlands
    Posts
    1,508
    Thank Post
    141
    Thanked 67 Times in 62 Posts
    Rep Power
    47
    I run a psexec batch file to delete profiles in the suite, generally once a month, I use the 'delete except' vbs script - found on this site
    I leave the pupil set of laptops alone in case the wireless goes down so that users can use cached profiles to log on, and don't let delprof anywhere near the staff laptops so i don't delete anyone's work!

SHARE:
+ Post New Thread
Page 2 of 3 FirstFirst 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, 01: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
  •