: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
Description of the Microsoft Windows Registry
This article describes how to add additional schools to Microsoft Class Server by editing the registry on the server.back to the topOverview
Class Server can support multiple schools from the same server. Each school must have a unique database name, a unique primary virtual directory, and a unique server data folder location.
When you enable support for multiple schools to Class Server, you can add additional schools one at a time by using the Microsoft Class Server Configuration tool. For more information about how to do so, see "Appendix C: Multiple Schools and Servers" of the Microsoft Class Server Administrator's Guide
, located in the root folder of the Microsoft Class Server 3.0 CD-ROM.
In situations where you want to add a large number of schools to Class Server, you can edit the values in the registry that store school information. You must specify the following registry values for each school that you want to add:
To do so, you can use the Class Server Configuration tool to create one school, and then use the registry entry that is created for that school as a template to create additional registry entries for each school that you want to add. For example, to add additional schools to Class Server:
back to the topEdit the Registry to Add Additional Schools to Class Server WARNING
- Use the Class Server Configuration tool to create one school.
- Export the registry keys that store school information to a .reg file.
- Use the .reg file as a template, create separate .reg files for each school that you want to add.
- Import the .reg files that contain the information for each of the schools that you want to add to the server.
: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
To edit the registry to add additional schools to Class Server, follow these steps.
back to the topSave and Configure Each School That You Add to Class Server
- Use the Class Server Configuration tool to create a school (if you have not done so already).
- Export the registry information for the school that you created in step 1 to a .reg file. To do so, follow these steps:
- Click Start, and then click Run.
- In the Open box, type regedit, and then click OK.
- Locate and then click the following registry key, where SchoolGUID is the GUID of the school:
- On the File menu, click Export Registry File.
- In the Export Registry File dialog box, specify a file name and location where you want to save the file, and then click Save.
- Start Notepad and open the .reg file.
- Edit and create .reg files with the appropriate information for the schools that you want to add.
Note Before you perform this step, make sure that you use a consistent naming convention for the names of the school, database, and directory names and for the names of .reg files that you create for each school. By doing so, you can easily identify the school that you are adding with name of the .reg file. For example, if you use School1, School2, School3 for the school names, use School1.reg, School2.reg, and School3.reg for the .reg file names.
To do so, follow these steps:
- Replace all occurrences of the existing
SchoolName value with the new school name. For example, if the existing school name is School1, and you are adding a school that is named School2, find all occurrences of School1 in the School1.reg file, and replace it with School2.
- Modify the last two characters of the
SchoolGUID value so that you can identify the school that you are adding. For example, if you are adding School2, change the last two characters of the
SchoolGUID value to 02, and then increment this value by 1 for each additional school that you add.
- Increment the
SearchGUID value by 1.
- On the File menu, click Save As.
In the File name box, type the appropriate file name for the .reg file. For example, if you are adding a school that is named School2, type School2. Specify a location where you want to save the .reg file, and then click Save.
- Double-click the .reg file that you created to add the new school information to the registry.
- Repeat steps 3 through 5 for each school that you want to add.
You can save and configure each school that you add to Class Server individually when you click Save & Configure
in the Class Server Configuration tool. Or, you can automate the registration of all schools that you add by creating a batch file that contains the following command line, where SchoolGUID
is the GUID of the school:
config.hta /config SchoolGUID
The following is an example of a batch file that saves and configures all schools that you add, when you increment the
value of the schools that you add by 1, as described earlier in the "Add a Large Number of Schools to Class Server" section of this article:
back to the top
del RegisterMany.bat@rem **** register many schools hta register ****@rem **** This script creates the batch file you need to run to register your schools. ****@rem **** Edit the first Do statement to reflect the number of schools that you are registering. ****@rem **** Insert your school GUID, less the last three digits, in place of the GUID below. ****@echo. >> RegisterMany.batDo i= 1 to 100Iff %@len[%i] == 1 then set j=00%i Else iff %@len[%i] == 2 then set j=0%iElse iff %@len[%i] == 3 then set j=%iEndiff@echo. >> RegisterMany.bat@echo Config.hta /Config 935B150F-5574-4E1D-B6D4-4230F16E1%j >> RegisterMany.batenddo