From: Richard Lamboj on 26 Apr 2010 04:06 Hello, is there a way to get the GUID from a Network Device? Kind Regard, Richi
From: Tim Golden on 26 Apr 2010 04:14 On 26/04/2010 09:06, Richard Lamboj wrote: > is there a way to get the GUID from a Network Device? Are you talking about the MAC address? If so, here's one way: <code> import wmi for nic in wmi.WMI ().Win32_NetworkAdapterConfiguration (): print nic.caption, "=>", nic.MACAddress </code> If you're not, then which GUID are you referring to? TJG
From: Richard Lamboj on 26 Apr 2010 04:49 Am Monday 26 April 2010 10:14:24 schrieb Tim Golden: > On 26/04/2010 09:06, Richard Lamboj wrote: > > is there a way to get the GUID from a Network Device? > > Are you talking about the MAC address? If so, here's > one way: > > <code> > import wmi > > for nic in wmi.WMI ().Win32_NetworkAdapterConfiguration (): > print nic.caption, "=>", nic.MACAddress > > </code> > > If you're not, then which GUID are you referring to? > > TJG Hello, thanks for your response. No, i don't mean the MAC Address. I mean the GUID -> Sample: {1E2428C1-9F2C-48D7-AB53-3229DFB7E217} I want to change TcpAckFrequency and TcpDelTicks of a Network Interface. I Try to change it over the Registry, but maybe there is another way? Kind Regards, Richi
From: Tim Golden on 26 Apr 2010 06:47 On 26/04/2010 09:49, Richard Lamboj wrote: > thanks for your response. No, i don't mean the MAC Address. I mean the GUID -> > Sample: {1E2428C1-9F2C-48D7-AB53-3229DFB7E217} > > I want to change TcpAckFrequency and TcpDelTicks of a Network Interface. I Try > to change it over the Registry, but maybe there is another way? OK; I'm going to hope that Tim Roberts or someone equally knowledgeable can kick in here as devices really isn't my area. However this looks like it *might* be doing what you want: <code> import wmi for nic in c.Win32_NetworkAdapter (MACAddress=i.MACAddress): for pnp in c.Win32_PNPEntity (DeviceID=nic.PNPDeviceID): print pnp.Caption, "=>", pnp.ClassGuid </code> TJG
From: Tim Golden on 26 Apr 2010 06:58
On 26/04/2010 11:47, Tim Golden wrote: > OK; I'm going to hope that Tim Roberts or someone equally knowledgeable can > kick in here as devices really isn't my area. However this looks like it *might* > be doing what you want: > > <code> > import wmi > > for nic in c.Win32_NetworkAdapter (MACAddress=i.MACAddress): > for pnp in c.Win32_PNPEntity (DeviceID=nic.PNPDeviceID): > print pnp.Caption, "=>", pnp.ClassGuid > > </code> [replying to self] Please ignore that: not only does the code not work, due to some rough cut-and-pasting, it also doesn't produce the GUID you wanted. Sorry. Hopefully someone else has a clue. TJG |