Not so friendly names

(imported topic written by SystemAdmin)

Anyone know if “friendly names of adapters of networks” isn’t supposed to work under Windows 2000?? Though it works on XP, Vista and Win7, it comes up as blank on Windows 2000.

Using “names of adapters of networks” works fine for the guid name of the adapter.

Pretending that “friendly names” doesn’t exist, this one does work for the friendly name under Windows 2000:

(value “Name” of key “Connection” of it) of keys
whose
(
exists elements of intersection of
(
Set of
(
names of adapters of networks
)
; Set of
(
name of it
)
)
)
of key “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Network{4D36E972-E325-11CE-BFC1-08002BE10318}” of registry

Paul

(imported comment written by SystemAdmin)

FYI…

I tried an action to evaluate two different ways, depending on the OS (similar as below). Under Windows 2000, it actually fails trying to evalute the “else” condition. Seems that an IF/ELSE condition will evaluate both conditions, regardless of the “IF”. Since the “friendly name” returns a blank, I suspect that’s what that parameter failed - though it shouldn’t have killed the action.

if {name of operating system = “Windows 2000”}

parameter “friendlyname” = “{(value “Name” of key “Connection” of it) of keys whose (exists elements of intersection of (Set of (names of adapters of network) ; Set of (name of it))) of key “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Network{4D36E972-E325-11CE-BFC1-08002BE10318}}” of registry}”

else

parameter “friendlyname” = “{friendly name of adapter of network}”

endif