Title
#windows
Aman Kumar Chagti

Aman Kumar Chagti

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

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.
Aman Kumar Chagti

Aman Kumar Chagti

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

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
9:01 AM
So as I was saying, it's not a different executable, just a different way to launch it.
Aman Kumar Chagti

Aman Kumar Chagti

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

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
9:05 AM
otherwise your terminal won't be able to find it automatically without giving it a full path to it
Aman Kumar Chagti

Aman Kumar Chagti

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