gotstuckagain Posted July 15, 2009 Posted July 15, 2009 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?
mac_shinobi Posted July 15, 2009 Posted July 15, 2009 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 1
gotstuckagain Posted July 15, 2009 Author Posted July 15, 2009 Just found this thread http://www.edugeek.net/forums/windows/9933-deleting-local-profiles-2.html where Geoff says 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?
Geoff Posted July 15, 2009 Posted July 15, 2009 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. 2
mac_shinobi Posted July 15, 2009 Posted July 15, 2009 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
gotstuckagain Posted July 15, 2009 Author Posted July 15, 2009 If I download from this link, it'll be the latest version I hope? Download details: User Profile Deletion Utility (Delprof.exe)
Geoff Posted July 15, 2009 Posted July 15, 2009 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
gotstuckagain Posted July 15, 2009 Author Posted July 15, 2009 I'm running Server 2003 with XP PCs. Are you saying the download I found isnt the latest version?
Geoff Posted July 15, 2009 Posted July 15, 2009 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. 1
kearton Posted February 11, 2011 Posted February 11, 2011 (edited) 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:\\] [/D:] /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> Edited February 11, 2011 by kearton Changed PC name
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now