Get-NetIPConfiguration on Powershell V2

Welcome Forums General PowerShell Q&A Get-NetIPConfiguration on Powershell V2

Viewing 5 reply threads
  • Author
    Posts
    • #246990
      Participant
      Topics: 5
      Replies: 9
      Points: 68
      Rank: Member

      Hello!

      I wrote a script to get network details using Get-the NetIPConfiguration command.
      This way I can individually take the IPV6,IPV6, and Alias for each Interface.

      Is there a way I can do this with V2?
      I am struggling to find anything that resembles a set of individualized interfaces.

    • #246999
      Participant
      Topics: 7
      Replies: 2458
      Points: 6,439
      Helping Hand
      Rank: Community MVP

      https://powershell.org/forums/topic/get-windowsfeature-but-with-powershell-version-2/

      Powershell v 2 had quite limitted functionality. And because it’s not supported anymore you will find less and less help. If you cannot avoid doing some tasks on a windows non supported windows version you should at least update your Powershell version. That will save you from a lot of wasted time and frustration.

    • #247002
      Participant
      Topics: 13
      Replies: 1753
      Points: 3,136
      Helping Hand
      Rank: Community Hero

      Looking at Get-NetIPConfiguration documentation, it uses CimSession. Basically, this a wrapper for WMI\CIM Win32_NetworkAdapterConfiguration.

      This discusses getting network information with Powershell:

      https://docs.microsoft.com/en-us/powershell/scripting/samples/performing-networking-tasks?view=powershell-7

      The wrappers get information from multiple places to make it simple for consumption rather than just raw data. The configuration is closely associated with the adapter, so you would probably use both to get comparable output:

      Just need to figure out how to join the objects, like Index\DeviceId:

    • #247005
      Participant
      Topics: 7
      Replies: 557
      Points: 2,122
      Helping Hand
      Rank: Community Hero

      How can I delete this?

    • #247011
      Participant
      Topics: 5
      Replies: 9
      Points: 68
      Rank: Member

      Thank you @Rob Simmers!
      I appreciate your indepth responce!

    • #247047
      Participant
      Topics: 13
      Replies: 1753
      Points: 3,136
      Helping Hand
      Rank: Community Hero

      @Dough Just use white out on the screen. 🙂

Viewing 5 reply threads
  • You must be logged in to reply to this topic.