Title
#general
c

Carlos López

04/08/2021, 11:20 AM
HI all .... Sorry for this simple question: I am doing some tests with osquery and I need to uninstall it in Windows platforms ... but there is not an uninstall procedure ... How can I uninstall osquery in Windows platforms?
j

Juan Alvarez

04/08/2021, 11:21 AM
you can just go to add/remove programs and find it over there
c

Carlos López

04/08/2021, 11:25 AM
Nop, there is nothing in there ...
j

Juan Alvarez

04/08/2021, 11:29 AM
did you install it using the windows msi that is provided?
c

Carlos López

04/08/2021, 11:31 AM
Yes
11:33 AM
Release 4.7.0
j

Juan Alvarez

04/08/2021, 11:39 AM
well, it should be there , not sure why you are missing it.
c

Carlos López

04/08/2021, 12:36 PM
I hav used the following command to install it:
12:37 PM
Start-Process -FilePath osquery.msi -ArgumentList "/q" -Wait -WindowStyle 'Hidden'
b

blaedj

04/08/2021, 1:07 PM
Does osquery persist after a restart? I think that command just runs osquery once, it doesn't 'install' it such that it will start up upon reboot. You can probably do something like
Stop-Process -Name "osquery"
to stop osquery started this way.
c

Carlos López

04/08/2021, 2:33 PM
Yes, it persist ... In fact, osqueryd service is created ..
j

Juan Alvarez

04/08/2021, 2:39 PM
maybe you can try to execute the msi with the /uninstall argument
b

blaedj

04/08/2021, 2:55 PM
ah yes, you've executed the installer, not the osquery binary. My mistake.