Skip to content

Commit 4543e2d

Browse files
Add example for auditing configuration package creation
Added example for creating an audit configuration package with a 180-minute interval.
1 parent 916964e commit 4543e2d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

articles/governance/machine-configuration/how-to/develop-custom-package/2-create-package.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,17 @@ $params = @{
171171
}
172172
New-GuestConfigurationPackage @params
173173
```
174+
```powershell
175+
# Create a package that will audit the configuration at 180 minute intervals
176+
$params = @{
177+
Name = 'MyConfig'
178+
Configuration = './MyConfig/MyConfig.mof'
179+
Type = 'Audit'
180+
Force = $true
181+
FrequencyMinutes = 180
182+
}
183+
New-GuestConfigurationPackage @params
184+
```
174185

175186
An object is returned with the **Name** and **Path** of the created package.
176187

0 commit comments

Comments
 (0)