mobious99 Posted May 28, 2008 Share Posted May 28, 2008 Hi,I've been working on automating teaming at work and here's what I'm trying to do- read existing network connections names "local area connection1, 2, 3, 4"- save the names somewhere- use netsh to configure the names based upon that name lets say I always want network connection 4 to have the same settings.the problem that I have (other than spelling) is that I've got a bunch of people at work that have named the connections to different things so I'm kind of stuck, I need to modify that connection but w/o knowing the name I can't use netsh to do it..any ideas? Link to comment Share on other sites More sharing options...
nmX.Memnoch Posted May 29, 2008 Share Posted May 29, 2008 You can try doing a WMI query on Win32_NetworkAdapter for the DeviceID value. Link to comment Share on other sites More sharing options...
gosh Posted May 29, 2008 Share Posted May 29, 2008 You can use netsh to get the GUID, then in the registry change the name under the GUID. Network connections are stored under HKLM\System\CCS\Network-gosh Link to comment Share on other sites More sharing options...
mobious99 Posted June 3, 2008 Author Share Posted June 3, 2008 sorry to ask but do you have an example? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now