Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Change DNS ip addressess remotely on multiple computers

$
0
0

Hello There,

Thank you for the powershell script on 

Change DNS ip addressess remotely on multiple computers

I tried it but got an error message 

You cannot call a method on a null-valued expression.
At line:17 char:9
+         $change.SetDNSServerSearchOrder($DNSservers) | out-null
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Could you please sort this out for me ?

Thank you

Abhishek




Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>