Solved

delprof for winxp

Posted on 2002-07-30
15
522 Views
Last Modified: 2011-10-03
Is there another version of delprof for winxp?  The old version does not delete the folders in documents and settings folder.  
0
Comment
Question by:aa799
  • 7
  • 4
  • 2
  • +2
15 Comments
 
LVL 7

Expert Comment

by:jmiller47
ID: 7189316
Not at this point. I would imagine that it would be in the Windows .NET Resource kit tools which is not out yet. The documentation is, but not the tools.
0
 
LVL 4

Expert Comment

by:CyberWizard
ID: 7190977
which version are you using?
if you use the version which comes with the windows 2000 resource kit that will also be able to delete those folders since windows xp documents and settings is derived from windows 2000 technology...

regards,

CyberWizard
0
 

Author Comment

by:aa799
ID: 7191053
I'm using version 5.0.2134.1.
It will work if you are logged on as an Admin and click and run it, but it will not work if you schedule a task for it.  I schedule it to execute everytime the computer boots up (run as admin).  It seems to delete the registry keys but not the folders in 'documents and settings'.  It works fine in win2000 as a scheduled task but not in winxp.
0
 
LVL 4

Expert Comment

by:CyberWizard
ID: 7191145
what's in your C:\Windows\SchedLgU.txt ?
anything in your event log that's relevant?

why do you want to remove them, is it because you are using roaming users and their settings are cached on your pc?

if so use the following tweak to disable caching of roaming profiles:

If this settings is enabled, when users with roaming profiles log off, the system will delete the cached copy of their roaming profile. This will help to save disk space where that are lots of roaming users.

Key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Value Name: DeleteRoamingCache
Data Type: REG_DWORD
Data: (0 = disabled, 1 = enabled)
0
 
LVL 4

Expert Comment

by:CyberWizard
ID: 7191163
not sure if this works for windows xp though.
regards,

CyberWizard
0
 

Author Comment

by:aa799
ID: 7191631
"delprof.job" (delprof.cmd)
     Started 7/30/2002 4:00:38 AM
"delprof.job" (delprof.cmd)
     Finished 7/30/2002 4:00:38 AM
     Result: The task completed with an exit code of (0).

that's what is the log.

The reason I want to delete the profiles is that i have a lab that multiple user use.  For space reasons, the people above me won't set up romming user profiles.  So to keep the computers from running out of space, I want to delete the profiles everytime the computer starts up
0
 
LVL 4

Expert Comment

by:CyberWizard
ID: 7191656
I've got just the program you would like, I actually found this as being a novell Coolsolution.

there is a tool that will remove those leftover profiles, it's called deluser:

http://www.cae.wisc.edu/~micro/deluser/

but I also see an interesting comment:

In order for Deluser to function correctly, the user running it should have "Administrator" privileges. It is possible to gain some functionality when running it from an account with "Account Operator" privileges however, deluser will be unable to take ownership of profile directories and enumerate all active processes. Use at your own risk!

about those profile directories and their rights, this could be the problem with the delprof program?
can you check if a rights issue is the case here?


so but another question comes to mind, you are deleting profiles that are not stored anyware else, why not create a standard login profile so only one profile will be on the pc?
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 4

Expert Comment

by:CyberWizard
ID: 7191678
also an idea would be to make this one profile a mandatory profile:

A mandatory user profile, which is a roaming profiles that can be used to specify particular settings for individuals or an entire group of users. Only system administrators can make changes to mandatory user profiles.
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7191693
I don't know if this is what you want. If it is, great!

I am thinking that what this does is ONLY delete local user accounts. It does not seem that is deletes local profiles of users. Just make sure you know what it does before you accidentally delete a user.

I hope it work for ya!
0
 

Author Comment

by:aa799
ID: 7191868
I can't do just one profile because i'm at a University and for security reasons users must login with there own id and pass.  I tryied the deluser and that didn't seem to work.  Looks like it deleted the registry entry but not the folder.  
0
 
LVL 4

Expert Comment

by:CyberWizard
ID: 7191879
have you added the ability to run as a batch job and the run as a service rights to the user which the task is submitted under (is this admin also?)

and sure the rights issue is not a problem here?

regards,

CW
0
 

Author Comment

by:aa799
ID: 7191924
not sure what you mean.  I ran  deluser from the command propt under the admin account.  The folders of all users still are present.  I also tried task scheduling it (run as admin), and that didn't seem to work either.  
0
 
LVL 4

Expert Comment

by:jonnyz0109
ID: 8711576
aa799,
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: PAQ/Refund

Please leave any comments here within 7 days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Thanks,

jonnyz0109
EE Cleanup Volunteer
0
 
LVL 4

Expert Comment

by:CyberWizard
ID: 8713285
irony is I've now got a better answer.

aa799, if you're still active post a comment here and I'll explain what to do...
(or if you solved it)
0
 

Accepted Solution

by:
YensidMod earned 0 total points
ID: 8763239
Per recommendation.

YensidMod
EE Moderator
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now