Page 1 of 1 1
Topic Options
#127321 - 2004-10-02 10:21 PM How to Kill Remote Processes without WMI
smudley Offline
Fresh Scripter

Registered: 2004-07-15
Posts: 16
Loc: Texas of Course!
Dumb question #2,

I've search for how to kill process in the forums and tried them in my scripts.
They don't work for what ever reason or I don't have WMI on my remote machines.

I need to be able to kill a process on a remote, and return an error code of success/fail.

Then, after a timed delay, I need to restart that process on the remote returning an error code of success/fail.

I've looked at so many posts and trying examples I'm turning into a pile of mush.

I appreciate any help.
_________________________
Thanks, Smudley

Top
#127322 - 2004-10-02 10:24 PM Re: How to Kill Remote Processes without WMI
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
It would help if you'd provide more details about your environment. All posted UDFs are proven to work. Thus, if it doesn't work, it's a problem on your side. WMI comes standard on Windows 2000/XP/2003 and can optionally be installed on Windwos 9x/NT. See also PSKILL from SysInternals.
_________________________
There are two types of vessels, submarines and targets.

Top
#127323 - 2004-10-02 10:34 PM Re: How to Kill Remote Processes without WMI
smudley Offline
Fresh Scripter

Registered: 2004-07-15
Posts: 16
Loc: Texas of Course!
Quote:

It would help if you'd provide more details about your environment. All posted UDFs are proven to work. Thus, if it doesn't work, it's a problem on your side. WMI comes standard on Windows 2000/XP/2003 and can optionally be installed on Windwos 9x/NT. See also PSKILL from SysInternals.




My remotes are NT4 and I don't have the manpower to add WMI to over 100 machines and my corporate bigwigs don't want WMI on any of our MS machines. I'm using XP Pro now and it's not installed.
Why corporate decided that beats me.
I feel like a one legged duck, just swinmming in circles.

I looked a PSKILL but it doesn't return a code unless I've overlooked something.

BTW, thanks for the quick replies.
_________________________
Thanks, Smudley

Top
#127324 - 2004-10-02 10:38 PM Re: How to Kill Remote Processes without WMI
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Windows XP Pro comes with WMI build-in! If you need granular control then you should use WMI.
_________________________
There are two types of vessels, submarines and targets.

Top
#127325 - 2004-10-03 02:03 AM Re: How to Kill Remote Processes without WMI
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
As Jens says. WMI is built-in on Windows 2000/XP so one would have to manually cripple it to disable it which would just be plain weird to have someone do that.

Unless PSKILL has changed it does return a code Please post the code you were using.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1179 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.061 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org