Remove-UsbMac
SYNOPSIS
A cmdlet that uses invoke-fogapi to remove a given list of usb mac address from a host
SYNTAX
Remove-UsbMac [[-usbMacs] <String[]>] [[-hostname] <String>] [[-macId] <Object>] [<CommonParameters>]
DESCRIPTION
When a wireless device is imaged with a usb ethernet adapter, it should be removed when it's done
EXAMPLES
EXAMPLE 1
Remove-UsbMacs -fogServer "foggy" -usbMacs @("01:23:45:67:89:10", "00:00:00:00:00:00")
PARAMETERS
-usbMacs
a string of mac addresses like this @("01:23:45:67:89:10", "00:00:00:00:00:00")
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-hostname
the hostname to remove the usb macs from, defaults to current hostname
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: "$(hostname)"
Accept pipeline input: False
Accept wildcard characters: False
-macId
{{ Fill macId Description }}
Type: Object
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
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.
INPUTS
OUTPUTS
NOTES
online version of help goes to fog forum post where the idea was conceived There are try catch blocks so the original working code before the get, update, and remove functions existed can remain as a fallback See also https://forums.fogproject.org/topic/10837/usb-ethernet-adapter-mac-s-for-imaging-multiple-hosts-universal-imaging-nics-wired-nic-for-all-wireless-devices/14