Skip to content

WeakHostReceive

Daniel Scott-Raynsford edited this page Feb 22, 2019 · 3 revisions

WeakHostReceive

Warning! This resource has been deprecated as of v7.0.0.0. Please use the WeakHostReceive property of the NetIPInterface resource instead.

Parameters

Parameter Attribute DataType Description Allowed Values
InterfaceAlias Key string Alias of the network interface for which the Weak Host Receiving is set.
AddressFamily Key string IP address family. IPv4, IPv6
State Required string The desired state of the Weak Host Receiving. Enabled, Disabled

Description

This resource is used to control the weak host receive setting on an interface for a node.

Examples

Example 1

Disabling tbe weak host receive setting for the network adapter with alias 'Ethernet'.

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )

    Import-DscResource -Module NetworkingDsc

    Node $NodeName
    {
        WeakHostSend DisableWeakHostReceiving
        {
            State          = 'Disabled'
            InterfaceAlias = 'Ethernet'
            AddressFamily  = 'IPv4'
        }
    }
}