Coder Social home page Coder Social logo

auditpolicydsc's Introduction

xAuditPolicy

The xAuditPolicy DSC resources allow you to configure and manage the advanced audit policy on all currently supported versions of Windows.

Contributing

Please check out common DSC Resources contributing guidelines.

Resources

  • xAuditCategory configures the advanced audit policy Subcategories audit flags.

  • xAuditOption manages the auditpol options available in the auditpol.exe utility.

xAuditCategory

  • Subcategory: Name of the subcategory in the advanced audit policy.

  • AuditFlag: The name of the audit flag to apply to the subcategory. This is can be either Success or Failure.

xAuditOption

  • Name: The name of the option to configure.

  • Vaule: The value to apply to the option. This can be either Enabled or Disabled.

Versions

Unreleased

1.0.0.0

  • Initial release with the following resources:

    • xAuditPolicy
    • xAuditOption

Examples

Example 1 Audit Logon Success and Failure

    Configuration AuditPolicy
    {
        Import-DscResource -ModuleName xAuditPolicy

        xAuditCategory LogonSuccess
        {
            Subcategory = 'Logon'
            AuditFlag   = 'Success'
            Ensure      = 'Present' 
        } 

        xAuditCategory LogonFailure
        {
            Subcategory = 'Logon'
            AuditFlag   = 'Failure'
            Ensure      = 'Present' 
        } 
    }

Example 2 Audit Logon Failure only

    Configuration AuditPolicy
    {
        Import-DscResource -ModuleName xAuditPolicy

        xAuditCategory LogonSuccess
        {
            Subcategory = 'Logon'
            AuditFlag   = 'Success'
            Ensure      = 'Absent' 
        } 

        xAuditCategory LogonFailure
        {
            Subcategory = 'Logon'
            AuditFlag   = 'Failure'
            Ensure      = 'Present' 
        } 
    }

Example 3 Enable the option AuditBaseDirectories

    Configuration AuditPolicy
    {
        Import-DscResource -ModuleName xAuditPolicy

        xAuditOption AuditBaseDirectories
        {
            Name  = 'AuditBaseDirectories'
            Value = 'Enabled'
        }
    }

auditpolicydsc's People

Contributors

athaynes avatar zjalexander avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.