Closed max9836 closed 2 months ago
This repository is for PowerShell core documentation. You seem to be looking for support, which we can't provide here.
I suggest you try posting your issue with context in one of the available community support forums.
function makeMAC {
$OFS=''
for ($i=0; $i -le 0xFFFFFFFFu; $i++) {
$hex = "{0:X8}" -f $i
"02-00-$($hex[0..1])-$($hex[2..3])-$($hex[4..5])-$($hex[6..7])"
}
}
Type of issue
Code doesn't work
Feedback
I was creating a program that brute forces the mac address and try to connect to a network named "XXX". However, I encountered a issue while using the
for
loop. I am providing my full code for support. Please help me, thank you.Page URL
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-help?view=powershell-7.4
Content source URL
https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.4/Microsoft.PowerShell.Core/Get-Help.md
Author
@sdwheeler
Document Id
dfbcf6a9-b84a-5269-75e5-4623602a0701