[windows2000] Re: Scan all PCs for process

  • From: "Sullivan, Glenn" <GSullivan@xxxxxxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Mon, 12 May 2003 10:09:33 -0400

If you've got a flat file, you can use the first command I sent...

Assuming that the flat file does not contain the double slash before the
computer name:
for /f "skip=3 tokens=1" %i in ('type flatfile.txt') do pslist \\%i|find
"IEXPLORE"
or
for /f "skip=3 tokens=1" %i in (flatfile.txt) do pslist \\%i|find "IEXPLORE"

Hope this helps.

Too bad Beer doesn't ship well... ;-)

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.


-----Original Message-----
From: Jason Benway [mailto:benwayj@xxxxxxxx]
Sent: Monday, May 12, 2003 9:56 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Scan all PCs for process



I'm scanning the subnets right now.
I also have a flat text file with all the machine names in it.

Thank you and Ray for all the help. I owe you a few beers.

jb

-----Original Message-----
From: Sullivan, Glenn [mailto:GSullivan@xxxxxxxxxxxxxx] 
Sent: Monday, May 12, 2003 9:44 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Scan all PCs for process



OK... how about a known IP address range?

for /l %i in (1,1,254) do pslist \\192.168.1.%i|find "IEXPLORE"

Replace the IP address format with yours...

(This is basically a For...Next loop.  For %i = 1 to 254 Step 1...)

Glenn Sullivan, MCSE+I  MCDBA
David Clark Company Inc.


-----Original Message-----
From: Jason Benway [mailto:benwayj@xxxxxxxx]
Sent: Monday, May 12, 2003 9:36 AM
To: 'windows2000@xxxxxxxxxxxxx'
Subject: [windows2000] Re: Scan all PCs for process



Thanks, but we do a net config server /hidden:yes on all our workstations so
net view doesn't work for this :-)

jb

-----Original Message-----
From: Costanzo, Ray [mailto:rcostanzo@xxxxxxxxxxx] 
Sent: Monday, May 12, 2003 9:31 AM
To: windows2000@xxxxxxxxxxxxx
Subject: [windows2000] Re: Scan all PCs for process



Use rkill from the Resource Kit with the /view switch and loop through a NET
VIEW with it.  You'll wind up with two for /f loops.  One for the net view,
and then one for the process list returned by rkill.

Ray at work

> -----Original Message-----
> From: Jason Benway [mailto:benwayj@xxxxxxxx]=20
>=20
>=20
>=20
> We need to scan all of our PC to see if a certain process is running.
>=20  Ideas?
>=20
> Thanks!!!!
>=20


**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

==================================
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: