Skip to content

jerris/AuditPolicyDsc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'
        }
    }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%