+ Post New Thread
Results 1 to 10 of 10
Windows Thread, Using Delprof question in Technical; I want to use delprof as part of a startup script to delete profiles on PCs around theschool. I don't ...
  1. #1
    gotstuckagain's Avatar
    Join Date
    Jul 2009
    Posts
    5
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Using Delprof question

    I want to use delprof as part of a startup script to delete profiles on PCs around theschool. I don't want to delete the administrator profile.

    How do I do this please?

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,759
    Thank Post
    3,269
    Thanked 1,052 Times in 973 Posts
    Rep Power
    365
    Not sure about exclusions in delprof ( I dont think it deletes the admin profile by default if im correct ) Although you can create a vbscript using notepad as per the below example

    Delete Local Profiles (VBScript)

    And there is an exceptions list which you can alter the usernames for the exceptions list and it wont delete those profiles with those names

    If you need more help with the vbscript post back with the administrators profile name and I can add it as an exception in the vbscript which you can then add as a startup script ( via group policy if on a domain ) otherwise shove the script in the startup folder if on a workgroup

  3. Thanks to mac_shinobi from:

    gotstuckagain (15th July 2009)

  4. #3
    gotstuckagain's Avatar
    Join Date
    Jul 2009
    Posts
    5
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Just found this thread Deleting Local Profiles

    where Geoff says
    Quote Originally Posted by Geoff
    It'll leave All Users, Default User and Administrator alone.
    I think I've answered my own question... why is it you get succesfuk with searches after you've asked, despite searching beforehand?

  5. #4

    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
    There is a cavat with that. You must be using an up to date version of delprof. I recall the w2k version didn't preserve the all users/administrator folder.

  6. 2 Thanks to Geoff:

    gotstuckagain (15th July 2009), mac_shinobi (15th July 2009)

  7. #5

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,759
    Thank Post
    3,269
    Thanked 1,052 Times in 973 Posts
    Rep Power
    365
    Quote Originally Posted by Geoff View Post
    There is a cavat with that. You must be using an up to date version of delprof. I recall the w2k version didn't preserve the all users/administrator folder.
    Good to know that - thanks for the update

  8. #6
    gotstuckagain's Avatar
    Join Date
    Jul 2009
    Posts
    5
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    If I download from this link, it'll be the latest version I hope?
    Download details: User Profile Deletion Utility (Delprof.exe)

  9. #7

    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
    The latest version is always on the Server Resource Kit Tools CD. That is the updated version to the one in the Server 2003 Resource Kit Tools. However we're on 2008 Server R2 now as the current version of Windows Server. So ideally, you'd want the one off the Tools CD from that. However, the current version of the Server Resource Kit is not free.

    Windows Server 2008 Resource Kit | Overstock.com

  10. #8
    gotstuckagain's Avatar
    Join Date
    Jul 2009
    Posts
    5
    Thank Post
    3
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    I'm running Server 2003 with XP PCs. Are you saying the download I found isnt the latest version?

  11. #9

    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
    No, there's a newer version in the Server 2k8 Resource kit. However the version you have downloaded is the latest you can get for no cost.

  12. Thanks to Geoff from:

    gotstuckagain (15th July 2009)

  13. #10
    kearton's Avatar
    Join Date
    May 2007
    Location
    Yorkshire, via NZ ;)
    Posts
    868
    Thank Post
    166
    Thanked 100 Times in 85 Posts
    Rep Power
    44
    Quote Originally Posted by gotstuckagain View Post
    If I download from this link, it'll be the latest version I hope?
    Download details: User Profile Deletion Utility (Delprof.exe)
    Apparently not...
    C:\Program Files\Windows Resource Kits\Tools>delprof /?
    Microsoft« Windows« Operating System User Profile Deletion Utility v5.2
    ® Microsoft Corporation. All rights reserved.

    This utility deletes Windows NT, Windows 2000, Windows XP and Windows Server 200
    3 family user profiles.

    usage: DELPROF [/Q] [/I] [/P] [/R] [/C:\\<computername>] [/D:<days>]

    /Q Quiet, no confirmation.
    /I Ignore errors and continue deleting.
    /P Prompts for confirmation before deleting each profile.
    /R Delete roaming profile cache only
    /C Remote computer name.

    C:\Program Files\Windows Resource Kits\Tools>delprof /p /c:\\pcnamegoeshere

    Delete \\pcnamegoeshere\C$\Documents and Settings\Administrator? (Yes/No/All) n

    C:\Program Files\Windows Resource Kits\Tools>
    Last edited by kearton; 11th February 2011 at 04:22 PM. Reason: Changed PC name

SHARE:
+ Post New Thread

Similar Threads

  1. Delprof.exe
    By Garyd53 in forum Windows Server 2000/2003
    Replies: 20
    Last Post: 31st May 2009, 10:09 AM
  2. delprof all stations
    By choran in forum Windows
    Replies: 1
    Last Post: 19th November 2007, 12:55 PM
  3. delprof broke java HELP
    By spacemanvic in forum Windows
    Replies: 7
    Last Post: 14th December 2006, 10:58 PM
  4. Replies: 17
    Last Post: 14th December 2006, 01:52 PM
  5. Delprof... is it necessary?
    By _Bat_ in forum Windows
    Replies: 6
    Last Post: 8th September 2006, 05:29 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
  •