locked
New-NetIPAddress : Invalid parameter InterfaceAlias RRS feed

  • Question

  • hello,

    I am trying to configure an IP address for a VM.  

    My version of PS is 5-1-17134-407

    I issued New-NetIPAddress -IPAddress 10.2.0.1 -PrefixLength 24 -InterfaceAlias "vEthernet_Lab_Switch"

    as well as New-NetIPAddress -IPAddress 10.2.0.1 -PrefixLength 24  to force the Interface value.

    I get the error posted above

    thanks

    Joe

    Thursday, January 10, 2019 2:19 PM

All replies

  • There is no such alias matching the requested string.


    \_(ツ)_/

    Thursday, January 10, 2019 2:48 PM
  • Hi,

    Thanks for your question.

    What is your error message?

    I think you forget to post it.

    Best Regards,

    Lee


    Just do it.

    Friday, January 11, 2019 8:22 AM
  • Hi,

    Was your issue resolved? 
    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,
    Lee


    Just do it.

    Thursday, January 17, 2019 10:07 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

    If no, please reply and tell us the current situation in order to provide further help.

    Best Regards,

    Lee


    Just do it.

    Tuesday, January 22, 2019 7:36 AM
  • sorry have been away.

    No the issue remains

    PS C:\PROJECTS> New-NetIPAddress -IPAddress 10.2.0.1 -PrefixLength 24 -InterfaceAlias "vEthernet_Lab_Switch"
    New-NetIPAddress : Invalid parameter InterfaceAlias vEthernet_Lab_Switch
    At line:1 char:1
    + New-NetIPAddress -IPAddress 10.2.0.1 -PrefixLength 24 -InterfaceAlias ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (MSFT_NetIPAddress:ROOT/StandardCimv2 
       /MSFT_NetIPAddress) [New-NetIPAddress], CimException
        + FullyQualifiedErrorId : Windows System Error 87,New-NetIPAddress

    Thursday, January 24, 2019 5:53 PM
  • It is a bug.  The latest updates to W10 have apparently broken the command.


    \_(ツ)_/

    Thursday, January 24, 2019 7:02 PM
  • Does "Get-NetIPInterface vEthernet_Lab_Switch" find that interface???

    --- Rich Matheisen MCSE&I, Exchange Ex-MVP (16 years)

    • Proposed as answer by jrv Thursday, January 24, 2019 7:15 PM
    Thursday, January 24, 2019 7:08 PM
  • Does "Get-NetIPInterface vEthernet_Lab_Switch" find that interface???

    --- Rich Matheisen MCSE&I, Exchange Ex-MVP (16 years)

    Good call. Alias must exist and interface must be enabled. Either issue will cause that vague error.


    \_(ツ)_/

    Thursday, January 24, 2019 7:15 PM