Skip to content

PowerShell tool to view, modify, and renew the configuration of the current default networking interface.

License

Notifications You must be signed in to change notification settings

tylerdotrar/netbluf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

netbluf

The Bottom Line Up Front (BLUF) of the default networking interface.

image

Summary

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 netbluf with 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 $PROFILE so that it's loaded into all sessions.

Parameters

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)

Examples

Administrative users have the ability to view, modify, and renew network configurations.

image

Unprivileged users have the ability to view the current network configuration, but not make any changes.

image

About

PowerShell tool to view, modify, and renew the configuration of the current default networking interface.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published