US 20060005001 A1
A method is disclosed comprising initializing and/or modifying a first set of computer configuration data for a first user based on the first user's membership in a first group, initializing and/or modifying a second set of computer configuration data for the first user without regard to the first user's membership in the first group. The first or second sets of computer configuration data may be stored in an initialization file. The computer configuration data may be computer hardware of computer software data.
1. A method comprising
initializing a first set of computer configuration data for a first user based on the first user's membership in a first group; and
initializing a second set of computer configuration data for the first user without regard to the first user's membership in the first group.
2. The method of
modifying the first set of computer configuration data for the first user based on the first user's membership in the first group.
3. The method of
modifying the second set of computer configuration data for the first user without regard to the first user's membership in the first group.
4. The method of
the first set of computer configuration data is stored in an initialization file.
5. The method of
the first set of computer configuration data is computer hardware data.
6. The method of
the first set of computer configuration data is computer software data.
7. A method comprising
initializing a first set of computer configuration data for a first user based on the first user's membership in a first group by using a set of text based initialization files; and
initializing a second set of computer configuration data for a second user based on the second user's membership in a second group by using the set of text based initialization files.
8. A method comprising
configuring a plurality of settings for a plurality of computer users that are members of a group;
wherein each of the plurality of settings has a value;
wherein the value of each of the plurality of settings is based at least in part on the fact that the plurality of computer users are members of the group; and
wherein an administrator determines whether a computer user becomes a member of the group.
9. A method comprising
importing a plurality of values for a plurality of settings from a computer initialization file into a computer user's preferences for a single or multiple computer softwares, hardware or any configurable object;
determining if any of the plurality of values of the plurality of settings in the computer initialization file has changed; and
if any the plurality of values of the plurality of settings in the computer initialization file has changed re-importing the computer initialization file into the computer user's preferences for the configurable object or objects.
10. A method comprising
determining whether a first value or a second value will have priority and therefore will control a setting for a first computer variable for a first user of a computer;
wherein the first value is indicative of membership in a first group;
wherein the second value is indicative of membership in a second group; and
wherein the first user is a member of both the first group and the second group.
This invention relates to improved methods to configure and maintain user settings in a multi user environment.
The files used to initialize settings for a computer, computer program, and/or computer network for individual users are referred to as initialization files. Different computer programs read from these initialization files to determine the configuration of the computer, computer program and/or computer network for the individual user. It is a common practice to keep these initialization files in a simple text format as opposed to a propriety format. Keeping these files in a simple text format has plenty of advantages. This brings forth simplicity in structure. This also implies that these initialization files can be read and edited by any text editor as opposed to having a propriety tool that understands the format of these files to let any file operation possible on these initialization files by the user. It is also very easy to read and write to an initialization file, as different library functions exist in a variety of languages and scripts to read and write to a text file. Examples of these initialization files in text format are plenty. In UNIX (trademarked) environments, a profile text file initializes the environment for a user at login time. A similar task used to be done in DOS through a config.sys file. Microsoft Windows (trademarked) 3.X, Windows (trademarked) 9X, Microsoft Windows NT (trademarked), Microsoft Windows 2000 (trademarked) and Microsoft Windows XP (trademarked) use a variety of initialization files.
These initialization files can be broadly categorized into two types of files, i.e. information files which have a .inf extension in their names (known in the art as inf files) and initialization files which have a .ini extension in their names (known in the art as ini files).
The structure of these initialization files—ini files and inf files are similar to each other and are comprised of a pair of ini entry and value, which are separated by an equal sign and divided into different sections. The sections are identified by section header which is a text string enclosed between square brackets. By using text based tags to identify sections, entry and values, ini and inf files preserve the text based nature of the file and at the same time bring an order to a text file to make it more structured to store settings.
Typically an inf file can be used to store computer hardware configuration data or information for a device. Ini files are used to hold computer software configuration data or information.
Ini and Inf files have the advantage of simplicity of structure associated with any text file. In addition to this advantage, by using the above-described format of dividing the file into sections, different settings can be bundled into different groups (identified by sections in ini and inf files). This gives users of the ini and inf files a little bit more flexibility compared to any other text file in terms of managing the data that is to be stored. One more advantage of files in ini and inf format is that there are tools available to read and write easily to these files (ini and inf files), such as “GenInf.exe” from Microsoft (trademarked) and “ChkInf.exe” from Microsoft (trademarked).
Looking at the structure of these ini and inf files in more detail, an ini or an inf file is divided into sections, which are identified by a section name typically called “IniSectionName”. Each section is comprised of a number of entries (each typically called “IniEntry”) and their respective values (each typically called “IniEntryValue”). Therefore the IniEntryValue for a combination of IniSectionName and IniEntry defines a value (IniEntryValue) that a user will be initialized to for a given setting(IniSectionName and IniEntry). Logically, this implies that a sequence of three strings (IniSectionName, IniEntry, IniEntryValue) can define the configuration for a user. This setting can be a particular software setting or user environment in that computer system or in the organizational network
The computer software settings or configuration that the initialization files in text format intend to deploy can be for all the users, for a group of users or an individual user of a computer or computer network. In the real world, configurations are deployed at an organization level where users are divided into different groups and subgroups where any single user can derive certain properties from the group or sub group to which he or she belongs to or have certain set of his or her own unique attributes. It would be very advantageous to use the text based initialization files in this scenario due to their advantages already listed above.
However, due to its simplicity of structure, these initialization files in text format in their current form are not well suited to initializing and modifying the configuration of a complex set of users divided into different groups and subgroups where any single user can derive certain properties from the group or sub group to which he or she belongs to or have certain set of his or her own unique attributes.
The present invention in one or more embodiments, describes a method for initializing and modifying the configuration of a complex set of users divided into different groups and subgroups possible in the framework of initialization files in text format using an extension of the format of an ini or an inf file as an example. This idea can very well be shown using similar extensions in other types of text based initialization files like config.sys, profile or XML files. In this method any single user can derive certain properties from the group or sub group to which he or she belongs to or have a certain set of his or her own unique attributes. Employing an initialization file in text format makes the usability simple and easy. At the same time, the extensions provided to the text based initialization file can deal with configuring a set of users belonging to a hierarchy of groups and subgroups easily.
This invention, in one or more embodiments describes a method for initializing and modifying computer software configuration data for a complex set of users divided into different groups and subgroups where any single user can derive certain properties from the group or sub group to which he or she belongs to or have certain set of his or her own unique attributes. In at least one embodiment, an initialization file structure is used. The text based initialization file structure makes the usability simple and easy. At the same time, the extension of Ini file structure can deal with configuring a set of users belonging to a hierarchy of groups and subgroups easily.
If we follow the current scheme of text based initialization file formats, the reason for them not being suitable to represent a set of users divided into groups and subgroups is:
By making the above conditions possible by extending the scheme of ini/inf files as an example, we automatically meet the requirement stated.
This invention describes a simple method of specifying conditions in an extension to the ini file. The parsing software is designed to parse this text based initialization file only when the stated conditions are met.
Similarly, this invention describes a method to link from one text based initialization file to a set of other text based initialization files. This implies that a configuration specific to a given set of conditions is grouped together in one text based initialization file. Different configurations are maintained in a set of text based initialization files. Subsequently, they are linked together appropriately so that they all can be traversed in a specific order.
Thirdly, this invention describes a scheme to traverse multiple text based initialization files. In this scheme, the first file that is traversed is the root initialization file. A child initialization file is traversed if it has links from a parent initialization file and the conditions listed to parse the child initialization file are met. For optimization purpose, if an initialization file is already imported into the user settings and none of the conditions have changed or none of the contents of the initialization file has changed, the initialization file settings need not be imported at this time.
Table 1, which follows, shows a typical “Ini” or “Inf” computer software file layout. Comments are shown in Table 1, starting on a new line, prefixed by at least one semicolon, and in italics. Disregarding the comments, the “Ini” or “Inf” file shown by the Table 1 is divided into different parts called sections. The sections in the ini file in Table 1 are “IntPreferences” and “Project1”.
The sections in the “Ini” or “Inf” file shown by Table 1, are marked by the IniSectionName specified at the beginning of the section within square brackets. In this case the “IniSection Name” is “[IntPreferences]”. Everything that follows an IniSectionName, such as “[Intpreferences]” shown in Table 1, is the body of that section till the next IniSectionName shown in Table 1, which is “[Project1]”. “[Project1]” specifies the beginning of the next section. Within each section, there can be any number of IniEntries and associated IniEntryValues. For example for section “[IntPreferences]”, there is an IniEntry of “AlertOnTotalSyncAbortCount”, which has an IniEntryvalue of “1” and an IniEntry of “AlertOnTotalConflictCount”, which has an IniEntryValue of “1”. For section “[Project]” there is an IniEntry of “ProjectName”, which has an IniEntryvalue of “OfficeVNHomeFolder” (which may be some predefined constant understood by the program as a string setting), an IniEntry of “Description”, which has an IniEntryValue of “Office's Home Folder” (which may be some predefined constant understood by the program as a string setting), and an IniEntry of “SyncAlways”, which has an IniEntryValue of “1”.
Each IniEntry shown in Table 1 is a key name, which generally specifies a specific setting name. The value to be specified is the portion of the line following the IniEntry shown in Table 1 after a particular ‘=’ sign. There are computer software routines available to read this value as an integer, string, binary and a few other forms.
Since this invention deals with rolling out preferences in an organization that has users organized in a multi-tiered arrangement,
Through the first, second, third, and fourth user computers, the present invention in one or more embodiments, attempts to cover four distinct scenarios. The concept can be further extended to any other type of user/group association.
Table 2, which follows, describes an example of sample preferences that can be deployed in the organization of users, subgroups and groups shown in
The general physical locations of components in a method and apparatus in accordance with at least one embodiment of the present invention, are described in
Each of the server machines 201, 202, and 203 can be a file server, a domain controller, a security server, or any other type of computer server. In the client server architecture for apparatus or network 200 shown in
An apparatus and method in accordance with at least one embodiment of the present invention, stores the preferences for the programs 211 a-d in a Text based initialization file format and stored on the workstation 204-207, or from a network Text based initialization file, such as stored in disk 208. Each of the workstations 204-207 may have a client program running on it, which can import these preferences or settings. The workstations 204-207 may each include memory. The preferences or settings can also reside in memory of each of the client workstations 204-207. Many client computer programs running on one of the workstations 204-207 currently can initialize themselves from a local Text based initialization file, such as stored on the workstation 204-207, or from a network Text based initialization file, such as stored in disk 208. Therefore, these client computer programs may have a parser module that is responsible for processing Text based initialization files to import the desired settings for the client computer program. Although not all of the client computer programs 211 a-d may initialize their settings from an “Text based initialization” file, for this invention, it is assumed that these programs can be changed to read the settings from a Text based initialization file or some other similar text format using a parser computer software routine—such as one of “IniParser” computer programs 210 a-d. This process should be quite elementary to do for an experienced software developer. This parser can be a part of one of the client computer programs 311 a-d, or it can be a separate computer program.
Whether the Text based initialization files are stored in network storage 208 or locally in memory of one of the workstations 204, 205, 206 or 207, it is difficult to deploy settings in a scenario where the users are organized in multiple tiers and a different group of settings are to be deployed from different levels in a multi-tiered architecture similar to the one described in
Table 3 describes an aspect of the invention to extend the format of Text based initialization files, maintaining a structure similar to “ini” file text format to make it possible to deploy settings from multiple levels in a multi-tier organization of users. We call this format “extended ini file format”. Table 3 proposed a few new constructs in the existing “Ini” file structure to make it in an “extended ini file format”. Similar constructs can be used to extend for any other text-based formats easily. The given scheme retains the “Ini” file structure. It adds to it two key sections. First is the “[inifiles]” section shown in Table 3. This is the section where all the children “Ini” files to be parsed are listed. The “IniEntry” for the variable “NumberOfChildiniFiles” shown in table 3 denotes the number of children present. In table 3 the number of children “Ini” files present is “2”. From this “IniEntryValue” of “2”, the parser routine 310 a shown in
In the example of Table 3, the two children ini files are “child1.ini” and “child2.ini”. The second section is the “[conditions]” section. This IniSection specifies the conditions when this Ini file should be processed by the parser routine 210 a. If the conditions are not met, then this Ini file would not be processed further. The number of conditions is listed out in the IniEntry for the variable “NumberOfConditions”. If the value is 3 (as in the example in Table 3), then the name of the conditions' IniEntries are 1,2 and 3. If any of these conditions are satisfied, then the Ini file is processed. The condition statement itself can be specified as multiple conditions separated by a semicolon. For the condition statement to be true, each sub condition needs to be true. Therefore, the logical operator between sub conditions in a condition statement is “and” whereas the different condition statements are “ored”. Of course, it is quite elementary to include other condition statements such as “or”, “and”, “equal”, “not equal to”, etc. So in the example of Table 3, if conditions 1, 2 and 3 are met, only then this particular Ini file would be parsed.
The syntax of the condition is that every sub condition is separated by ‘;’ (semi-colon). Also, any environment variable to be included in a condition can be enclosed between “%” symbols. Environment variables are defined at the user's profile level by the operating system. The value that the user gets for an environment variable can be decided by the administrator or the end user. Some environment variables that are used commonly across operating systems e.g. Windows (trademarked) 9X, Windows (trademarked) 2000, Windows (trademarked) XP, UNIX (trademarked) are “path” (stores the set of directories where the operating system will search for an executable file by default) or “temp” (stores the location of the temporary folder).
The first condition number in the table 3 would be true only if the environment variable “group” has the value “Support” and the environment variable “subgroup” has the value “maintenance”.
The syntax of a condition can be specified as
ConditionName=Subcondition1;Subcondition2; . . . Subconditionn.
Each sub condition can follow the syntax of a logical condition e.g. [% environment variable %] [logical operator] [value].
In the example of Table 3, this Ini file would be parsed further only if any of the conditions: 1, 2, or 3 hold true. Another IniEntry for a variable “ProcessChildIfParentConditionFails” is also shown in Table 3. If the value of this variable is 1, even if this Ini file is not parsed further because the conditions are not met, the children listed in the [Inifiles] section in table 3 are still processed further. “ProcessChildFirst” IniEntry specifies the order of parsing between children and parent. If children settings are to override the parent setting, the parent should be parsed before child. If children settings are to be overridden by the parent setting, the children should be parsed first. In that case, this IniEntry ProcessChildFirst should be given the value of 1.
In the example of
The groups in this organization are further subdivided into subgroups. A server 305 is the server for the subgroup Sales 110. A file in this server—\\SalesServer\Share\Sales-ini 325, has stored therein the settings to be deployed at the subgroup level for the subgroup Sales 205. A server 306 is the server for the subgroup Marketing 112 of
Table 4 shows the contents of the extended ini files described above i.e. 321, 322, 323, 324, 325, 326, 327, 328, 329 and 330 correspond to first module of table 4-index.ini file, second module of table 4-sm.ini file, third module of table 4-support.ini file, fourth module of table 4-technical.ini file, fifth module of table 4-sales.ini file, sixth module of table 4-market.ini file, seventh module of table 4-CI.ini file, eighth module of table 4-maint.ini file, ninth module of table 4-dev.ini file, tenth module of table 4-arch.ini file, and eleventh module of table-4 logs.ini file. The root extended ini file i.e. index.ini contains settings that are to be deployed enterprise wide. This includes the “Organization” variable, which is set to a value of “Mobiliti” in this example. The next setting “UsernameFolder” though is deployed at enterprise level, it has a different value for every user. This takes the help of an environment variable “username”.
An environment variable defines some aspect of a user's or a program's environment that can vary. Generally set during the login procedure, for a user the environment variable establishes some component of the user's working environment, such as the default printer, browser, or text editor to be used. Because these are preset as values specific to the identified user, they save time that would be used selecting them at each login. Environment variables are used across multiple languages and operating systems to provide information to applications that may be specific to the user request. It is important to realize that this invention does not deal with setting the values of environment variables. It is assumed that the respective environment variables are already defined in the organization. If they are not defined, there are different easy ways to define environment variables to appropriate values. Environment variables are setup through different methods like startup files (.profile in UNIX, autoexec.bat and other batch files in Windows 9X, Windows 2000, NT and XP), login scripts or software settings or any other method).
The Ini File Parser computer program, such as one of 210 a-d, is responsible for interpreting the environment variable and importing the IniEntryValue based on the current value of the environment variable. Therefore for the first user or User1, when parsing the file index.ini, the IniEntryValue for IniEntry “UsernameFolder” would be translated as \\Orgserver\share\User1, since the environment variable “username” has the value User1. Similarly for User4, this IniEntryValue would be taken as \\Orgserver\share\User4. The rest of the entries provide default values to the rest of the settings that are to be imported. For example, unless a child ini file overrides the setting “SM”, this setting will have the value 0 by default. The second section “IniFiles” lists out the children Ini files. The conditions section's first IniEntry ProcessChildIfParentConditionFails having the value 1 specifies that even if this Ini file is not getting processed due to some condition, continue with processing the children Ini files. “ProcessChildFirst” having IniEntryValue 0, shown in the first module of table 4 ensures that this ini file (“Index.ini”) is processed completely, before any of the children Ini files are parsed.
Next are listed, in Table 4, the Ini files corresponding to the groups, sm.ini 322, support.ini 323, and technical.ini 324. We now describe one of these ini files—sm.ini 322. The other files 323 and 324 are similar in structure to file 322. The preferences section of this file deploys the setting SM=1. So for users who parse this ini file have the setting SM overridden to the value 1, which is otherwise 0 (the value of 0 was set by index.ini). The IniFiles section specifies the children Ini files that are to be parsed i.e. \\SalesServer\Share\Sales.ini, \\MarketServer\Share\market.ini and \\CIServer\Share\CI.ini. The conditions sections first two entries are similar to index.ini, which has been described previously. The last two IniEntries specify the only condition to exist for this sm.ini file to be parsed and imported into the software settings. NumberOfConditions IniEntry specifies that there is only one condition. The IniEntryValue “1” for the IniEntry “Number of Conditions” lists the number of conditions, which specifies that this ini file is to be parsed and imported only when one of the setting specified below (in this case IniEntry 1 is the only condition) is satisfied. The condition expressed in the IniEntry “1” specifies the environment variable “group” has the value set as a constant “SM”. The environment variable “Group” is expected to be set organization wide in this example to the value of the constant string corresponding to the user's group. Therefore, environment variable “group” is set to “SM” for everyone in sales and Marketing and to “support” for everyone in support. So in this example, this extended ini file SM.ini would be processed further only if environment variable “group” is set to “SM”.
Next are listed the Ini files corresponding to the subgroups i.e. sales.ini 325, market.ini 326, CI.ini 327, Maint.ini 328, Dev.ini 329 and Arch.ini 330. We now describe one of these ini files—sales.ini 325. Each of the subgroup ini files 326, 327, 328, 329, and 330 are similar in structure to the sales.ini file. The preferences section of the sales.ini file deploys the setting Sales=1. So for users who parse this ini file as it satisfies the conditions specified in the conditions section, have the setting Sales overridden to the value 1 which is otherwise 0 (In this example, index.ini had earlier set this value to 0). The conditions sections' first two entries are similar to index.ini, which has been described previously. The last two IniEntries specify the only condition to exist for this ini file to be parsed and imported into the software. NumberOfConditions IniEntry specifies that there is only one condition. The IniEntry 1 for “Conditions” lists the only condition, which specifies that this ini file is to be parsed and imported only when the environment variable “subgroup” has the value “Sales”.
The last ini file that will be described is logs.ini. It is different from the other ini files as this is not an ini file that is prepared by the person or team who is responsible for deploying the setting. It resides on each workstation where the computer software to be configured is installed (204, 205, 206, and 207) and is the output of one of the parsing modules 210 a-d. The logs.ini file has multiple purposes which includes optimizing the import of ini files by not importing all the files all the time, but only importing ini files which are necessary to be imported. Therefore, it lists out time stamps of all the ini files starting from index.ini till the last ini file that was actually processed as sections i.e. IniSections. The section name contains the fullname of the ini file where each part of the name is separated by the keyword ‘$’ (or any other character that is not conventionally used in naming a file or directory in different file systems). In this section is stored the time stamp of any ini file when it was imported last by this user. If the last modified time of this ini file has changed, this ini file needs to be reimported again by this user. Alternatively, instead of time stamp, the actual file check sum can be stored to make the idea less dependent of last modified time of files and base it on actual content of the file. Also listed in this section are all the environment variables that were encountered while parsing this ini file along with its value. Therefore, if any of the values of these environment variable changes, this ini file needs to be reparsed.
The import process of deployment files begins at step 602 shown in
If the ini file conditions are satisfied, then the logs.ini is parsed to see if this ini file needs to be parsed at step 812. If all the settings that would be imported by the ini file are already imported, there is no need to re-import this ini file. This is what the step 812 would determine using logs.ini file. Absence of logs.ini file implies that we need to parse this ini file. This could mean that the user is importing this ini file for the first time. It first checks the time in the IniEntry “LastModifiedTimeOfImport” for the section corresponding to this ini file and sees if the current ini file's time stamp has changed. If it has, then this ini file definitely needs to be parsed. On the other hand, if the time stamp of this ini file has not changed, then the value of each environment variable listed in logs.ini for this ini file are evaluated for its previous and present value. If any of them has changed, this ini file needs to be imported once again. Otherwise, it is not necessary to import this ini file.
If the ini file is not to be imported, this goes to step 808. If the ini file is to be imported, step 818 imports the ini file. In this step, every single IniEntry and IniEntryValue from every section other than “conditions” and “inifiles” are imported and stored in one of the computer program application 211 a-d settings. After this ini file is imported, the logs.ini file is updated for this user at step 820). In this step, the time stamp of this ini file is stored along with every single environment variable that was encountered during this ini file parse and stored in the section corresponding to this ini file. Subsequently, this function returns at step 814 specifying that this ini file was processed.
If the conditions for this ini file are not met in step 806, then the next step 808 checks if children ini file are to be parsed if the parent fails. This is done by looking in the “conditions” section for the IniEntry ProcessChildIfParentConditionFails shown in Table 3. If this is not set(value 0), then the next step is 816. Otherwise, IniParser 310 shown in
Although the invention has been described by reference to particular illustrative embodiments thereof, many changes and modifications of the invention may become apparent to those skilled in the art without departing from the spirit and scope of the invention. It is therefore intended to include within this patent all such changes and modifications as may reasonably and properly be included within the scope of the present invention's contribution to the art.