tag:blogger.com,1999:blog-7415765543114035470.post651357080020138842..comments2024-03-13T16:16:09.967+05:30Comments on vGeek: Powershell: Change DNS ip addressess remotely on multiple computers kunalhttp://www.blogger.com/profile/10047053192857567069noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-7415765543114035470.post-67963103174754354952019-10-30T22:05:54.396+05:302019-10-30T22:05:54.396+05:30Does not work for me. Placed the missing quotes. B...Does not work for me. Placed the missing quotes. But this is the error I get.<br /><br />You cannot call a method on a null-valued expression.<br />At line:13 char:9<br />+ $change.SetDNSServerSearchOrder($DNSservers) | out-null<br />+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br /> + CategoryInfo : InvalidOperation: (:) [], RuntimeException<br /> + FullyQualifiedErrorId : InvokeMethodOnNull<br /> Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7415765543114035470.post-13237283431559616062019-09-11T00:57:20.070+05:302019-09-11T00:57:20.070+05:30This worked well and was VERY helpful, thank you!
...This worked well and was VERY helpful, thank you!<br /><br />Only caveat is the script text is missing quotes for the first DNS IP address (it is correct in your screenshot).<br /><br />Thanks again!Anonymousnoreply@blogger.com