Re: Netsh- "Incorrect Function" trying to set IP.

From: KM (konstmor_at_nospam_yahoo.com)
Date: 07/09/04


Date: Fri, 9 Jul 2004 12:59:55 -0700

Jeff,

Check if you have these components in your configuration:
    - IP Router Monitor Library
    - Network Command Shell
    - Network Command Shell Interface Context

-- 
 Regards,
        KM, BSquare Corp.
> I did a search for "netsh, Incorrect function" and I didn't see
> anything matching what I'm seeing.
>
> I'm trying to set a static IP using netsh.
> Running CMD-shell only, I do the following (after FBA successfully
> completes):
>
> :>Rundll32 netshell.dll HrRenameConnection
>
> :>netsh interface ip set address "Local Area Connection" static
> 164.101.60.115 255.255.0.0 none
>
> --Response:
> "WARNING: Could not obtain host information from machine: [OEM-...].
> Some commands may not be available.
> Class not registered
>
> Incorrect Function"
>
>
>
> --To test the interface name, I can misspell "Local Area Connion" in
> the netsh command above and it returns:
> ""WARNING: Could not obtain host information from machine: [OEM-...].
> Some commands may not be available.
> Class not registered
>
> Invalid interface "Local Area Connion" specified"
>
>
>
> -To test the netsh, I do a "netsh interface ip show address" and get
> the following:
> "WARNING: Could not obtain host information from machine: [OEM-...].
> Some commands may not be available.
> Class not registered
>
> No more data is available."
>
>
>
>
> -I try and do an ipconfig (or ipconfig /all) and all I get is:
>
> "Windows IP Configuration
>
> "
> No info is generated.
>
>
>
>
> If I boot teh same PC from the WinXPe install CD, DHCP is configured
> and works properly (I can ipconfig, map a drive, use network).
>
> -Netsh /? Returns the proper help topics, so I'm pretty sure I have
> the correct components installed for netsh.
>
> Am I making a stupid mistake or missing a component??
> My runtime PC has two NICs.. Is this a problem?
> Any help is greatly appreciated.
>
> - Jeff


Relevant Pages

  • Re: networking problem
    ... netsh extensions hoping that it will depend on the core networking ... Network Command Shell ... Command Shell Interface Context ...
    (microsoft.public.windowsxp.embedded)
  • Re: Getmac reports ERROR Provider type not defined.
    ... Do you use you customer script to work with netsh? ... Just in case you use "Local Area Network" interface name there, make sure to register the name first with command like: ... >> Network Command Shell Interface Context ...
    (microsoft.public.windowsxp.embedded)
  • Re: netsh
    ... These netsh commands do nothing without a network card. ... > netsh interface show interface ... > instead of ipconfig command. ...
    (microsoft.public.windowsxp.general)
  • error in enable nic card with command line tool
    ... you can enable or disable a lan card with netsh tool in this ... netsh inerface set interface "Interface name like: ... what is your suggestion to enable a NIC card by command line tools? ...
    (microsoft.public.windows.server.general)
  • Re: Getmac reports ERROR Provider type not defined.
    ... I had an image where my netsh setup worked perfectly at the end of FBA. ... had Winlogon and Explorer Shell. ... > Network Command Shell Interface Context ...
    (microsoft.public.windowsxp.embedded)