This resource module contains resources used to audit system settings/verify compliance.
This project has adopted this code of conduct.
This is the branch containing the latest release - no contributions should be made directly to this branch.
This is the development branch to which contributions should be proposed by contributors as pull requests. This development branch will periodically be merged to the master branch, and be released to PowerShell Gallery.
Please see our contributing guidelines.
To manually install the module, download the source code and unzip the contents to the directory '$env:ProgramFiles\WindowsPowerShell\Modules' folder.
To install from the PowerShell gallery using PowerShellGet (in PowerShell 5.0) run the following command:
Find-Module -Name AuditSystemDsc -Repository PSGallery | Install-Module
To confirm installation, run the below command and ensure you see the DSC resources available:
Get-DscResource -Module AuditSystemDsc
The minimum Windows Management Framework (PowerShell) version required is 4.0 or higher.
You can review the Examples directory for some general use scenarios for all of the resources that are in the module.
A full list of changes in each version can be found in the change log.
- AuditSetting A resource the leverages CIM classes to verify system settings.
A resource the leverages CIM classes to verify system settings.
- Target machine must have the CIM cmdlets installed.
[String]
NameSpace: Specifies the namespace of CIM class.[String]
Query (Key): A WQL query used to retrieve the setting to be audited.[String]
Property (Key): The property name to be audited.[String]
DesiredValue (Key): Specifies the desired value of the property being audited.[String]
Operator (Required): The comparison operator to be used to craft the condition that defines compliance.
[String[]]
ResultString (Read): An array of strings listing all the properties and values of the WMI class being queried.
- Audit disk volumnes are NTFS
- Audit local users that don't require a password
- Verify netowrk prefix length
- Verify service pack level
All issues are not listed here, see here for all open issues.