Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

NTresoucekit ..Delprof.exe script.

Posted on 2000-02-24
5
Medium Priority
?
2,128 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 23

Accepted Solution

by:
Tim Holman earned 800 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

647 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