Hi All,
I'm writing a tool for a company I contract for. DNS updates here are very sloooooow...
I need to flush the DNS cache on the local machine before attempting to contact DHCP clients.
I know that Clear-DnsClientCache can be used if you happen to be on a Win8 machine, but we're all on Win7.
I know that I can revert to 'ipconfig /flushdns' if I really need to, but this results in a split second command box popping up in the middle of my beautiful gui. Yuck.
So instead, I'd like to see if I can use DnsFlushResolverCache(). I think (am not positive) that I need to import dnsapi.dll first.
Being a Junior PowerShellist I don't know where to start on this one.
As always, any help would be greatly appreciated.
Best Regards,
James