Display: Cloud | List
Most Popular Tags
GetAllNetworkInterfaces sample - rewritten in PowerShell (NetworkInterface.GetAllNetworkInterfaces Method (System.Net.NetworkInformation))
<#.SYNOPSIS This script shows the DNS Configuration of NICs in your system.DESCRIPTION This script is a re-write of an MSDN Sample using POwerSHell./ The sctipt gets all network active network interfaces then prints out that interfaces's DNS Properties..NOTES File Name : Show-DnsConfiguration.ps1 Author : Thomas Lee - tfl@psp.co.uk Requires : PowerShell Ve
Last modified by Thomas Lee on 4/30/2012 4:22:51 PM
Sample Reworked Using PowerShell (NetworkInterface Class (System.Net.NetworkInformation))
<#.SYNOPSIS This script, shows details about the Network Interfaces on a system. This is a re-write of an MSDN script into PowerShell.DESCRIPTION This script Uses several .NET classes to get the details of the interfaces on the system, then displays these details. Note in the MSDN Script, there were calls to other MSDN Samples. To make things simple, I have removed these c
Last modified by Thomas Lee on 4/30/2012 1:21:38 PM
PowerShell sample (NetworkInterface.GetAllNetworkInterfaces Method (System.Net.NetworkInformation))
This sample performs the same actions as the above: $nic = [system.Net.NetworkInformation.NetworkInterface]::GetAllNetworkInterfaces() $nic | ForEach-Object { $_.GetIPProperties() } | Select-Object DnsSuffix, IsDnsEnabled, IsDynamicEnabled
Last modified by Thomas Lee on 10/21/2009 10:11:57 AM
Abovae sample not correct (NetworkInterface.GetAllNetworkInterfaces Method (System.Net.NetworkInformation))
There's a minor typo in the second line of the above sample.A better one-liner sample might be: [System.Net.Networkinformation.NetworkInterface]::GetAllNetworkInterfaces() | %{$_.getipproperties()} | ft dnssuffix,isdnsenabled,isdynamicDNSenabled -a A detailed script is also at: http://pshscripts.blogspot.com/2009/10/get-dnsinfops1.html
Last modified by Thomas Lee on 10/21/2009 10:21:24 AM
Page view tracker