Can I use taskkill to kill a process running user without administrative rights?

Discussion in 'Computer Skills' started by Jeh2015, Jun 29, 2018.

Moderators: thaikhanghn
  1. Jeh2015

    Jeh2015 Junior Member

    Joined:
    Dec 4, 2015
    Messages:
    133
    Likes Received:
    45
    I already tried several modes

    taskkill /f /IM chrome.exe /fi "SERVIDOR\Convidado eq %USERNAME%"


    taskkill / f / fi "convidado eq NT AUTHORITY \ SYSTEM" / im chrome.exe

    the search filter can not be recognized

    what I'm trying to kill a process from a user without administrator rights, by the taskmager I can kill the process normally, more accurate per batch of files

    script complete

    @echo off
    :c
    taskkill /f /fi "Convidado eq NT AUTHORITY\SYSTEM" /im chrome.exe
    TIMEOUT 5
    cd C:\Users\Convidado\Desktop
    cd C:\Users\Convidado\Desktop\d
    start myfile
    TIMEOUT 110
    :c
    GOTO c
     
  2. 0822

    0822 Senior Member

    Joined:
    Apr 4, 2014
    Messages:
    669
    Likes Received:
    662
    bạn vào thư mục ổ D tạo tệp test.bat (encoding là ANSI) rồi dán mã dưới vào.
    PHP:
    Taskkill //PID chrome.exe /T
    tương tự tạo thêm tệp test2.vbs (encoding là ANSI) rồi dán mã dưới vào.
    PHP:
    Set objSh CreateObject("Shell.Application")
    objSh.ShellExecute "D:\\test.bat""""""runas"0
    sau đó chạy tệp test2.vbs
    Hoàn thành.
     
  3. Jeh2015

    Jeh2015 Junior Member

    Joined:
    Dec 4, 2015
    Messages:
    133
    Likes Received:
    45
    [​IMG]

    requesting password, more taskkill was launched in the task manager
     

    Attached Files:

  4. 0822

    0822 Senior Member

    Joined:
    Apr 4, 2014
    Messages:
    669
    Likes Received:
    662
    tôi chạy trên win7, win10 và cả vps win 2008 đều chạy hoàn toàn bình thường, không đòi mật khẩu.
    tôi nghĩ do bạn đã cài đặt thêm tài khoản người dùng cho win, lên nó mới hỏi mật khẩu.
     
  5. Jeh2015

    Jeh2015 Junior Member

    Joined:
    Dec 4, 2015
    Messages:
    133
    Likes Received:
    45
    Thanks, but I think this method needs elevation of administrator, my account and guest this method works to kill only the user process?
    everything happens fine when I manually kill by the task manager
     

Share This Page