简体   繁体   中英

Using taskkill with php

I work on a Web-Panel to start and end programs on my Windows Server.

The server is a dedicated server with Windows Web Server 2008 R2 and Plesk Panel.

My php code:

taskkill /F /IM Gotcha_Antihack.exe 2>errors.txt
pclose(popen($cmd, "r"));

Text from the errors.txt:

FEHLER: Zugriff verweigert. (Error: access denied)

Can't I execute the taskkill (permissions for the Internet User are granted) or can't the taskkill end the process (the same user start the process)?

The Problem was about the Windows User Account Control. I have to give the ISS User the rights for the command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM