Office User Information

0 Likes
over 17 years ago

By Bryan Keadle



We have a single image for our Standard Load. We use this program to "import" the user's NDS information into the registry so that the user information correctly reflects the user information stored in NDS.

This program simply reads the user attributes: "Given Name", "SurName", and "Initials", converts them to the binary equivalent and populates the registry entries. We run this once per user, upon login.

It is particularly important to set these values to the user so that when users try to open a file from the network that is being used by another user, Office will report correctly which user has the file open instead of the generic user "Information Systems" that is contained within our standard load image.

This tool is set to find version 8.0 - 11.0, that is, through Office 2003; though only tested on Office 2000 and Office 2003.

SYNTAX: OfficeUserInformation (RESET / QUIET)

RESET - Clears out the Office User Information settings in the registry. Next time a user launches an Office product, they'll be prompted for the information
QUIET - Suppress any confirmation window boxes

OfficeUserInformation looks at the environment variable, NWUSERNAME, to determine the Novell Network login name. This should automatically be set if your are using the Novell client.

If you would like to use a different environment variable to resolve the Novell username, you may create an OfficeUserInformation.INI file, place it in the same directory as the executable, and define which environment variable to use. For example, if you have an environment variable, LN, that is the Novell username, create an INI with this content:

[SETTINGS]
UserEnvVar=LN

OfficeUserInformation will use the LN environment variable for the Novell user object to retrieve the NDS attributes.

Labels:

Collateral
Comment List
Anonymous
  • Sorry for the delay - I just now realized these posts were occurring.

    The PCs that it doesn't work on - do you have group policies applied that may be preventing making registry changes?
  • HI,

    Do I need anything pre-installed to run this app? - .net? etc

    The reason I ask is it works well on some PC's and not at all on others - its not related to Office at all as installing new versions dosn't make any difference.
    The way I can get it to run is to freshly image the problem PC - not much more tham standard XP install (patched to SP2) - I really don't want to have to re-image all the PC's that I come across with this issue - can you think of any related files it may require (I tried updating all my DLL's but no joy - including dbghelp.dll)
  • Any chance of a version for Office 2007?
    It seems to store this information here:
    HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\UserInfo
Related Discussions
Recommended