[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-09-10
1
Medium Priority
?
262 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 1000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
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…

656 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