PowerShell_Scripts/base/Get-RandomMacAddress.ps1

12 lines
224 B
PowerShell

[CmdletBinding()]param(
[string]$Delimiter=':'
)
$(0..5 | ForEach-Object {
'{0:x}{1:x}' -f (
Get-Random -Minimum 0 -Maximum 15
), (
Get-Random -Minimum 0 -Maximum 15
)
}) -join $Delimiter