DhcpServerOptionDefinitions manages custom DHCP server option definitions.
Use this resource when you need to define custom DHCP options beyond the standard ones (e.g., vendor-specific options for IP phones, PXE boot, or custom applications). Option definitions must be created before the option values can be set via DhcpServerOptions or DhcpScopeOptions.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Hashtable[] |
Set of server option definitions. |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
OptionId |
Key |
UInt32 |
Option ID, specify an integer between 1 and 255. |
|
VendorClass |
Key |
String |
Vendor class. Use an empty string for default vendor class. |
|
AddressFamily |
Key |
String |
Sets the address family for the option definition. Currently only IPv4 is supported. |
|
Name |
Mandatory |
String |
Option name. |
|
Type |
Mandatory |
String |
Option data type. |
|
Multivalued |
Boolean |
Whether option is multi-valued or not. |
|
|
Description |
String |
Option description. |
||
Ensure |
String |
Whether the DHCP server class should exist. |
|
DhcpServerOptionDefinitions:
ServerOptionDefinitions:
- AddressFamily: IPv4
Name: PXEClientType
OptionId: 60
Type: string
VendorClass: ''
Description: PXE Support