Anagkazo
asked on
PowerShell Script to check DNS Settings
How do I get the DNS server IPs configured on remote computers that are joined to my Domain using PowerShell. I am using Window 2012 R2 Domain Controller (Powershell v4).
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for Anagkazo's comment #a41489249
for the following reason:
the script works for multiple remote machines
Accepted answer: 0 points for Anagkazo's comment #a41489249
for the following reason:
the script works for multiple remote machines
Open in new window
If the remote computers also have PowerShell 3 or newer you can use CIM sessions for remoting:
Open in new window
For PowerShell v2 (Windows 7) you'll have to use WMI