I am also working on the same thing right now. I tried to use netsh to do it
but netsh requires an interface name. In the MSDN library, it seems to imply
that you have to rename the interface name to something simple like "Local
Area Connection" before netsh would work. I tried using netsh with the old
hashed name {XXX...} but it did not work. I then tried renaming the
interface name with "rundll32 netshell.dll HrRenameConnection" as documented
in the MSDN article but nothing happened. So now the only option left for me
is to use the Explorer shell so that it would rename the interface for me
automatically on startup. Any ideas how to do it correctly?
Step 1: rundll32 netshell.dll HrRenameConnection - You should not see
anything just next prompt.
Step 2: use netsh.exe to set ip address.
Some basic info.
netsh does not have dependencies on its plug-in components like:
Network Command Shell Interface (this one you need to be able to use and see
NETSH INTERFACE option).
There are few plug-in components like this that you need to add manually
since netsh does not need them to work.
This is not entirely MS fault, but they should have provided all plug-in
components as possible selection choice under Network Command Shell
component.
Check:
1. That you have included Netshell component.
2. That when you run netsh and run help you have interface option available.
Thanks again. Gosh I feel so stupid... I was expecting netshell.dll to give
me some kind of shell prompt like netsh. I did not check if the connection
had been renamed after issuing the command.
/Swee
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.