Skip to content

Instantly share code, notes, and snippets.

View peyton2465's full-sized avatar
๐ŸŒŠ

Peyton peyton2465

๐ŸŒŠ
View GitHub Profile
@peyton2465
peyton2465 / MacRandomize.ps1
Last active March 30, 2022 14:03
Mac Address Randomizer for Windows (requires admin)
Write-Output "Randomizing Macs"
$DeviceTypes = @{
"Wi-Fi" = $true;
"Ethernet" = $true;
}
$SelectedDevices = @{}
foreach ($device in (Get-NetAdapter | Where-Object {$DeviceTypes[$_.Name] -and $_.Status -ne "Disabled"}).InterfaceDescription) {
$SelectedDevices.Add($device, $true)