https://github.com/osquery/osquery logo
Title
a

Aman Kumar Chagti

06/12/2021, 7:26 AM
How can i install osqueryi (shell version) on windows 10??
s

Stefano Bonicatti

06/12/2021, 8:51 AM
osqueryi is just a link to osqueryd with the
-S
argument, it's not a different binary.
a

Aman Kumar Chagti

06/12/2021, 8:56 AM
@Stefano Bonicatti ahh can you be a bit more precise about this??
s

Stefano Bonicatti

06/12/2021, 9:00 AM
or actually sorry it's enough to have the name of
osqueryi.exe
, right now it's a copy of the
osqueryd.exe
binary. But you can also obtain the same result by calling
osqueryd.exe -S
or using
mklink
to link to
osqueryd.exe
and name the link
osqueryi.exe
So as I was saying, it's not a different executable, just a different way to launch it.
a

Aman Kumar Chagti

06/12/2021, 9:02 AM
ohh..you mean i need to execute .\osqueri.exe on windows rather than just osqueryi
s

Stefano Bonicatti

06/12/2021, 9:05 AM
That depends on what you mean exactly. If you expect to be able to run
osqueryi
as a command from anywhere, you need to put the
C:\Program Files\osquery
path (where I suppose you have installed osquery) in the PATH environment variable
otherwise your terminal won't be able to find it automatically without giving it a full path to it
a

Aman Kumar Chagti

06/12/2021, 9:09 AM
ohhh..i got you @Stefano Bonicatti Thank you for the help!! 🙂