S
S
s2d1ent2021-10-11 11:50:19
Windows
s2d1ent, 2021-10-11 11:50:19

How to run exe automatically when it hits PC?

Without using the registry to see how the exe ended up on the system, it immediately started working.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
res2001, 2021-10-11
@s2d1ent

In this formulation of the question, the answer is no.
For any program to start, either the OS must know that it needs to be launched at some point, or the user must start it manually.
For autorun, you can use several registry branches, both user and system, you can also use the sturtup directory in the start menu (in win10 it is not explicitly in the menu, but it can be found in the file system) or add Settings-> Applications- >Autoload (this action, in theory, adds entries to the registry).
Another option is to add the start of the application to the scheduler by hanging it on some suitable trigger.
After making the appropriate changes and rebooting (or a trigger event), the application will start.
You can also run the application remotely, there are quite a few such options. From the built-in tools, you can use: wmic or powershell. The same psexec (which pavelsha wrote about ), etc. But the program must be available on the remote computer, at the specified path. Those. you must first copy the program to a remote computer, and then run it remotely. As an option - specify the network path available to the remote computer. But we must not forget that in the case of a network path, authorization on a network resource will be required ... It's easier to copy locally.
By the way, you can edit the registry remotely. There are tools for this out of the box. For example, the reg add command can do this. But even here there is a specificity.

P
pavelsha, 2021-10-11
@pavelsha

PsExec - Windows Sysinternals
https://yandex.ru/search/?clid=2186621&text=psexec
... somewhere remote.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question