Skip to content

Chase Wright Posts

PowerShell Function: Fix-MAC

function Fix-MAC { [CmdletBinding()] [OutputType([string])] Param ( # MAC Address [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true, ValueFromRemainingArguments=$false, Position=0, ParameterSetName=’MAC Address’)] [ValidateNotNull()] [ValidateNotNullOrEmpty()] [Alias(“MAC”)] [string[]]$MACS, [switch]$Lower = $False, [switch]$IOS…

Continue reading PowerShell Function: Fix-MAC