?
Solved

NTresoucekit ..Delprof.exe script.

Posted on 2000-02-24
5
Medium Priority
?
2,123 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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…
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…

770 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