> For the complete documentation index, see [llms.txt](https://docs.blusapphire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blusapphire.io/log-forwarding/03_log-forwarding-guide/log-forward/microsoft/windows-fim/fim-integration-with-gpo.md).

# FIM Integration with GPO

### Enable Windows File System Auditing

#### Step 1: Enable Audit Policy

First, go to the Domain Controller (DC) and update the Group Policy (GPO) to enable file auditing.

![](/files/cdIwig0wGxT39DxBpGTb)

Right click on the Group Policy you want to update or create a new [GPO](https://www.varonis.com/blog/group-policy/?hsLang=en) for file auditing. In the right-click menu, select edit to go to the [Group Policy Editor](https://www.varonis.com/blog/group-policy-editor/?hsLang=en).

![](/files/P1hr7dIMvN7ibPRJXSaL)

*\*Here, created a new GPO called “File Auditing” for the purposes of this example.*

In the Group Policy editor, click through to *Computer Configuration -> Policies ->* *Windows Settings -> Local Policies.* Click on *Audit Policy.*

![](/files/JOIMZv5GrMrfdJ4YuyBC)

Double-click “Audit object access” and set it to both success and failure.

To enable your new GPO, go to a command line and run ‘gpupdate /force’.

![](/files/EBk2M19wS7ncOlXJZViU)

Verify that your policy is set correctly with the command ‘gpresult /r’ on the computer that you want to audit.

![](/files/weuSDMQPf17F5TEDoCua)

#### Step 2: Apply Audit Policy to Files and/or Folders.

Next, tell Windows exactly which files and/or folders that you want to audit. Here is the procedure to set auditing up for your folders.

* Right-click the file or folder in Windows Explorer. Select *Properties*.

![](/files/fsO60O30EGuJT4TVNVHE)

* Change to the Security tab and click Advanced.

![](/files/5u0piUlChfNNhjJfYyqD)

* Click the Auditing tab and then Continue.
* Add the Users or Groups that you want to audit and check all of the appropriate boxes.

![](/files/eJKe5BhXDUkwevr88icu)

#### Step 3: Open Event Viewer

Once you have enabled the Auditing GPO and set the file/folder auditing, you will see audit events in the Security Event Log in Windows Event Viewer.

![](/files/BhWMz7LbtMFxOxV4E8i2)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.blusapphire.io/log-forwarding/03_log-forwarding-guide/log-forward/microsoft/windows-fim/fim-integration-with-gpo.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
