Skip to content

Add-FogHostMac

SYNOPSIS

Adds a given macaddress to a host of a given ID

SYNTAX

Add-FogHostMac [[-hostID] <Object>] [[-macAddress] <Object>] [-primary] [-ignoreMacOnClient]
 [-ignoreMacForImaging] [-forceUpdate] [<CommonParameters>]

DESCRIPTION

Adds a given macaddress to a host of a given ID, optionatlly it can be set as primary

EXAMPLES

EXAMPLE 1

Add-FogHostMac -hostid 123 -macaddress "12:34:56:78:90" -primary

Add the macaddress "12:34:56:78:90" of the host with the id 123 and set it as the primary mac

EXAMPLE 2

Add-FogHostMac -hostID "computerName" -macaddress "12:34:56:78:90"

Uses the hostname to find the hostid in fog then adds "12:34:56:78:90" as a secondary mac on the host

PARAMETERS

-hostID

Can either be the id number of the host object or the name of the host in a string

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-macAddress

The mac address you want to add.
Should be in the format of "12:34:56:78:90"

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-primary

switch parameter to set the macaddress as the primary for the host

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ignoreMacOnClient

set this switch param if you need this mac to be ignored by the fog client

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ignoreMacForImaging

Set this switch param if you need this mac to be ignored by the pxe client

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-forceUpdate

Set this switch param if you need this mac to be force specified to the specified host if the mac is already assigned to another host.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES