Add-FogHostMac¶
SYNOPSIS¶
Adds a given macaddress to a host of a given ID
SYNTAX¶
byHost (Default)¶
Add-FogHostMac [-fogHost <Object>] [-macAddress <Object>] [-primary] [-ignoreMacOnClient]
[-ignoreMacForImaging] [-forceUpdate] [-ProgressAction <ActionPreference>] [<CommonParameters>]
byId¶
Add-FogHostMac [-hostID <Object>] [-macAddress <Object>] [-primary] [-ignoreMacOnClient] [-ignoreMacForImaging]
[-forceUpdate] [-ProgressAction <ActionPreference>] [<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¶
-fogHost¶
{{ Fill fogHost Description }}
Type: Object
Parameter Sets: byHost
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-hostID¶
Can either be the id number of the host object or the name of the host in a string
Type: Object
Parameter Sets: byId
Aliases:
Required: False
Position: Named
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: Named
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
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
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.