Results 1 to 2 of 2

Thread: Kill process running by different users

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    in
    Posts
    40

    Question Kill process running by different users

    Hi all,

    How can I kill a process that is running by a different windows user.
    OpenProcess and TerminateProcess APIs only kill processes running by current user. My application is running under administrator privileges.

    Windows TaskManager can kill any processes even executer by other users (SYSTEM or other)

    TASKLIST and TASKKILL commands also do the same, but I'm searching for API functions to do this directly from my application.

    Thanks a lot
    A.B.Fatehi
    Microsoft Certified Professional

  2. #2
    Interweb adm/o/distrator Paul M's Avatar
    Join Date
    Nov 2006
    Location
    Australia, Melbourne
    Posts
    2,306

    Re: Kill process running by different users

    Is this in .NET because using the System.Diagnostics class will make this job very easy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width