Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
🔍 Discover Our Product Documentation

Barracuda XDR Reference Docs
Results will update as you type.
  • Release Notes
  • Onboarding Documents
    • Onboarding Documents - Endpoint Security
    • Installing Physical Sensors
    • How to Install a Physical Sensor
    • Setting Up Advanced Policy Logging
  • Simulating Threats
  • Security Operations Center (SOC)
  • Big News for Barracuda XDR Customers – We’re Leveling Up Your Security Experience!
  • Deploying the XDR Collector on multiple Windows servers
  • Barracuda IDS Log Reduction Update - January 2025
  • Barracuda XDR SentinelONE Agent Release Notes
  • Barracuda XDR Login Process is Changing
  • Integrating Google Workspace - Service account key creation disabled error
  • What is Automated Threat Response?
  • Barracuda XDR Integration Credentials
  • Barracuda XDR Release Notes — November 2026

    You‘re viewing this with anonymous access, so some content might be blocked.
    /
    Setting Up Advanced Policy Logging
    Published Oct 17

    Setting Up Advanced Policy Logging

    Subscribe

    Advanced Policy Logging works with the XDR Collector to make sure the relevant event logs are sent to XDR. We recommend setting up Advanced Policy Logging before the Collector.

    You have two options to set up Advanced Policy Logging:

    • Run a script on your environment to set up Advanced Policy Logging. This is the recommended option.

    • Set up each server manually using the steps below. However, this option takes longer and is more error-prone. This method is useful if you can’t run a Powershell script for any reason.

    Once you have set up auditing logs through either method, check the status of logs since the Windows UI doesn’t always properly reflect properly the configuration. The command below results in a more accurate status.

    Use the following following PowerShell command to check the status of auditing logs:

    AuditPol.exe /get /category:*

    Setting Up Advanced Policy Logging Using a Script (Recommended)

    This script set up your entire Windows environment at the same time.

    Also, the following script limits the log storage capacity to 1 GB before being overwritten. Setting up servers manually doesn’t limit log storage capacity.

    To run this script, you must be an Administrator of the server or domain.

    1. Download the audit policy setup script:
      NOTE If the script download is blocked by your antivirus application, download this file and manually change the extension from .txt to .ps1: .

    2. As Administrator of the server or domain, do one of the following:

      • Execute the script directly on a standalone Windows server.

      • Deployed the script multiple systems using an RMM solution or Group Policy (GPO), depending on your environment.

    Setting Up Advanced Policy Logging Manually

    These settings ensure that relevant events are logged in the Security log. You don’t need to follow these steps if you use the above script to set up policy logging.

    • You must run each of these steps on each server in your environment.

    • Setting up servers manually doesn’t limit log storage capacity. Generating the relevant logs will impact the server’s cache and storage over time.

    Follow these steps to complete the configuration:

    • Configure Advanced Audit Policy Settings

    • Enable PowerShell Module and Script Block Logging

    • Enable the PowerShell Operational Log

    • Apply and Update the Group Policy

    Configuring advanced audit policy settings
    1. On each Windows server you want to collect data from, press the Windows button and the R key at the same time to start the Run tool.

    2. At the prompt, type gpedit.msc and click OK.

      RunTool.png
    3. In the Group Policy Management Editor, enable the following options:

    Account Logon

    Account Logon

    Audit Credential Validation

    Enable for both Success and Failure events.

    Account Management

    Audit User Account Management

    Enable for both Success and Failure events.

    Audit Security Group Management

    Enable for both Success and Failure events.

    Audit Computer Account Management

    Enable for both Success and Failure events.

    Detailed Tracking

    Audit Process Creation

    Enable for Success events.

    Audit Process Termination

    Enable for Success events.

    Logon/Logoff

    Audit Logon

    Enable for both Success and Failure events.

    Audit Logoff

    Enable for Success events.

    Audit Special Logon

    Enable for Success events.

    Object Access

    Audit File System

    Enable for both Success and Failure events.

    Audit Registry

    Enable for both Success and Failure events.

    Audit Other Object Access Events

    Enable for both Success and Failure events.

    Policy Change

    Audit Audit Policy Change:

    Enable for both Success and Failure events.

    Audit Authentication Policy Change

    Enable for both Success and Failure events.

    Privilege Use

    Audit Sensitive Privilege Use

    Enable for both Success and Failure events.

    System

    Audit System Events/Audit Other System Events

    Customers using Advanced Audit Policy Configuration see Audit Other System Events.

    Enable for both Success and Failure events.

    Audit Security State Change

    Enable for Success events.

    Audit Security System Extension

    Enable for both Success and Failure events.

    Audit System Integrity

    Enable for both Success and Failure events.

    SecurityLogEvents.png
    Enable PowerShell Module and Script Block Logging
    1.  In the Group Policy Management Editor, navigate to Computer Configuration > Policies > Administrative Templates > Windows Components > Windows PowerShell.

    2. Enable the following settings:

      • Turn on Module Logging: Enable this setting and specify the modules to log (e.g., Microsoft.PowerShell.* for all core modules).

      • Turn on PowerShell Script Block Logging: Enable this setting to log all script blocks processed by PowerShell.

        PowerShellModule.png
    • Close the Group Policy Management Editor.

    Enable PowerShell Operational Log
    1. On a Windows system, press the Windows button and the R key at the same time to start the Run tool

    2. At the prompt, type eventvwr.msc and click OK.

      runtooleventviewer.png
    3. In the Event Viewer, navigate to Applications and Services Logs > Microsoft > Windows > PowerShell.

    4. Right-click Operational and select Properties.

    5. Ensure that Enable logging is enabled.
      If Enable logging is not enabled, select it.

    6. Click OK.

      PowerShellOperationalLog.png
    Apply and Update Group Policy
    1. On a target Windows server, open the Start menu and type cmd.

    2. Click Command Prompt.

    3. At the prompt, type gpupdate /force and click OK.

    4. Repeat steps 1-2 for each server in the environment.


    We value your feedback.
    If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
    For general product inquiries or technical support, please contact the global Barracuda Support team.

    {"serverDuration": 11, "requestCorrelationId": "ad8ed32feb9b43fc97fb8d1d28ed40a5"}