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

Jeh2015

Junior
Joined
Dec 4, 2015
Messages
142
Reactions
45
MR
0.151
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
 
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
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 /F /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.
 
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 /F /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.

k0ldw2


requesting password, more taskkill was launched in the task manager
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    55.4 KB · Views: 36
k0ldw2


requesting password, more taskkill was launched in the task manager
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.
 
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.
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
 

Announcements

Today's birthdays

Forum statistics

Threads
418,340
Messages
7,070,264
Members
170,464
Latest member
congnghevangnet

Most viewed of week

Most viewed of week

Back
Top Bottom