Jump to content

Do you have something in place to clean profiles? If so, what?


Recommended Posts

Posted
Wondering what people are doing to keep windows profiles clean. We used to use DELPROF2 during the summer, but we are starting to order SSDs now, which are smaller. Wondering what you are using to keep them clean on a daily\weekly basis.
Posted

There is a GPO, however I've been testing it and doesn't seem to work, still investigating though.

 

Just wondering what other people are using that seems to work for them

Posted
Not at the site that uses this today (smallish SSDs, lots of users in suite) but the policy linked above looks familiar and, assuming it is that one, seems to be working.
Posted
Looking at our test machine, I think that policy might actually be working. HOWEVER, it leaves the profile folder there, but it's empty. That doesn't seem to be a proper solution. Profiles are also showing up in the user profile list from system properties.
Posted
Looking at our test machine, I think that policy might actually be working. HOWEVER, it leaves the profile folder there, but it's empty. That doesn't seem to be a proper solution. Profiles are also showing up in the user profile list from system properties.

 

I'll try to remember to take a look, but IIRC when I first set it up it was removing the folders completely.

Posted
I'll try to remember to take a look, but IIRC when I first set it up it was removing the folders completely.

 

Thanks. I have been playing around with using DELPROF2 at login with a scheduled task. Was running into issues where it was deleting the profile of the student logging in.

Posted
i used to have a script i made years ago that ran on each machine at logoff, so if the user was a student, they have a number at the front of their username, so it would check the users folder on c drive, and delete any that matched, it also did the same with the registry. i can dig it out if you want to have a look at maybe changing it to suit your needs.
Posted

We have a scheduled task that runs delprof2, but only when the machine is idle. Seems to work fine - not come across any problems...

 

Meldrew.

Posted
Thanks. I have been playing around with using DELPROF2 at login with a scheduled task. Was running into issues where it was deleting the profile of the student logging in.

 

It should work fine if you set it to run as a startup item rather than a login item. You could create a quick batch file that runs at startup and clears all the profiles.

Posted
We have a scheduled task that runs delprof2, but only when the machine is idle. Seems to work fine - not come across any problems...

 

Meldrew.

 

I have been playing with that, I think it's the best option, however it kept deleting the profiles on the students logged in.

Posted
It should work fine if you set it to run as a startup item rather than a login item. You could create a quick batch file that runs at startup and clears all the profiles.

 

I was not sure if it would run in time, if there are several profiles to clear, the student might log in while it's still running. If their profile is on the list, it would delete it after log in.

Posted

That GPO is working for us - I have it set to 30 days in various computer labs. Cleans up the entire profile & folder.

 

I have also used delprof2 to deploy a delete on certain computers that the GPO wasn't deployed to and that worked great too (example below deleting older than 2 weeks)

DelProf2.exe /q /ed:default /ed:[ADMINPROFILE]* /ed:public /d:14

 

Not sure what you use for remotely deploying software but even if you don't have something you could go back to basics and make a scheduled task with a batch file setup that runs this on your specified computers every X days, weeks, etc. if you can't get the GPO to work for some reason.

Posted
I was not sure if it would run in time, if there are several profiles to clear, the student might log in while it's still running. If their profile is on the list, it would delete it after log in.

 

Sorry should have said we have the computer policies set so it waits for the script to finish before presenting the login screen.

Posted
would any scanning cause the part of the folder structure to have the last accessed date to be changed to a newer date which would mean it wouldnt be removed
Posted
would any scanning cause the part of the folder structure to have the last accessed date to be changed to a newer date which would mean it wouldnt be removed

 

Not sure what you mean by scanning.. easiest way to find out would be check a folder that was "scanned" right after - check it's modified date etc. and you can also test using delprof2 to that folder from cmd line to see if it see's it as "newer" due to the scan.

Posted
something like a virus scanner

 

It doesn't affect it on my machines, but I'm not sure if that would be different with different solutions. Again you could test by sending a manually started scan on an older profile and then try deleting with delprof2. It can even be just a day old to test with..

Posted

Using this command

 

Delprof2.exe /q /d:25 /ed:admin*

 

it has gone and deleted all the Administrator accounts on the computers :(

 

Seems strange as it has been running for weeks only delted them yesterday.

 

Any idea of what the command should have been to avoid this happeing again?

Posted (edited)
Using this command

 

Delprof2.exe /q /d:25 /ed:admin*

 

it has gone and deleted all the Administrator accounts on the computers :(

 

Seems strange as it has been running for weeks only delted them yesterday.

 

Any idea of what the command should have been to avoid this happeing again?

 

What are the administrator usernames? The /ed:admin* only ignores the USERNAMES that start with admin not groups. If an admin account is named peter it will delete it.

Edited by sullivane
Posted
Not sure then, I use /ed:admin_* and it ignores all our admin profiles that start with admin_ Maybe try /ed:Administrator full name? If you only have one account to ignore, no reason to use wildcard, it's meant for when you have admin accounts with a prefix like admin_ or ad_
Posted

I have a startup script that clears all roaming profiles on the C Drive apart from those added as exceptions, i.e Public, Admin, etc. however, I have never found any solution to be 100% effective - I still get the odd workstation where it won't remove the local profile copy, and have to remove manually from Users or from 'profilelist' in the registry when they log on temporary.

I also have the GPO set to remove profiles at log off which didn't seem to be as effective on its own without using a script.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...