Manually remove Direct Access from a client

If the client is unable to do a DNS lookup, remove the following in the registry to disable/remove Direct Access DNS config.

$reg = 'HKLM:\SOFTWARE\Policies\Microsoft\`
Windows NT\DNSClient\DnsPolicyConfig'

Get-ChildItem -Path $reg | 
ForEach {Remove-Item $_.pspath}

Restart-Service DNSCache -force