Solved

How can I find all RDF files on my entire domain (in all PCs)

Posted on 2004-09-10
1
260 Views
Last Modified: 2010-03-18

I have to search RDF files on my entire network (domain) we are using windows 2000 professional on our desktops and have Windows 2000 Servers. Is there any software which can give me positive results. That can be demo version. we will try and then buy it if required.
0
Comment
Question by:AzfarL
[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
1 Comment
 
LVL 85

Accepted Solution

by:
oBdA earned 500 total points
ID: 12039745
This might work for you: It will scan either a single machine that's passed in the command line, or a list of machines, when called with /L as first argument and the path and name of the file  as second argument:
SearchRDF SomeMachine
or
SearchRDF /L S:\ome\Machine\list.txt
Machines that aren't turned on when you run the script will be ignored and listed in a "failed" file. You can use this file to run it against the remaining machines at a later time, but rename it before you try again!
If you don't have a list of machine at hand, you can create one by typing
net group "domain computers" /domain >machine.txt

====8<----[SearchRDF.cmd]----
@echo off
setlocal
:: *** List of Shares/folders to be scanned:
set ScanFolders=C$ D$
:: *** Pattern to scan for:
set ScanPattern=*.rdf
:: *** File with machine names that didn't respond
:: *** default: %D*rive, *P*ath, *N*ame of argument *0* (the script name), with the extension .txt
set FailedFile=%~dpn0.txt

if %1.==. goto leave
if /i not %1.==/L. goto process
if %2.==. goto leave
set MachineFile=%~2
if not exist "%MachineFile%" goto leave
:: *** Process a list of machines:
if exist "%FailedFile%" del "%FailedFile%"
for /f %%a in ('type "%MachineFile%"') do call :process %%a
goto leave

:process
set Machine=%1
set Machine=%Machine:\=%
set Machine=%Machine:$=%
:: *** Name of the log file:
set LogFile=%~dpn0-%Machine%.log
echo Processing %Machine% ...
ping -n 1 %Machine% | find "TTL" >NUL
if errorlevel 1 goto :NoResponse
:: ***
for %%a in (%ScanFolders%) do if exist "\\%Machine%\%%~a" (
  dir /a:-d /s /b "\\%Machine%\%%~a\%ScanPattern%" >"%LogFile%"
)

goto :eof

:NoResponse
echo ... not responding.
if not "%MachineFile%"=="" >>"%FailedFile%" echo %Machine%
goto :eof

:leave
====8<----[SearchRDF.cmd]----
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever set up your wireless router at home or in the office to find that you little pop-up bubble in the bottom right-hand corner of Windows read "IP Conflict - One of more computers on the network have been assigned the following IP address"…
An article on effective troubleshooting
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

707 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