我尝试使用Powershell在windows 10,raspberry pi 2上设置DNS设置:
Set-DNSClientServerAddress –InterfaceIndex <number> -ServerAddresses DNS1-IP,DNS2-IP但我收到以下错误:
术语“Set-DNSClientServerAddress”不被识别为cmdlet CommandNotFoundException的名称。
如何才能继承DNS设置?
发布于 2015-06-17 07:04:28
我还没有尝试过Windows10的IoT版本,但也许Powershell cmdlet是有限的?
但是,您也可以尝试设置DNS 使用Get-WmiObject cmdlet:
$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'"
$wmi.SetDNSServerSearchOrder('DNS1-IP','DNS2-IP')https://stackoverflow.com/questions/30882542
复制相似问题