Jump to content

Recommended Posts

Posted

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?

Posted
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.
Posted

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.

Posted

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.

Posted

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!

Posted

To reinforce the cautionary tale: I ran delprof- carefully avoiding the staff laptops - but forgot that the ART computer is used locally as well as on the network (no, I don't know why either!)

Cue a very upset teacher whose pics of the whole schools art work had vanished....:eek:

Luckily, the handy little prog called 'recuva' recommended on this site found everything which was moved onto the server very quickly.

The local log on was speedily removed as well

  • 1 month later...
Posted
Bossman made a vbscript to delete all but some profiles from local machines, and assigned it via GPO as a shutdown script. Attached here, might be handy...

 

Does anyone have a copy of Bossman's profiles-clean.vbs script anywhere please as the attached zip file appears to be corrupt?

Posted

Has anybody successfully deployed delprof via GPO then? I've extracted the files to get the msi but deploy doesn't work.

 

I know that you can get it to run from a server, but this scrolls through machines one at a time and takes a while, whereas if I had it installed locally I could run a whole room at a time, as well as other scheduled tasks, (Virus scan, defrag etc).

  • 2 months later...
Posted
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:

 

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.

 

Just had a little go with this before I left school but couldn't get it going.

 

If i put the code into a batch file in a folder with delprof and computers.txt file it should work when running?

 

Upon running it I got nothing back, and sometimes got an unepected in error.

 

Any pointers?

Posted
the little darlings

 

I thought I was the only one that called them that!!!

 

Thanks for the script. Works a charm. This forum is the best resource for a new Administrator like me. Thanks very much to you all!!!!

  • 2 weeks later...
Posted
I thought i read someone's post that if you set the user up as a Domain Guest that their local profile will be deleted after log off, i've tried this and it didn't work. Is there something else i need to do?
  • 2 months later...
Posted
delprof worked for me, run on the computers gpo, at start up form a share on the server. Pretty quick too after the first run since its only ever deleting 3 - 4 profiles per day. :)
  • 1 month later...
Posted

I have installed delprof on a couple of machines in one room just to test it out. Much to my delight it fired up and began the long slow process of deleting around about 700 local profiles. I returned later on to find that it had finished, and when I opened the Documents and settings folder I found 180 profiles still there!! delprof would not resume to get rid of these, although it did delete the two or three that had been added a few days later when I tried it again. Again when I tried it on another machine it removed most, but still left almost 200 on there.

 

Any thoughts?

Posted
I have indeed tried a few combinations of the codes that the readme provides. For example the /F as you suggest, and also option for Profiles that have not been used in so many days. And some of these profiles have not even been used in a year. And still it does not want to go!!
Posted
I have indeed tried a few combinations of the codes that the readme provides. For example the /F as you suggest, and also option for Profiles that have not been used in so many days. And some of these profiles have not even been used in a year. And still it does not want to go!!

 

Boot a PC into safe mode and delete them by just deleting them as if they are a folder......

[ Or trying Delprof again ] - not sure if Delprof works in safe mode. [ I think it does ]

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...