Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有人在特定网络连接的高级属性中设置“此连接的 dns 后缀”部分的 powershell 脚本或类似脚本?
谢谢
试试这个(以管理员身份运行 PowerShell):
Get-WmiObject Win32_NetworkAdapterConfiguration -Filter "Description='interface description'" | Invoke-WmiMethod -Name SetDNSDomain -ArgumentList @('contoso.com')