Skip to content

Instantly share code, notes, and snippets.

@we684123
Created July 20, 2023 02:19
Show Gist options
  • Save we684123/0197f402c0cf583b3f02f748ea996c1f to your computer and use it in GitHub Desktop.
Save we684123/0197f402c0cf583b3f02f748ea996c1f to your computer and use it in GitHub Desktop.
windows_powershell_get_ip
$ipAddress = (Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias "乙太網路").IPAddress
Write-Host $ipAddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment