---
description: OSQuery Installation Guide for Windows Systems
---

# Windows Based Systems

Navigate to OSQuery's download page (should look similar to the screenshot below) and download their msi package for Windows.

![OSQuery Download Page](https://776002387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbJAvxfpcYDlqBJLNIwwX%2Fuploads%2FUmDovWPVRflM0JltwMTz%2FOSQuery%20Download%20Page.jpg?alt=media\&token=e61ab287-a04f-43b1-a903-fd1afcf8e6f9)

Once the download is complete, run the msi installer. Accept the terms and agreements, select the default install location, then install. Quick note, local admin privileges will be needed on the Windows box OSQuery is being installed on for it to run the install successfully.

Test to make sure it was installed correctly by running OSQuery CLI on the local machine. The `osqueryi` PowerShell command will evoke an OSQuery interactive shell that queries can be run in.

![Hint: Use control + D to quit out of OSQuery CLI](https://776002387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbJAvxfpcYDlqBJLNIwwX%2Fuploads%2Fx0NyyBc81h08mB5jkB8C%2FPowershell-osqueryi.JPG?alt=media\&token=0eafb5f0-2a88-4de0-87de-f3150e512280)

OSQuery is now successfully installed on this system.
