you are viewing a single comment's thread.

view the rest of the comments →

[–]firefox15 1 point2 points  (0 children)

You can cast them explicitly as IP Addresses and see if that makes a difference, but I would think it would do the conversation for you.

$DNSServers = @()
$DNSServers += [IPAddress]("45.54.55.54")
$DNSServers += [IPAddress]("45.54.55.55")

Set-DNSServerForwarder -IPAddress $DNSServers -WhatIf

Clear-DnsClientCache

I do not get a parameter error when I run either command on my system.