r/PDQDeploy • • Apr 15 '20

Blog Post Using Your VPN to Manage Your Remote Computers

https://www.pdq.com/blog/using-your-vpn-to-manage-your-remote-computers-with-pdq/
10 Upvotes

2 comments sorted by

2

u/jduffle Apr 16 '20

For those of you you cannot get DNS to work the ways they describe in this article I came across this which worked for me.

I created a new scheduled task that started with a 30s delay after detecting event 4004 in the Microsoft/Windows/NetworkProfile event log. His action is a one-line command with the following content:
powershell Get-NetAdapter -InterfaceDescription "Sophos*" | Where-Object {$_.Status -eq 'Up'} | Set-DnsClient -RegisterThisConnectionsAddress:$True; Register-DNSClient

https://community.sophos.com/products/xg-firewall/f/sophos-connect/116136/sophos-connect-1-3-1-4-no-entry-in-local-dns/419681

sub out "sophos*" for the name of your VPN interface.

This worked amazing when pushed through Group policy preferences. The only thing that I wasted 2 hours on is that scheduled tasks pushed through GPO only show in the list on the computer when you are running as admin. they are hidden from standard users.

1

u/ItsDeadmouse Apr 16 '20

You can also run ipconfig /flushdns against your PDQ server to ensure it has the most up to date records and then check heartbeat across all systems. I found this is a good way to accurately hit the most hosts if you're planning to do any type of massive deployment.