The Bottom Line Up Front (BLUF) of the default networking interface.
Effectively, this tool is a PowerShell ipconfiglite -- rather than returning verbose information
for all of the network interfaces, netbluf returns only the data you care about for the most
relevant interface. To do this, it determines your most relevant interface (i.e., the default
interface) via connectivity and interface metrics.
On top of viewing configurations, it also has the built-in functionality of intuitively setting static networking configurations on the default interface -- or renewing said interface via DHCP. Currently, the only supported static networking parameters are IPv4 address, default gateway, network CIDR, primary & secondary DNS, and DNS suffix.
Notes:
- Running
netblufwith no parameters will return only configuration information. - When statically setting an interface, if only one static parameter is specified the remaining parameters will be copied from the current configuration.
- Static configurations and DHCP renewing require elevated privileges.
- Not required, but I personally add this script to my PowerShell
$PROFILEso that it's loaded into all sessions.
PS> netbluf [args]
# Primary
-DHCP --> (Alias: Renew) Renew default interface network configuration via DHCP
-Static --> (Alias: Set) Statically set default interface network configuration
-Help --> Return Get-Help information
# Static Options
-IPAddress --> IPv4 Address
-Gateway --> Network Default Gateway
-CIDR --> CIDR / Prefix Length (e.g., 24)
-DNS --> Primary DNS Server
-AltDNS --> Secondary DNS Server
-Suffix --> Domain Suffix (e.g., example.com)
Administrative users have the ability to view, modify, and renew network configurations.
Unprivileged users have the ability to view the current network configuration, but not make any changes.