Configuring Shared Installations for Protected-Mode Clients

For shared installations, Windows 95 Setup adds the following basic kinds of entries in AUTOEXEC.BAT for computers that will run a shared copy of Windows 95 and use basic Microsoft networking for the first connection to the server:


snapshot
net start redir
net use drive: \\server\shared_source
net use drive: \\server\share\machine_dir
setmdir

If AUTOEXEC.BAT previously included net start or net init statements, Windows 95 Setup adds the commands for a shared installation at the same location. If AUTOEXEC.BAT included command lines for MS-DOS – based utilities before the net start entry, you must place these after net start for an AUTOEXEC.BAT file to be used with Windows 95.

For example, the earlier version of AUTOEXEC.BAT might contain these statements:


doskey
net start

Windows 95 Setup would change this AUTOEXEC.BAT to contain these statements:


drive:\sharreddir\doskey
net start basic
net logon /y

You must then manually edit AUTOEXEC.BAT to move the doskey statement after the net statements.

The SNAPSHOT.EXE utility called in AUTOEXEC.BAT is a real-mode program that prepares for the transition to protected-mode networking. A protected-mode counterpart (SNAPSHOT.VXD, stored in the shared Windows SYSTEM directory) uses this information to load the protected-mode network client. The following list shows command-line parameters that Setup might add in AUTOEXEC.BAT.

Snapshot Parameters

Parameter

Description

/B:n

Sets n as the boot drive, where n is a drive letter A through Z. Usually this is set to /b:c.

/M:n

Sets the amount of memory to reserve for the real-mode network, where n is a number in kilobytes. The default is 160K.

/S

Enables shutdown trapping, which causes Snapshot to intercept the Windows shutdown process and restart the workstation as soon as it is disconnected from the network. This parameter is used for floppy disk-based and remote-boot computers that use swap files on the network.

/R

Indicates that this is a diskless workstation has no floppy disk drives. (On some remote-boot computers, the BIOS reports drives A and B when these drives don't exist; this parameter solves that problem.)

/V

Sets verbose mode.


The net start command includes either the basic or nwredir parameter to start real-mode Microsoft networking. For either parameter (and any type of network), the net use command is then used to connect to make the initial network connection. The user is prompted for a user name and password for this real-mode connection. Otherwise, you can modify AUTOEXEC.BAT to use a generic logon for this first connection.

Note If the computer uses more than one network client, the first client specified in the clients= entry in the setup script will be used to run Windows 95. If the first client specified in clients= is a Windows 95 protected-mode client, then that client is used with the net start command.

The net use entries in AUTOEXEC.BAT map drives for the shared Windows 95 files and the machine directory for the computer. The setmdir command (that is, Set Machine Directory) searches for MACHINES.INI in the shared Windows 95 directory to locate an entry that specifies the path to the machine directory that contains the full Registry for this computer. For more information, see "Technical Notes on MACHINES.INI and SETMDIR."

The startup disk for a shared installation contains all the software required to connect to the network and start Windows 95. One startup disk can be used for computers with the same kinds of network adapters and settings. The same configuration can be used to run a shared copy of Windows 95 on remote-boot workstations with similar hardware configurations.

For computers that start from floppy disks, the contents of the startup disk fit on a 1.2 MB floppy disk. After Setup, you should make sure that the startup disk is write-protected. The software on the disk does not require writing information to the startup disk.

Configuring a Computer that Starts from a Hard Disk

If you want to run a shared copy of Windows 95 on a computer that starts from its local hard disk, the setup script should contain the following entries:


[network]
WorkstationSetup=1
HDBoot=1

In this case, if there is a hard disk present on the computer with sufficient space for the required files, Windows 95 Setup creates the configuration required to start the computer from the Windows directory on the local hard disk and run a shared copy from the network.

Optionally, if the entry DisplayWorkstationSetup=1 is specified in the setup script, the user can choose to create a local installation or a shared installation of Windows 95. For a shared installation, the user must specify the path for the machine directory.

For a computer that starts from a hard disk and uses Client for Microsoft Networks, AUTOEXEC.BAT is set up as follows for a shared installation:


snapshot.exe 
net start basic
net logon /savepw:no /y
net use x: \\server\share

For computers running a NetWare-compatible client as the default network client, AUTOEXEC.BAT is as follows:


snapshot.exe 
net start nwredir 
net use drive: \\server\directory

The following shows an example of AUTOEXEC.BAT for a computer that starts from its local hard disk:


snapshot
c:\windows\net start nwredir
c:\windows\net use * /d
c:\windows\net use r: \\nwsvr\sys
path c:\windows;r:\sbsdist;r:\sbsdist\command
set tmp=c:\windows
set temp=c:\windows

Setup creates a machine directory and copies the following files to the machine directory:

Because all Windows 95 source files are on the server, Setup does not need to copy Windows 95 locally as it does for installation on a local hard disk. The File Copy step in Setup should only copy about 2 MB of files.

For shared installations on computers with hard disks, Setup modifies the Windows 95 startup disk by changing the boot sector and copying new IO.SYS, COMMAND.COM, and MSDOS.SYS files. The files in the following list are copied to the startup disk.

Files on Startup Disk for Shared Installations on Hard-Disk Computers

autoexec.bat
command.com
config.sys
himem.sys
ifshlp.sys
io.sys

msdos.sys
ndishlp.sys
net.exe
net.msg
neth.msg
protman.dos

protman.exe
protocol.ini
snapshot.exe
system.dat
NDIS 2 adapter driver


For a client computer that contains a hard disk, the swap file and TEMP directory are stored on the local hard disk. To change the location for the swap file in this configuration, add a pagingfile=path entry in the [386Enh] section of the SYSTEM.INI file that is stored in the machine directory.

Configuring a Computer that Starts from a Floppy Disk

If you want to run a shared copy of Windows 95 on a computer that starts from a floppy disk, the setup script should contain the following entries:


[network]
WorkstationSetup=1
HDBoot=0
RPLSetup=0

Windows 95 Setup creates the configuration required to start the computer from a floppy-based startup disk and run a shared copy from the network. Setup also creates this configuration if HDBoot=1 is specified but there is no hard disk present or there is insufficient space on the hard disk to install the required files.

Note You must add an entry for the client computer in MACHINES.INI before that computer can start Windows 95.

For shared installations on floppy disk-based computers, Setup creates a mini Registry in a machine directory on the startup floppy disk. This reduced version of the computer's SYSTEM.DAT file contains only the information needed by IO.SYS and the real-mode network that makes the initial connection to the server. After connecting to the machine directory on the network, Windows 95 uses the full Registry stored there.

The swap file and TEMP directory are also stored in the machine directory for a client computer that starts from a floppy disk. To change the location for the swap file in this configuration, add a pagingfile=path entry in the [386Enh] section of the SYSTEM.INI file that is stored in the machine directory.

The following shows an example of AUTOEXEC.BAT for a computer that starts from a floppy disk to run Windows 95 from a NetWare server:


snapshot
net start nwredir
net use * /d
net use r: \\server\share
setmdir
path=sbsdist;r:\sbsdist\command

Note Do not include the machine directory in the path. The setmdir command manages this requirement automatically.

Windows 95 Setup creates the startup floppy disk by modifying the boot sector and copying IO.SYS. After Setup, make sure that the startup disk for this configuration is write-protected. The following table lists the files on the startup disk for this configuration.

Files on the Startup Disk for a Shared Installation on a Floppy-Disk Computer

autoexec.bat
config.sys
command.com
himem.sys
ifshlp.sys
io.sys

msdos.sys
ndishlp.sys
net.exe
net.msg
neth.msg
protman.dos

protman.exe
protocol.ini
snapshot.exe
system.dat (mini version)
NDIS 2 adapter driver


Configuring a Remote-Boot Workstation for Client for NetWare Networks

Windows 95 can be installed on remote-boot workstations that start from Novell NetWare 3.x and 4.x servers. Remote-boot workstations contain a Remote Boot PROM that queries the network for instructions. Before installing Windows 95 to run on a remote-boot workstation, you should first make sure that the workstation successfully starts and runs with ODI drivers over RIPL.

If you want to run a shared copy of Windows 95 on a remote-boot workstation, the setup script should contain the following entries:


[network]
WorkstationSetup=1
HDBoot=0
RPLSetup=1

Windows 95 Setup creates the configuration required for starting and running a shared copy wholly from the network. Setup also creates this configuration on computers with NetWare-compatible clients if HDBoot=1 is specified but there is no hard disk or floppy drive present or there is insufficient space on the hard disk to install the required files.

At system startup for a remote-boot workstation that will run Microsoft Client for NetWare Networks, the network provides instructions to create a RAM drive and then copies a disk image from the server to the workstation's RAM drive. Then the workstation continues booting from the RAM drive. The RAM drive is removed from memory after the operating system switches to protected mode. Windows 95 Setup creates the disk image that is copied from the server to the workstation's RAM drive. For information about customizing boot images, see "Creating the Disk Image for RIPL" later in this chapter.

To accomplish these actions for remote-boot workstations, Setup adds the following line to the workstation's CONFIG.SYS to create the RAM drive:


device=a:\ramdrive.sys 1440

The following lines are added to AUTOEXEC.BAT:


@mkdir ramdrv:\
@copy a:\ ramdrv:\

When you run Windows 95 Setup on a remote-boot workstation, a mini Registry is created and copied to the RAM drive. Windows 95 Setup also copies other supporting startup files to the RAM drive. When Setup is finished, it creates a file containing a disk image of the workstation's RAM drive on the server. The startup disk image contains a reduced version of the computer's SYSTEM.DAT file, which contains the Registry information needed by IO.SYS and the real-mode network. After connecting to the workstation's machine directory, Windows 95 uses the full Registry stored there.

The following shows an example of AUTOEXEC.BAT created for a remote-boot workstation:


@copy a:\ c:\
c:

The following shows an example of WIN.BAT, which runs automatically after AUTOEXEC.BAT is run:


set comspec=c:\command.com
nwrpltrm
snapshot /R /S /B:C
net start nwredir
net use * /d
net use N: \\nwserverbasedsetup\sbsdist
path=n:\netsetup\rpl;n:\netsetup\rpl\command
setmdir
win.com

The machine directory is created on the server. Windows 95 Setup copies the files listed in the following table.

Startup Files for Remote-Boot Installations

autoexec.bat
bootdrv.com
config.sys
command.com
himem.sys
ifshlp.sys
io.sys

msdos.sys
ndishlp.sys
net.exe
net.msg
neth.msg
nwrpltrm.com1
protman.dos

protman.exe
protocol.ini
ramdrive.sys
rplboot.sys2
snapshot.exe
system.dat
NDIS 2 adapter driver


1 This file runs during system startup to terminate the connection to the disk image.

2 Users looking at the boot image cannot see this file.

For remote-boot workstations, the network adapter is considered the boot device, and the real-mode operating system files are stored with the disk image in the machine directory. The swap file and TEMP directory are also stored in the machine directory. To change the location for the swap file in this configuration, add a pagingfile=path entry in the [386Enh] section of the SYSTEM.INI file that is stored in the machine directory.