Re: Getmac reports ERROR Provider type not defined.



MJ,

Well.. If it is failing in your code, check out WSAGetLastError for the error code.

Also, test the network with some other apps (ping, trace, net.exe, etc.).

--
Regards,
KM

> There definitely aren't any problems with the script. I even know that the
> Static IP was set correctly, because I can connect to my shell from another
> PC. However, my shell can't connect to another pc. The socket connect()
> call fails.
>
> MJ
>
> "KM" wrote:
>
>> MJ,
>>
>> Do you know where and how it is failing now?
>> What error you are getting from netsh?
>> Do you use you customer script (batch, wsh?) to work with netsh? If so, can you show us the script?
>> Just in case you use "Local Area Network" interface name there, make sure to register the name first with command like:
>> rundll32 netshell.dll HrRenameConnection
>>
>> --
>> Regards,
>> KM
>>
>> > KM,
>> > I had an image where my netsh setup worked perfectly at the end of FBA. It
>> > had Winlogon (XP Explorer User Interface component) and Explorer Shell. I
>> > changed it to Minlogon and a Custom Shell, but now my static ip config
>> > doesn't work. I didn't have all of these components in my build before, so
>> > how did it work?
>> >
>> > Thanks!
>> > MJ
>> >
>> > "KM" wrote:
>> >
>> >> Make sure that you have the networking driver installed properly and running
>> >> fine. (use devcon or SetupApi.log)
>> >> Or you can use "snetcfg -v -s a" to list installed NICs.
>> >>
>> >> Also, make sure you've got the following components included:
>> >> Network Command Shell
>> >> Network Command Shell Interface Context
>> >> IP Router Monitor Library
>> >> Network Diagnostics
>> >> Remote Access Monitory
>> >> IP Security Services
>> >> Primitive: W32topl
>> >>
>> >>
>> >> KM
>> >>
>> >> > Btw, NETSH Command reports:
>> >> > WARNING: Could not obtain host information from machine XXXXX. Some
>> >> > commands
>> >> > may not be available. Provider type not defined.
>> >> >>netsh
>> >> >
>> >> > Exit command returns command line prompt.
>> >> > When I use netsh at a large build everything goes OK. There must be
>> >> > missing
>> >> > a Component (or Components), which one?
>> >> >
>> >> > V. Pohnetal
>> >> >
>> >> > "V. Pohnetal" wrote:
>> >> >
>> >> >> Well, the goal is to minimize Flash space for System.
>> >> >> I have made some large Builds that run OK on that HW. But now there is
>> >> >> only
>> >> >> one thing I need - to execute a program from Server. I tried to build
>> >> >> system
>> >> >> that consist from MinLogon, TCP/IP Networking, EWF and TCP/IP ARP only.
>> >> >> Getmac was included. When I want to get MAC addresse Getmac reports
>> >> >> ERROR
>> >> >> Provider type not defined.
>> >> >>
>> >> >> Vlastimil
>> >> >>
>> >> >> "KM" wrote:
>> >> >>
>> >> >> > Vlastimil,
>> >> >> >
>> >> >> > >I have Minlogon, TCP/IP Networking, EWF and TCP/IP ARP.
>> >> >> > > Need to enter static IP by ARP.
>> >> >> >
>> >> >> > Could you expand what you want to accomplish?
>> >> >> > If just fix the GetMac problems, please see below.
>> >> >> >
>> >> >> > > Any advice?
>> >> >> >
>> >> >> > Does the network driver got installed and working properly on your
>> >> >> > build?
>> >> >> >
>> >> >> > KM
>> >> >> >
>> >> >> >
>> >> >> >
>> >>
>> >>
>> >>
>>
>>
>>


.



Relevant Pages

  • Re: Netsh cant parse funny interface names
    ... shell, so I didn't think it applied. ... Regards. ... Mark K Vallevand Mark.Vallevand@xxxxxxxxxx ... On the CF image netsh works fine on commands like this: ...
    (microsoft.public.windowsxp.embedded)
  • 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)
  • Re: SPL behaving oddly
    ... > We have an SPL which is failing to run here - it's a fairly simple one ... > put into the IDS message log: ... It looks like a SHELL problem. ...
    (comp.databases.informix)
  • Re: shell error codes
    ... I agree to that when a program is launched by the shell. ... What I want is to associate those integer values with their errno ... manpages). ... I just wanted to understand what went wrong with error code ...
    (comp.unix.shell)
  • Re: Diagnostics.Process & MSIEXEC problem...
    ... windowservice in Net not standard connect to the UI (what the shell in fact ... working fine as MSIEXEC is returning 1605 error code. ... Dim p As New Process ... I do a WaitForExit and get an error code back from MSIEXEC of 1605 -- ...
    (microsoft.public.dotnet.languages.vb)