Share via


SetByWithoutRange method of the PS_DhcpServerv4Scope class

Sets the properties of an existing IPv4 Scope on the server.

Syntax

uint32 SetByWithoutRange(
  [in]  boolean           ActivatePolicies,
  [in]  boolean           PassThru,
  [in]  string            Type,
  [in]  string            ScopeId,
  [in]  string            Description,
  [in]  datetime          LeaseDuration,
  [in]  string            Name,
  [in]  boolean           NapEnable,
  [in]  string            NapProfile,
  [in]  uint16            Delay,
  [in]  string            State,
  [in]  string            SuperscopeName,
  [in]  string            ComputerName,
  [in]  uint32            MaxBootpClients,
  [out] DhcpServerv4Scope cmdletOutput
);

Parameters

ActivatePolicies [in]

This specifies if the policy enforcement is to be enabled/disabled on the scope. Valid values are True, False.

PassThru [in]

If this parameter is specified, the cmdlet returns the PowerShell object which is modified.

Type [in]

Type of the scope. Valid values are DHCP, BOOTP and BOTH. The type of the scope determines if the server will respond to only DHCP client requests, only BOOTP client requests or Both types of clients.

Dhcp ("Dhcp")

Bootp ("Bootp")

Both ("Both")

ScopeId [in]

Scope identifier (in IPv4 address format) whose properties are being set

Description [in]

Description to be set for the scope

LeaseDuration [in]

Duration of the IPv4 address lease to be given for the clients of this scope

Name [in]

Name to be set for the scope

NapEnable [in]

Enable/Disable NAP for the scope. Valid values are True, False.

NapProfile [in]

If NAP is enabled for the scope, the name of the NAP profile to be used for clients in the scope. The NAP profile refers to the MS Service Class which is a condition used in network policies on NPS.

Delay [in]

Time in milliseconds by which the server should delay sending a response to clients. This setting should be used on the secondary server in a split scope configuration.

State [in]

State of the scope. Valid values are Active and InActive.

Active ("Active")

InActive ("InActive")

SuperscopeName [in]

Name of the superscope to which this scope is to be added.

ComputerName [in]

DNS name or IP address of the target computer running the DHCP server service.

MaxBootpClients [in]

If the scope supports both types of clients (Bootp, Dhcp), maximum number of bootp clients to be permitted to get an IP address lease from the scope.

cmdletOutput [out]

An embedded instance of the DhcpServerv4Scope class.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\DHCP
MOF
DhcpServerPsProvider.mof
DLL
DhcpServerPsProvider.dll

See also

PS_DhcpServerv4Scope