Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Reserves the specified IPv4 address in the scope for a client.
Syntax
uint32 Add(
[in] string ComputerName,
[in] string ScopeId,
[in] string IPAddress,
[in] string ClientId,
[in] string Name,
[in] string Description,
[in] string Type,
[in] boolean PassThru,
[out] DhcpServerv4Reservation cmdletOutput
);
Parameters
-
ComputerName [in]
-
DNS name or IP address of the target computer running the DHCP server service.
-
ScopeId [in]
-
The identifier of the scope in which the reservation is being created.
-
IPAddress [in]
-
The IPv4 address to be reserved for the client.
-
ClientId [in]
-
The unique identifier for the client. For windows clients, MAC address should be specified.
-
Name [in]
-
Name of the reservation being created. This could be the hostname of the client or a name to be used to identify the reservation on the DHCP server.
-
Description [in]
-
The description for the reservation being created.
-
Type [in]
-
The type of client request for which this IP address is reserved. Valid values are {Dhcp, Bootp, Both}. Default value is Dhcp.
-
Dhcp ("Dhcp")
-
Bootp ("Bootp")
-
Both ("Both")
PassThru [in]
If this parameter is specified, the cmdlet returns the PowerShell object which is modified.
cmdletOutput [out]
An embedded instance of the DhcpServerv4Reservation class.
Requirements
| Minimum supported client |
None supported |
| Minimum supported server |
Windows Server 2012 |
| Namespace |
Root\Microsoft\Windows\DHCP |
| MOF |
|
| DLL |
|