[windows2000] Re: Scan all PCs for process

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

Ray,

What format to do send list mail in?  I just noticed that my equals signs
come through fine, but yours do not.

I use Outlook 10 sending in Plain Text only, for reference...

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


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



Like, I didn't test this for more than five seconds and I'm a rookie
with batch files, but I think this may work.

if {%1}=3D=3D{} goto :Usage
for /f "skip=3D3" %%j in ('net view') do (
        for /f "Skip=3D3 Tokens=3D1" %%i in ('rkill /view %%j') do (
                if {%%i}=3D=3D{%1} net send %COMPUTERNAME% %%j has %1
running.
                )
        )
Goto :EOF
:Usage
ECHO Usage:
ECHO findproc prog.exe




Save that as "findproc.bat" for example and then at the command prompt,
enter:  findproc sol.exe
to find out who's playing solitaire, for example.  This assumes that you
have the rkill service installed on your workstations...

Ray at work


> -----Original Message-----
> From: Costanzo, Ray=20
> Sent: Monday, May 12, 2003 9:31 AM
> To: windows2000@xxxxxxxxxxxxx
> Subject: [windows2000] Re: Scan all PCs for process
>=20
>=20
>=20
> Use rkill from the Resource Kit with the /view switch and=20
> loop through a NET VIEW with it.  You'll wind up with two for=20
> /f loops.  One for the net view, and then one for the process=20
> list returned by rkill.
>=20
> Ray at work
>=20
> > -----Original Message-----
> > From: Jason Benway [mailto:benwayj@xxxxxxxx]=3D20
> >=3D20
> >=3D20
> >=3D20
> > We need to scan all of our PC to see if a certain process=20
> is running.=20
> >=3D20  Ideas?
> >=3D20
> > Thanks!!!!
> >=3D20
>=20
>=20
> **********************************************************************
> This email and any files transmitted with it are confidential=20
> and intended solely for the use of the individual or entity=20
> to whom they are addressed. If you have received this email=20
> in error please notify the system manager.
>=20
> This footnote also confirms that this email message has been=20
> swept by MIMEsweeper for the presence of computer viruses.
>=20
www.mimesweeper.com
**********************************************************************


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D
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: