[gptalk] Re: Newbie to ADM files seeks help

  • From: "Randy Benson" <randybenson@xxxxxxxxxxxx>
  • To: <gptalk@xxxxxxxxxxxxx>
  • Date: Tue, 19 Jun 2007 12:39:02 -0700

Thanks, Darren-
 
In looking at WMI filters, I stumbled on the 'Scriptomatic' tool (at the MS
technet script center); if I hadn't I don't know if I ever could have gotten
far enough to ask further questions, but:
 
The MaxSpeed: and Speed: properties are displayed under
Win32_NetworkAdapter, but they're empty (nothing displayed after them) when
I run scriptomatic against Win32_NetworkAdapter. 
 
Looks like I'd need to filter on 'Caption' or 'Description' or 'Name' to get
a hint about speed - here's what scriptomatic shows about the local
machine's NIC (not a GB NIC):
 
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
 
AdapterType: Ethernet 802.3
AdapterTypeId: 0
AutoSense:
Availability: 3
Caption: [00000001] Intel(R) PRO/100 VE Network Connection
ConfigManagerErrorCode: 0
ConfigManagerUserConfig: False
CreationClassName: Win32_NetworkAdapter
Description: Intel(R) PRO/100 VE Network Connection
DeviceID: 1
ErrorCleared:
ErrorDescription:
Index: 1
InstallDate:
Installed: True
LastErrorCode:
MACAddress: 00:07:E9:71:41:20
Manufacturer: Intel
MaxNumberControlled: 0
MaxSpeed:
Name: Intel(R) PRO/100 VE Network Connection
NetConnectionID: Local Area Connection
NetConnectionStatus: 2
NetworkAddresses:
PermanentAddress:
PNPDeviceID: PCI\VEN_8086&DEV_1050&SUBSYS_01571028&REV_02\4&1C660DD6&0&40F0
PowerManagementCapabilities:
PowerManagementSupported: False
ProductName: Intel(R) PRO/100 VE Network Connection
ServiceName: E100B
Speed:
Status:
StatusInfo:
SystemCreationClassName: Win32_ComputerSystem
SystemName: MERLIN
TimeOfLastReset: 20070619082537.500000-420
AdapterType: Wide Area Network (WAN)
AdapterTypeId: 3
AutoSense:
Availability: 3
Caption: [00000003] RAS Async Adapter
ConfigManagerErrorCode: 0
ConfigManagerUserConfig: False
CreationClassName: Win32_NetworkAdapter
Description: RAS Async Adapter
DeviceID: 3
ErrorCleared:
ErrorDescription:
Index: 3
InstallDate:
Installed: True
LastErrorCode:
MACAddress: 20:41:53:59:4E:FF
Manufacturer: Microsoft
MaxNumberControlled: 0
MaxSpeed:
Name: RAS Async Adapter
NetConnectionID:
NetConnectionStatus:
NetworkAddresses:
PermanentAddress:
PNPDeviceID: SW\{EEAB7790-C514-11D1-B42B-00805FC1270E}\ASYNCMAC
PowerManagementCapabilities:
PowerManagementSupported: False
ProductName: RAS Async Adapter
ServiceName: AsyncMac
Speed:
Status:
StatusInfo:
SystemCreationClassName: Win32_ComputerSystem
SystemName: MERLIN
TimeOfLastReset: 20070619082537.500000-420
<clip>
 
Can you enlighten me on why the MaxSpeed and Speed fields would be blank?
Or am I missing Something Big?
 
TIA,
Randy


  _____  

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Darren Mar-Elia
Sent: Monday, June 18, 2007 4:43 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Newbie to ADM files seeks help



Randy-
At first glance that ADM looks fine to me except that you only need the
ValueOn and Valueoff tags. You don't need the 3rd Value Numeric 1 tag.

 

In terms of detecting Gigabit adapters, look at using WMI Filters and check
out the Win32_NetworkConfiguration class. I'm rushing out or I would look
deeper for you but I seem to recall there is a speed property on that class
that would allow you to find out if the machine has any GB adapters.

 

Darren

 

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Randy Benson
Sent: Monday, June 18, 2007 4:17 PM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Newbie to ADM files seeks help

 

I'm trying to cobble together an ADM file to turn of Media Sense on
computers that have gigabit network adapters; this is as far as I've got:

 

 

CLASS MACHINE

 

CATEGORY "Network Connections"

 

 POLICY "Turn Off Media Sense"

 

  KEYNAME "System\CurrentControlSet\Services\Tcpip\Parameters"
  VALUENAME "DisableDHCPMediaSense"
  VALUEON NUMERIC 1
  VALUEOFF NUMERIC 0
  VALUE NUMERIC 1
 END POLICY
 
END CATEGORY

 

I'm sure there's plenty wrong with it, but while I'm asking for debugging
help, is there a way to detect gigabit adapters or do I need to collect all
boxes with gigabit adapters into an OU?

 

TIA,

Randy Benson

W. R. Benson & Associates

 

 

Other related posts: