Jump to content

Recommended Posts

Posted (edited)

is there any way or function to make a windows service start at the startup without adding it to the registry "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" key?

yes and no, like radio eriwan mentioned.

1) you should start real services in HKLM\SYSTEM\CurrentControlSet\Services

2) you should start exe files in the regkey mentioned above

3) you can use Srvany.exe to start normal exe file as service to have normal services access, as start, stop .....

4) you can start an exe file by creating a sheduled task, which runs at system startup. see schtasks /?

I think this are the only possibilities. ;-((

;-))

Stefan

Edited by 99ojo
Posted

You can also do something like this:

RunWait("sc start OpenVPNService", '', @SW_HIDE)

sc.exe is integrated windows command.. Compile the code, put the autoit exe to Start,Programs,Startup folder.. so each time any user will logon, service will start..

Posted

Navigate to HKLM\SYSTEM\CurrentControlSet\Services\YourService, change the binary value "Start" to 2 (in hexadecimal view)...

or in AutoIt:

RegWrite("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\YourService", "Start", "REG_DWORD", "0x00000002")

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...