Link to home
Start Free TrialLog in
Avatar of andyinet4
andyinet4

asked on

NTresoucekit ..Delprof.exe script.

Delprof question...

i need to tidy up pcs on the network running winnt 4.0, one of the tasks is to tidy up old user profiles taking up valuable h/d space.

Delprof is the ideal tool however when to run it the client needs admin privaledges therefore running it in a login script wont work.

I want to run this from an NT server which is logged in as domain admins and run a script from there, however i can only do one pc at a time....

delprof /i /c:\\computername

Is there a way to pipe a text file containing all the pc names on the network.. ie something like

delprof /i /c:|computernames.txt

NB:this program runs in dos mode.
ASKER CERTIFIED SOLUTION
Avatar of Tim Holman
Tim Holman
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andyinet4
andyinet4

ASKER

Thanks... i didnt realise this was a dos command.. it works really well,and could be handy for a lot of other things.

Just one thing though when delprof program runs its prompts for input on whether you want it to delete all inactive files.. the prompts are y/n.

Any ideas how to put this in as well?

Cheers
delprof /Q will do it quietly.
delprof directs its screen output to the error channel, I'm afraid. So it is not pipable under NT's native DOS.

Sorrow -

Charles

P.S.: It can happen you make run Norton DOS e.g. on your NT; Norton DOS has got the capability to redirect error channel.
Thanks for your help.....