M
M
Mitya ToDaSyo2019-09-16 14:52:42
Browsers
Mitya ToDaSyo, 2019-09-16 14:52:42

Can I create an event in the task scheduler from the browser?

Hello! Tell me, can I create an event in the windows task scheduler from the browser?
I need to restart the local machine when a php script execution event occurs...
Can it really be done using js?
Thank you!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
coderisimo, 2019-09-16
@dimastik1986

We can make a request to the server for example using a Windows PowerShell script. Well, depending on the answer, overload the computer with the same PowerShell.

A
Alexander, 2019-09-16
@NeiroNx

If both computers are in the domain, then schtasks can take the name of the computer and will create a task in the standard way. I would make the authorization in IIS transparent, and the execution of scripts on behalf of an authorized user.

M
Mitya ToDaSyo, 2019-09-16
@dimastik1986

Apparently I didn't explain correctly! comp 1, I have a script, when the script is executed, when an event occurs, I need to close the browser and run it and the exe application - on a new one. I thought that as an option, if it would not be difficult and possible))) to reboot the computer, and put the launch on autorun ... yeah, I wrote it myself in shock from such an idea))) (I came up with such an idea when I looked sources of widgets for the desktop, they seem to be on js ..
in the remainder - there is a need to close the browser, and exe application, and immediately run them again!
or can you connect sql as a data source and bind a trigger in the scheduler when adding an entry to the table?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question