rundll32 netshell.dll HrRenameConnection doesn't work

C

Carl

I have set rundll32 netshell.dll HrRenameConnection to run as a first
boot agent generic command. I was then trying to configure the ip
address for it and it was failing everytime. I finally figured out that
command wasn't giving the network ports there default name. I know it
isn't working because I outputted the text of it into a text file to
show me the interface names after it is run and I got this:

Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Dedicated
{73E49643-983F-451F-A661-C3D46055F8EF}
Enabled Dedicated
{F1D214A8-E7FD-4D38-87EC-475D40579F73}
Enabled Internal Internal
Enabled Loopback Loopback

Yet when windows runs explorer.exe, it will then name them for me. But
then I can't have them be configured on first boot. Here is the command
I'm using to name them and then output the interfaces to check:

%11%\cmd.exe /c %11%\Rundll32.exe %11%\netshell.dll HrRenameConnection
%11%\cmd.exe /c %11%\netsh interface show interface >> C:\1.txt

So how can I have them be named? Is there any other way to do this?
This is really holding me back on this.
 
C

Carl

I was able to fix this by running it like this:

rundll32 netshell.dll HrRenameConnection
netsh interface show interface
rundll32 netshell.dll HrRenameConnection
netsh interface show interface

I'm not sure why I had to do this, but that's how I got it to work.
 

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