creative555
asked on
Help with the script to add additional method
Hi,
Could you please help me with the script below. I need to add a line that would check TCP/IP Settings option for DNS -“Register this connection’s addresses in DNS” and output the results if that option is set to true or false.
Thank you very much.
Script for network settings
param (
[string[]]$arrComputer="$e nv:compute rname"
)
foreach ( $Computer in $arrComputer ) {
Get-WmiObject -ComputerName $Computer Win32_NetworkAdapterConfig uration |
Where-Object { $_.IPAddress -ne $null } |
Select-Object @{n="Name";e={$_.DNSHostNa me}},
@{n="NetworkCard";e={$_.De scription} },
@{n="IP";e={$_.IPAddress}} ,
@{n="Subnet";e={$_.IpSubne t}},
@{n="Gateway";e={$_.Defaul tIPGateway }},
@{n="DNS";e={$_.DNSServerS earchOrder }}
}
Could you please help me with the script below. I need to add a line that would check TCP/IP Settings option for DNS -“Register this connection’s addresses in DNS” and output the results if that option is set to true or false.
Thank you very much.
Script for network settings
param (
[string[]]$arrComputer="$e
)
foreach ( $Computer in $arrComputer ) {
Get-WmiObject -ComputerName $Computer Win32_NetworkAdapterConfig
Where-Object { $_.IPAddress -ne $null } |
Select-Object @{n="Name";e={$_.DNSHostNa
@{n="NetworkCard";e={$_.De
@{n="IP";e={$_.IPAddress}}
@{n="Subnet";e={$_.IpSubne
@{n="Gateway";e={$_.Defaul
@{n="DNS";e={$_.DNSServerS
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is awesome!! Very nice export.csv with exactly what I need. Thank you so much!!!