On the web-server there is a script in which the cmd command "shutdown -r -f -t 0 -m \\ ip address remote server" is written. Question: if you pull this GET script with a request from the browser of the client computer, then from which user will this command be executed.

  • I correctly believe that from the system? Not. On behalf of that user, under whose account the connection to this server is made. - Akina
  • Akina, I apologize for writing without specifics. In the reply comment from "romanown" I wrote specifics. - RomkaKraynov
  • In the reply comment from "romanown" I wrote specifics. Remove from there and move to the question itself. No question about the comments on the comments will not be collected. - Akina
  • Akina, moved. - RomkaKraynov
  • The command is written somewhere in some kind of code. If, for example, this is a PHP code, then the command from it will be executed on behalf of the user on whose behalf the PHP process is running. Regardless of the way in which code execution is initiated. Similarly, if there ASP - code will be executed on behalf of the user, under which IIS is running ... and so on. - Akina

1 answer 1

if you just run the command line or scheduler, as it was previously written on behalf of the current user. but if you run on behalf of another user existing in the system or domain, then from him. but not from the system. in order to start from the system, it is necessary that the initiating process be launched from it itself. if you know the reason for such a question and the tasks, it is easier to propose solutions.