Solved

NTresoucekit ..Delprof.exe script.

Posted on 2000-02-24
5
2,079 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
Comment Utility
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
Comment Utility
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
Comment Utility
delprof /Q will do it quietly.
0
 

Expert Comment

by:csabay
Comment Utility
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
Comment Utility
Thanks for your help.....
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

If you Lost your Administrator password for Windows XP, Vista, or 7 this CD will help you reset the password to blank so you can log in. Once in you should change that blank password to something!! Download the ISO on this page http://www.spl…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
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 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

743 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

14 Experts available now in Live!

Get 1:1 Help Now