Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created July 17, 2020 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobalob/4b059b1417e18778719967220f0ec9e9 to your computer and use it in GitHub Desktop.
Save bobalob/4b059b1417e18778719967220f0ec9e9 to your computer and use it in GitHub Desktop.
(Get-ADDomainController -Filter *).Hostname | Sort-Object -Unique | % { Invoke-Command -ComputerName $_ -ScriptBlock { New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\DNS\parameters -Name "TcpReceivePacketSize" -PropertyType DWord -Value 0xFF00 -Force ; Restart-Service DNS } ; Start-Sleep 30 ; Resolve-DNSName $_ -Server $_}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment