Re: netsh, static IP, DHCP

R

Richard Mahn

"RemoteAccess" service is installed through the "Dial-up Server for
Windows". This drags in tapi, jet, mdac. Not as bad as pulling in MMC, but
it is a bump in size.
netsh now shows and set static ip addresses. There is still a message about
"SOme commands may not be available.", but the one of specific interest is
now working.


Looks like this would be another area for further XPe componentization.
 
R

Richard Mahn

I forgot to mention that "RemoteAccess" is installed "Disabled", so you need
to also be sure to install SC.Exe or such to get the config set to "auto".
 
J

Johannes Stratmann

is the Netsh for setting a static IP also working in Minlogon ? I get also
the error message 'interface name xyz is invalid'. Just adding the
Rasmontr.dll crashes Netsh.exe. Is there a solution without installing tons
of files for not needed RAS ?
 
D

Dan Simpson [MS]

The Explorer shell names the network interface by default. If you're
running a shell other than Explorer, you will need to name the interface by
calling HrRenameConnection:

rundll32 netshell.dll HrRenameConnection

Verify that the connection is named (Local Area Connection, for example)
with the following command:

netsh interface ip show address


Now that the interface is named, you should be able to configure it with
netsh.

Thanks,
Dan
 
J

Johannes Stratmann

Thanks for your reply,
I have renamed the interface by using a script 'localnet.vbs' from Bernardo
Del Seno (Dibbe), included in the 'Netsetup' component on www.xpefiles.com
... When I check with 'netsh interface ip show address' then the interface
has the requested name. But I still get the 'invalid interface name' error.
I wll try your renaming method later.
 
J

Johannes Stratmann

great, you won. After calling the HrRenameConnection it worked. The names
from the script were still kept, but the order (script uses the key order in
registry) seems to be quite random for multiple interfaces.
Is there any documentation on the HrRenameConnection function ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top