Yea so now wierdly it works from the cmd prompt bu...
# fleet
m
Yea so now wierdly it works from the cmd prompt but not when ran as a windows service
c
I recall having issues with the Windows service at one point. Mine was related to the exec path. In services.msc, what does your path to executable have? mine reads:
Copy code
C:\Program Files\osquery\osqueryd\osqueryd.exe --flagfile "C:\Program Files\osquery\osquery.flags"
m
Copy code
"C:\Program Files\osquery\osqueryd\osqueryd.exe" --flagfile="C:\Program Files\osquery\osquery.flags"
c
You may need to tweak the service to not have the executable quoted, only the flagfile parameter quoted
m
Looks like that gonna be a PwrShl thing eh? No ability with UI
c
Ya. https://osquery.readthedocs.io/en/stable/installation/install-windows/ Look under the "Install manually" section. There are a couple of ways to do it. I wish I could remember which one worked for me, but I did have trouble with it.
What version of Windows are you on? I had these issues on 2012 R2, but the installation worked fine on 2016