setup nic-settings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • christian

    #1

    setup nic-settings

    Hello,

    I'm trying to set up my network properties e.g. my IP.

    Has anybody tried this, and what did you in that case do?
    That iphlp-library looks as it has stuff for getting, but not setting, the IP.

    Please give me a hint, a snippet or a clue as to what api to use.


    Best Regards,
    Christian Sternell
  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: setup nic-settings

    Christian,

    I think that what you will want to do is use the System.Manageme nt
    namespace. If you get the instances of the Win32_NetworkAd apter and
    Win32_NetworkAd apterConfigurat ion WMI classes, you should then be able to
    set the properties on the adapter (such as IP address) through the indexer
    (which is the Item property) of the ManagementObjec t representing the WMI
    classes.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "christian" <azazel12345@ms n.com> wrote in message
    news:d3380555.0 310230731.61de7 60f@posting.goo gle.com...[color=blue]
    > Hello,
    >
    > I'm trying to set up my network properties e.g. my IP.
    >
    > Has anybody tried this, and what did you in that case do?
    > That iphlp-library looks as it has stuff for getting, but not setting, the[/color]
    IP.[color=blue]
    >
    > Please give me a hint, a snippet or a clue as to what api to use.
    >
    >
    > Best Regards,
    > Christian Sternell[/color]


    Comment

    Working...