Solved

NTresoucekit ..Delprof.exe script.

Posted on 2000-02-24
5
2,094 Views
Last Modified: 2013-12-28
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.
0
Comment
Question by:andyinet4
  • 2
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Tim Holman earned 200 total points
ID: 2554908
Why not ?

Something like this would work :

@echo off
for /f "Skip=3 Tokens=*" %%i in ('net view') do call :delprof %%i
goto :end
:delprof
set name=%1
rem 'delprof /i \\%name%'
:end
0
 
LVL 1

Author Comment

by:andyinet4
ID: 2557270
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
0
 
LVL 23

Expert Comment

by:Tim Holman
ID: 2557636
delprof /Q will do it quietly.
0
 

Expert Comment

by:csabay
ID: 2557809
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.
0
 
LVL 1

Author Comment

by:andyinet4
ID: 2557826
Thanks for your help.....
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Several part series to implement Internet Explorer 11 Enterprise Mode
A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

19 Experts available now in Live!

Get 1:1 Help Now