Answer the question
In order to leave comments, you need to log in
Autoload pyinstaller script from admin without prompt?
I compile the project into exe with this command:
pyinstaller --onefile --uac-admin main.py
The essence of the script is as simple as possible, it creates files according to timing, through the usual open ().
Added this exe to the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run
Answer the question
In order to leave comments, you need to log in
--uac-admin remove
Try running the executable with psexec
psexec.exe -u admin user -p password yourprogram [arguments]
This used to work.
Psexec: https://docs.microsoft.com/en-us/sysinternals/down...
The second way:
Put the executable in the scheduled tasks,
I think there is an event at system startup
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question