44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
Name: 'COMP: Example GPO' # Prefix the name with either 'COMP:' or 'USER:'
|
|
Type: Object # Either 'Object' or 'Preference' (respectively for GPO or GPP)
|
|
LinkedOUs: # Entries will be concatenated with ',DC=<example>,DC=<org>' automatically
|
|
- OU=Servers
|
|
WMIFilters:
|
|
- FilterA
|
|
- FilterB
|
|
RegistryEntries:
|
|
- Key: HKLM\SOFTWARE\Policies\Microsoft\Windows\System
|
|
Type: DWord
|
|
ValueName: PropertyA
|
|
Value: 1
|
|
- Key: HKLM\SOFTWARE\Policies\Microsoft\Windows\System
|
|
Type: DWord
|
|
ValueName: PropertyB
|
|
Value: 0xFFFFFFFF # Hexadecimal values are prefixed with '0x'
|
|
- Key: HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
|
|
Type: String
|
|
ValueName: # Multiple entries are possible, but *only* for the data type 'String' and 'ExpandString' (REG_SZ and REG_EXPAND_SZ)
|
|
- PropertyP
|
|
- PropertyQ
|
|
- PropertyR
|
|
Value: # The amount of entries must match with 'ValueName'
|
|
- ValueP
|
|
- ValueQ
|
|
- ValueR
|
|
- Key: HKLM\Software\Test
|
|
Type: String
|
|
ValueName:
|
|
- PropertyX
|
|
- PropertyDate
|
|
- PropertyOVF
|
|
Value: # Values can contain variablenames (respective entries must be declared under 'Variables' below)
|
|
- ValueX
|
|
- "{{ date }}"
|
|
- "{{ guestinfo.dnsserver }}"
|
|
---
|
|
Variables: # Each variable consists of a name that is used as a placeholder in the yaml file above, and a PowerShell expression
|
|
- Name: date
|
|
Expression: | # The PowerShell script's output must evaluate to a [string]
|
|
Get-Date
|
|
- Name: guestinfo.dnsserver
|
|
Expression: | # The variable '$Parameter' will automatically contain all defined OVF Properties
|
|
$Parameter['guestinfo.dnsserver'] |