Question Locked

delprof

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I run delprof on multiple machines remotely?

4 replies

by lowlands

delprof takes \\computername as part of it's commandline. So you'll have to create some kind of batch file that feed all computernames into the batchfile.

i can probably give you an example, let me know

by lowlands

two files, one is the batch file (test.cmd) the other one a file with one row of the servernames (test.txt). For the file with servernames, one name per line.

test.cmd:

FOR /F "eol=; tokens=1* delims=, " %%a in (test.txt) do delprof /Q /C:\\%%a /D:30.

Make sure it's one line.

by andy_boucher

There is this cool little utility, called PC Profile Manager, you can find it at the link below:

http://www.helmtechnologies.com/wpm/usa_home.htm

It will list all computers, users and user profiles on all machines in your environment, the last time computers and users logged into AD, and also the last time a profile was accessed on a computer. You can then see all your profiles, which are valid, aged, etc. and sort by them. In addition, if you delete a user, because that person is no longer with the company, you can have it delete that users profile from all machines they logged in to. In addition, you can backup and restore profiles. For less the $1800 for your entire domain, it is really inexpensive for all that you get with it... Check it out, they have a demo/trialware you can download. It definitely makes things better knowing what you are deleting then delprof with is indescriminate.

This discussion is closed to new replies.