Hi @Emil Mammadli ,
not quite sure if this is the cause, but can you please try this:
$DNSSearchOrder = "8.8.8.8","8.8.8.4"
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE | Where-Object {!$_.DHCPEnabled} | ForEach-Object { $_.SetDNSServerSearchOrder($DNSSearchOrder) }
Does it work?
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Stoyan Chalakov