Method used to pick up the Primary User Name

  • 3145723
  • 29-Mar-2007
  • 27-Apr-2012


Novell ZENworks Asset Management 3.3 - ZAM3.3
Novell ZENworks 7.5 Asset Management - ZAM7.5
Novell ZENworks 7 Asset Management - ZAM7
Novell ZENworks TS.Census 3.2


How does the ZAM collector gather the Primary User Name?


We look at the following keys:

HKEY_LOCAL_MACHINE\Enum\Network\NETWARE3 => NetWare (16-bit HKEY_LOCAL_MACHINE\Enum\Network\NETWARE4 => NetWare (16-bit)

if Win9x look at:


else look at:


If we find one of these values, then we determine it's the corresponding network:

"NETWAREWORKSTATION" NT Novell 32bit Netware

"NOVELL_NETWARE" 95 Novell 32bit Netware

"NETWARE" 95 Microsoft 32bit Netware

"VINESWORKSTATION" NT Banyan 32bit Vines

"BANYAN VINES NETWORK" 95 Banyan 32bit Vines

"VINES" 95 Banyan 16bit Vines

"VOID" 95 Novell 16bit Netware 3.x

"VOID" 95 Novell 16bit Netware 4.x

"LANMANWORKSTATION" NT Microsoft 32bit NT-LanMan

"MICROSOFT NETWORK" 95 Microsoft 32bit NT-LanMan

"NWCWORKSTATION" NT Microsoft 32bit Netware

On Windows 2000 on an NT network we find "LANMANWORKSTATION". Based on this, we call into NETAPI32.DLL. We try to get the name from the"NetUserGetInfo32" function call.

Check HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\NetworkProvider\Order\ProviderOrder key and see if it has a value that is not listed above if you are not getting the correct Primary User Name.