Add method of the PS_DhcpServerv4Class class
Adds an IPv4 vendor or user class to the DHCP Server.
Syntax
uint32 Add(
[in] string Name,
[in] string Type,
[in] string Data,
[in] string Description,
[in] string ComputerName,
[in] boolean PassThru,
[out] DhcpServerv4Class cmdletOutput
);
Parameters
-
Name [in]
-
Name of the vendor or user class to be added
-
Type [in]
-
Type of the class - valid values are Vendor and User
-
Vendor ("Vendor")
-
User ("User")
Data [in]
Data of the specified vendor or user class. This is the value expected in the DHCP request from the client which belongs to this vendor or user class.
Description [in]
Description string for the class being added
ComputerName [in]
DNS name or IP address of the target computer running the DHCP server service.
PassThru [in]
If this parameter is specified, the cmdlet returns the PowerShell object which is added.
cmdletOutput [out]
An embedded instance of a DhcpServerv4Class object.
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\Microsoft\Windows\DHCP |
MOF |
|
DLL |
|