You can use a file named WRKGRP.INI to specify a list of workgroups that users can choose to join. You can use WRKGRP.INI in these ways:
The WRKGRP.INI file is stored in the Windows directory on the server that contains the Windows 95 source files.
Windows 95 Setup uses the values defined in WRKGRP.INI to set Registry values in the workgroup, logon domain, preferred server, and other values. The same values are used to control options available for users to select in the Network option in Control Panel. The WRKGRP.INI file contains the following sections.
Section | Description |
[Options] | Specifies the recognized options for workgroups |
[Workgroups] | Contains a list of workgroups from which the user can choose |
In Windows 95, for each workgroup, you can specify the domain, preferred server, and so on, that everyone in a workgroup will use, depending on the network providers used.
The following table describes the format of the Windows 95 WRKGRP.INI file.
WRKGRP.INI Settings
Section or entry | Description |
[Options] section: | |
ANSI=true | false | Specifies whether the workgroups need to be converted from an OEM character set to ANSI. Default is false. |
Required=true | false | Specifies whether users can type their own workgroup name or forces them to choose from those listed. |
ForceMapping=true | false | Specifies whether users can change the workgroup, logon domain, or preferred server that are set by a mapping. |
Mapping=NP1, NP2, NP3,... | Specifies a comma-separated list of the network providers to which workgroups can be mapped. Also specifies the order in which values will be listed in the [Workgroups] section. Implicitly, this specifies where in the Registry to store settings. This parameter is optional. By default, workgroups map to domain, preferred server. |
Default=NP1 default,NP2 default, NP3 default,... | Specifies the default mapping for workgroups listed in the [Workgroups] section that don't have a mapping defined. This allows you to add a single entry to an existing Windows for Workgroups WRKGRP.INI file to get minimal mapping functionality. The format is the same as for specifying a mapping in [Workgroups]. |
[Workgroups] section: | |
workgroup=optional_mapping | Specifies a workgroup that users can choose and its mappings will automatically be defined in the order specified in Mapping=. There can be a workgroup= entry in the file for every workgroup that users can choose. Each name of a workgroup must be followed by an equal sign (=) for the workgroup name to be interpreted correctly. |
The entry that defines the network providers for each workgroup has the following format in the [Workgroups] section:
workgroup_name=mapping1,mapping2,mapping3,...
By default in Windows 95, workgroups can be mapped to both Windows NT domains and NetWare preferred servers. (This is because Windows 95 includes network providers for these two networks.) For example:
MktMain=MktDom1,master1
This example specifies that the workgroup named MktMain has these two mappings: MktDom1 is the logon domain for the Windows NT network, and Master1 is the preferred server for the NetWare network.
Administrators can specify the 32-bit, protected-mode network providers that can be mapped for a workgroup by setting the Mapping= parameter in the [Options] section of WRKGRP.INI. For example, if the network uses two network providers (MSNP32 for Microsoft networks and NWNP32 for NetWare networks), the following is defined in WRKGRP.INI:
[options]
mapping=msnp32,nwnp32
The order specified in the Mapping= entry also specifies the order of items in the [Workgroups] section.
You can also use the Default= entry to specify a default mapping for workgroups that do not have an explicit mapping. This allows you to use an existing WRKGRP.INI created for Windows for Workgroups 3.11, and add one entry to take advantage of Windows 95 functionality. For example, add the entry Default=MktDom1,Master1 to use the servers described in the previous example as the default mapping.
If a WRKGRP.INI exists, the Workgroup field in Windows 95 Setup and the Network option in Control Panel both show all the workgroups listed in WRKGRP.INI. Users can choose a workgroup from the list or type a workgroup name. If Required=true in WRKGRP.INI, the user must choose from the list.
In WRKGRP.INI, ForceMapping= controls whether mapped values can be changed in the Windows 95 user interface. For example, if ForceMapping=true and the user selects a workgroup that is mapped to a domain, the user cannot change the value in the Logon Domain box in the Network option in Control Panel and in the logon dialog box.
Note If Windows 95 Setup finds the WRKGRP.INI file in the Windows 95 source files, it copies the file to the shared Windows directory.