Deploying Microsoft Windows 95 and Microsoft Windows NT Using Microsoft Systems Management Server

Overview

The material in this session assumes that you meet the following prerequisites:

Objectives

At the end of this session, you will be able to:

Phase 1: Plan the Project

A major key to successful upgrades is knowledge of what can and cannot be done, and a clear picture of your desired end result.

It is essential that you understand SMS product and client limitations and are completely familiar with the Windows 95 and Windows NT setup programs.

SMS provides the delivery mechanism, not the installation technology. For a fully automated upgrade, you need to supply the appropriate unattended answer files. If you are unable to do a fully automated install or upgrade from a command line, then SMS will not be able to do it either.

Know What Clients Can Be Upgraded

The target client must be participating in the SMS site. Inventory must be as current and up-to-date as possible.

It is not possible to upgrade OS/2® clients to either Windows 95 or Windows NT.

It is also not possible to upgrade Windows 95 to Windows NT 4.0. If an upgrade path does not exist without SMS, then it also will not work with SMS. It is possible to upgrade MS-DOS® operating system version 5.0 or later, Windows 3.1x, and Windows for Workgroups 3.1x operating system with integrated networking to either Windows 95 or Windows NT.

SMS does not support shared or networked Windows installations. If you have a shared or network version of Windows and wish to do an upgrade with SMS, consider rolling back the clients to MS-DOS.

SMS also does not support a single computer with more than one operating system installed on it. These are known as dual-boot computers. If you have dual-boot computers in your environment and want them to be SMS clients, you must choose the operating system under which you will install the SMS client and make it your primary operating system. SMS client functionality will not be available under the secondary operating system.

In most cases, it is not possible to upgrade the operating system and applications in one package. Remember, if you cannot get it to work from a single command line, it will not work through SMS.

Study Product Information

There are several sources of information for installing Windows 95 and Windows NT. Information and materials are updated regularly on the Systems Management World Wide Web (the Web) page. Current white papers of interest are:

The Windows NT Workstation and Windows 95 resource kits contain invaluable information on the setup process of the products, including customization information.

There is a Deployment Guide for both Windows NT Workstation and Windows 95. These documents go further in identifying potential pitfalls and giving step-by-step scenarios and examples.

The TechNet compact disc contains the latest bulletins, white papers and Knowledge Base articles. Make sure there are no known issues with your upgrade plans.

The Microsoft Premier Technology News Flash may include information such as common questions and answers, case studies, and Knowledge Base articles.

In addition, other Internet resources may have helpful information for you. Spend a few minutes browsing the Web to see if there are any news groups or Web sites which may help you.

Desktop Specification

There are multiple configuration options for both Windows 95 and Windows NT. It is very important to identify the configuration(s) that suit your environment and needs before you begin. You should create written specifications for both Windows 95 and Windows NT Workstation 4.0 before commencing any other work. Items to include and consider follow:

Setup options

Determine the extent to which you want to allow users to setup and configure their own environment during initial install. For example: Do you want the user to setup the Microsoft Exchange mailbox using the Microsoft Exchange Wizard at time of setup? Do you want to fully automate the setup?

Networks

Address all aspects of Windows 95 and Windows NT Workstation 4.0 networking options. For example: Default protocol, redirector, and services, and, additional protocols, redirectors, and services.

Local security

Address all aspects of Windows 95 and Windows NT Workstation 4.0 local security options. For example: Will the users have access to their C drives? Will you require users to use local password protected screen savers?

Policies

Address all aspects of Windows 95 and Windows NT Workstation 4.0 policy options. For example: Are policies currently in use? How many groups of users are there, and to which parts of the desktop will you allow access for each of these user groups?

Profiles

Address all aspects of Windows 95 and Windows NT Workstation 4.0 profiles. For example: Is it important for a user to see his or her normal desktop environment when working on another computer? Will hardware profiles be required?

Local applications

Address aspects of locally installed applications. For example: Which applications in addition to the operating system will be stored locally on all desktops? Will an anti-virus program be installed locally on all desktops?

Remote applications

Address aspects of network applications. For example: In addition to the operating system, which applications will be delivered from remote network servers? Will you install Microsoft Office 97 office suite on a network server for desktop users? Do you have applications that require Open Database Connectivity (ODBC)?

Private and public data

Address the storage of public and private data. For example: Will you give desktop users access to network servers with private data stores, access to shared data stores, or both?

Once you have considered all of the previous points, create a specification document for each operating system and configuration. This document will be used as a guideline for the rest of the project.

Phase 2: Identify Target Computers

Whether you are upgrading from Windows for Workgroups to Windows 95 or simply updating Windows NT clients to a newer version, there is a basic process to follow and common issues to resolve.

The success of an operating system upgrade depends on the accuracy and completeness of the list of target computers in the SMS database. If computers in the list have incompatibilities in software or hardware, the upgrade will fail. If the SMS database is not accurate or complete, computers that should be upgraded may be missed.

The administrator should take the following steps to ensure an accurate list of target computers:

  1. Verify the integrity of the SMS database.

  2. Determine the hardware requirements you want to set for your enterprise and run an appropriate query against the SMS database.

  3. From the query results, build a machine group or groups for the identified target computers.

  4. Check these computers for software that is incompatible with the operating system upgrade you will be doing.

SMS Database Integrity

Target computers are determined by querying the SMS database. Even if your queries are perfect, you will not get accurate results if the integrity of the SMS database is not maintained. There are three areas you should check to make sure the database is completely up to date.

Make sure each client runs SMSLS or RUNSMS

Users should have the Smsls.bat file in their logon script or they should run Runsms.bat. If one of these files is not run, SMS is not installed on the client computer and inventory is not collected. Make sure users are not exiting out of the logon script before inventory collection can be completed. For Novell® NetWare® users, Smsls.scr should be added to the system login script.

Check inventory frequency

It is important that the computer inventory is up to date in the SMS database before you run a query for target computers. It is recommended that you increase hardware inventory collection frequency to once per day. Also, check to make sure your users are logging on at least once per day. You may have users who log on once and stay logged on for several days. Inventory is only collected at logon, through the logon scripts, or when the user runs Runsms.bat.

Drop unused computers from the database

Clean out unused computers from the database before running queries for the target computer. Check the database for computers that have not reported inventory for several collection periods. You may need to manually run inventory collection at the computer that is not reporting. Either log on to have the Smsls.bat script run or connect to \\logon server\SMS_SHR and run Runsms.bat.
Note   If the information in the database is questionable, delete the site history files. These files are located in Sms\Site.srv\Inventry.box\History and have an .hms extension. Deleting these files will not compromise the integrity of the database but it will ensure that the Management Information Format(MIF) files sent to the database are complete rather than delta-MIFs which contain only information that has been changed.

Client Compatibility

Build a basic query to find computers that meet the hardware requirements for the operating system you are upgrading.

Consider what parameters the hardware needs to meet with respect to:

Also, if you have client computers that are not on the hardware compatibility list (HCL) for the operating system upgrade you are doing, then consider checking for those clients in order to exclude them.

Make sure that the client computer is running an upgradable operating system.

Software Compatibility

Before upgrading a computer to a new operating system, it is necessary to verify that the target computers do not run software unsupported by that operating system, whether it is Windows 95 or Windows NT. In addition, there are some programs that are supported by the operating system, but that should not be running during setup. For example, many virus-checking terminate-and-stay-resident programs (TSRs) are not compatible with Windows 95 Setup.

For a successful upgrade process, try one of these options:

User restrictions

You may need to build separate machine groups for users with specific needs. For example, if a set of computers is used by outside contractors who have security restrictions, they may receive a different installation than full-time employees.

Also, different departments may use different user profiles that can be established during the operating system upgrade.

Build Machine Groups

It is possible to run a query and distribute an operating system upgrade job in one step, within the Job Details dialog box. However, by running the query first, you can examine the list of clients that will receive the job and make any changes necessary.

Build a machine group

After you run the query, you can build a machine group by copying the query results to a given machine group. A machine group is a selection of computers in the SMS database. You will probably build several machine groups for different installations. These will be your target groups for the jobs to run the operating system upgrade.
Note   In the inventory, the MS-DOS version for Windows 95 is recorded as version 7.0. Systems Management Server does not report an MS-DOS version for Microsoft Windows NT computers. This affects queries searching for MS-DOS versions.

To build a machine GROUP

  1. In SMS Administrator, open the Machine Groups window.

  2. From the File menu, click New and create a machine group.

  3. Type an appropriate name for the machine group and then click OK.

  4. From the File menu, click Execute Query, and run the query for this group of computers.

  5. Select all the computers in the Query Results window.

  6. From the File menu, click Add To Group to add the query results to the machine group. You can also drag or paste the query results into the machine group.

Phase 3: Testing

Testing is an investment of time that will pay huge dividends when you carry out the real upgrade. Testing has been proved to make a difference in the success rate you will see. There may be other areas that should have distinct testing phases, but following are three testing phases that should be carried out:

Lab Testing on Target Hardware

Set up a lab with computers that match the typical target client. Many times installing a new client computer will not identify real-world problems. If possible, backup and restore a few real client computers to work with.

The following guidelines should help you complete a successful lab test:

Software Testing for Compatibility

Make sure that any software used on the target clients is compatible with the new operating system.

Areas to test

Consider the following areas in testing for software compatibility:

Incompatible software

There are different categories of software that are incompatible with Windows 95 and Windows NT. Each category has a different solution.

TSRs Incompatible with Windows 95 Setup

There are a few TSRs that cause Windows 95 Setup to fail. These TSRs may run fine once Windows 95 is installed, but should be stopped or removed before the Windows 95 upgrade is run.

TSRs Incompatible with Windows 95

There are certain TSRs that are incompatible with Windows 95. Windows 95 Setup will remove these TSRs from Autoexec.bat.

Applications Incompatible with Windows 95

There are several applications that are not compatible with Windows 95. You may want to determine whether any clients have these applications installed before running the Windows 95 upgrade. You can:

See the Programs.txt file included with Windows 95 for specific information regarding application and TSR incompatibilities.

Upgrading Windows for Workgroups to Windows NT Workstation

If 32-bit file access and/or disk access is enabled on Windows for Workgroups, the Windows NT setup may hang. To disable 32-bit file access (VFAT), edit the System.ini file and remark the following lines from the [386Enh] section:

device=vfat.386
device=vcache.386

To disable 32-bit disk access, edit the System.ini file and remark the following lines from the [386Enh] section:

device=*BLOCKDEV
device=*PAGEFILE
device=*int13
device=*wdctrl

Create and Test Unattended Scripts

Use the specification document created in Phase 1 to identify the types of installation scripts you need to create and test. The deployment guides and the resource kits provide samples and instructions to define automated and custom setup options. Often, it is possible to find an .inf file for a particular function on the Web.

Do you need to configure the application after it is installed? Is there a way to automate that process?

Develop the desktop look and feel. Do you want to add or remove any applications or desktop icons installed by default? Do you want to add your company logo to the wallpaper?

If creating a fully automated installation script, it is possible to modify the SMS Help Desk options to enable remote control by default. See Knowledge Base article: “Enabling Help Desk Options for MS-DOS Clients” ID: Q122399.

Phase 4: The Pilot Roll-out

No matter how well the lab testing phase completes, do not skip the pilot test. This is the first time you come into contact with users and they will introduce a complete new set of variables into the process that never came up during testing in an isolated lab.

Pilot Testing

A pilot test is a check against the lab testing. You are in a real production environment, but limit the upgrade to a small set of computers. There are different philosophies about how to choose the pilot group.

Make sure that all computers in the pilot test have recently reported inventory.

Set Expectations

Communication is a vital factor in the success rate of a production deployment. Users who are uninformed may press F3 during a Windows 95 unattended installation, because they did not expect it to happen.

Management

Management personnel should understand that there will be some client computers that cannot be installed automatically and will need to be manually installed. The more and better testing that is done prior to deployment, the lower the failure rate will be.

Some ways to manage failures are:

Users

Users need to be informed in the following areas:

Windows 95 Deployment

Customize Windows 95 Setup Files

The Windows 95 Setup program uses a setup .inf file. This file provides answers or defines which dialog boxes will appear to the user.

Answer files for Windows 95 Setup

If no .inf is specified, the Msbatch.inf file is used. SMS includes Win95.inf in the \Site.srv\Maincfg.box\Mstest directory. The Win95.pdf ,which ships with SMS 1.2, references Win95.inf.

The Win95.inf file included with SMS has been designed specifically for batch installations using SMS. You can use this file unmodified for a standard, hands-free upgrade to Windows 95. If you want to take advantage of this prebuilt file, but still want to make some changes, the file can be edited manually. The file is well commented and includes most of the common installation options, such as specifying the Product ID, and hands-free installation settings.

Utilities to build a customized .inf File

There are several programs that enable you to create or modify a custom Msbatch.inf format file. Available utilities include:

Utility Function Location
Batch.exe ·  Change default Windows installation directory.

·  Set network options.

·  Set automatic reboot.

·  Set uninstall information.

·  Specify a printer.

·  Choose specific software components.

Windows 95 compact disc under Admin\Nettools\
Netsetup
Infinst.exe Take .inf files built for individual components, such as the Policy Editor or additional hardware components, and add them to an existing Msbatch.inf file. Windows 95 compact disc under the Admin\Nettools\
Netsetup
Infgen.exe Remove the Inbox from the desktop, removing MSN™ The Microsoft Network Online services from the desktop, or disabling online registration INF Generator available on the Internet.

Parameters that you may want to change are documented in the Windows 95 Resource Kit, Appendix D, “Msbatch.inf Parameters.”

Notes regarding Batch.exe

Notes regarding INF Installer

INF Installer (Infinst.exe) requires two directory paths:

Notes regarding INF Generator

INF Generator (Infgen.exe) includes the .INF Installer functionality and adds the ability to set other options, such as removing the Inbox from the desktop, removing MSN The Microsoft Network from the desktop, or disabling online registration. It is also designed to build multiple .inf files when there are user-specific items such as Transmission Control Protocol/Internet Protocol (TCP/IP) configuration settings to be specified. INF Generator requires more setup than INF Installer, as well as some additional input files. If you need the additional functionality, use INF Generator; otherwise, use INF Installer. For more information, see the Infgndoc.doc file included with INF Generator.

Both INF Installer and INF Generator require an administrative installation of Windows 95. Netsetup is a utility that allows the administrator to build an administrative share with the decompressed Windows 95 files.
Hint   It is also possible to use one of the .INF utilities (Batch, Netsetup, Infinst, and Infgen) to produce the necessary settings in a temporary Msbatch.inf file and then paste them into the Win95.inf file using a text editor.

Prepare the Distribution Source

There are two ways to set up the package source: with compressed files or with decompressed files.

Using decompressed Windows 95 files

With the Netsetup program (see the Microsoft Windows 95 Resource Kit for details) you can install a source directory for Windows 95 by decompressing the .cab files and setting the appropriate permissions. This directory can then be used to build a custom Msbatch.inf file. Once this file exists, you can run either of the INF utilities. If you are editing .inf files other than the main .inf file, you will need to distribute the decompressed set of Windows 95 files.

Using compressed Windows 95 files

If possible, you will want to distribute the compressed Windows 95 files because they take about 30 MB of disk space versus 90 MB for the decompressed set.

To use the compressed files:

  1. Build an Msbatch.inf file with required components added.

  2. Paste the changes made to the Msbatch.inf file into Win95.inf.

  3. Copy the Win95 directory from the Windows 95 compact disc to a source directory.

Put Win95.INF into the source directory

For either a compressed or decompressed source, copy the Win95.inf (or specified Setup.inf file) to the Windows 95 source directory.

Run Scandisk

Although Scandisk is normally run by Windows 95 Setup, it is recommended that you run it separately when using SMS to complete the installation. This is because Scandisk can produce message boxes that require user interaction. Scandisk is particularly recommended if the computers to be upgraded are using the DoubleSpace® disc compression utility or Stacker.

To run Scandisk

  1. Create a Scandisk package. In the Packages window, on the File menu, click New. The Package Properties dialog box appears.

  2. Click Import, and then click Scandisk.pdf. This file is not included on the SMS compact disc, but is available with the Windows 95 Deployment Guide.

  3. In the Source Directory text box, type the full Universal Naming Convention (UNC) name of the source directory (in this case the directory with the Scandisk.exe file).

  4. Set the command line as follows:
    SCANDISK /all /autofix /nosummary /surface
    

    Where:

    /all - all drives
    /autofix - fixes errors
    /nosummary - does not stop if errors are encountered
    /surface - perform surface scan
    
  5. Create a Scandisk job by dragging the package over the target machine group.

  6. Monitor the job status. Select the Scandisk job in the Jobs window and access the Job Properties dialog box. Click Status, and view the Sending and Working columns in the Job Status dialog box.

    After the job has had a chance to propagate, you can check on details of the job. In a test situation this could take as little as 30 minutes. In your production network you will need to allow more time.

    When the Overall Job Status changes to Complete, the job has been distributed and run on all target computers. The total duration of the job depends on a number of factors, including parameters set for the job and the behavior of your users (who must run Package Command Manager to receive the package).

  7. When the command has completed it leaves a C:\Scandisk.log file that can be collected later by the Inventory Agent. View the Scandisk.log file using SMS Administrator once inventory has been collected, or manually view the files on each client.

Run Windows 95 Upgrade

The Win95.pdf is located in the \Primsite.srv\Import.src\language code directory of the site server. The Win95.pdf includes several built-in command lines that provide both manual and automated upgrades of computers running MS-DOS, Windows 3.1, Windows 95, and Windows for Workgroups. These command lines make use of helper programs (Dos2w95.exe, Win2w95.exe, and W95tow95.exe) to fill in values for client-specific items, such as user name or computer name.

For MS-DOS and Windows 3.x clients, the helper programs also set the Sms.ini upgrade flag and reset the Client.bat file. The SMS upgrade flag is used to indicate that the SMS client components should be upgraded for the new operating system. When the client components are upgraded, the Client.bat file is set correctly for a Windows 95 client.
Important   All applications should be closed on the client computer before beginning the upgrade process. If an application is running, Windows 95 Setup will close it and prompt the user to save data.

Command line switches

The command lines include the following parameters:

How the helper programs work

The helper programs are included with Systems Management Server and are located in the \Sms\Logon.srv\mstest directory. The helper programs follow this process:

  1. The helper program checks the .inf file for certain values. If the value is left blank, the helper program attempts to find the default value in client files, such as System.ini, the Windows 95 registry, or Sms.ini.

  2. On Windows or MS-DOS clients, the helper program sets the SMS client upgrade flag.

  3. The helper program starts Windows 95 Setup using the modified .inf file.

  4. The helper program terminates once Windows 95 Setup is successfully started.

The helper programs will attempt to determine default values for the following fields:

If the helper program cannot determine a default value for a required client specific value, the user will be prompted for a value during Windows 95 Setup.

Evaluate Distribution Results

When a Systems Management Server upgrade job completes it indicates that the command has been run at the client computer. It does not indicate whether or not Windows 95 is running successfully on the client computer.

Windows 95 query

Use the Computers By Operating System prompted query to look for client computers that report Windows 95 as their operating system. Make sure that each client inventory has been reported and processed before you run the query. Ideally, the query results will return every computer that received the job. These will be included in the machine group you specified in the Target Computer section of the Run Command On Workstation job.

Unsuccessful upgrades

There are a few reasons for an unsuccessful upgrade:

Windows 95 installed, but fails to run

If the user cannot run Windows 95 on the client computer after an installation, the most likely problem is a hardware incompatibility. Windows 95 Setup is able to complete because it is a simplified version of the operating system; however, the final version may have conflicts with certain hardware configurations. Consult the Windows 95 Hardware Compatibility List for more information.

Windows NT 4.0 Deployment

Methods for Automating Installation

Windows NT Workstation installations can be customized, as well as fully automated. The Package Command Manager service, which runs on Windows NT–based computers, can complete an installation entirely in the background.

The Windows NT Workstation resource kit

The Microsoft Windows NT 4.0 Workstation Resource Kit contains most of the information needed to successfully configure, customize and automate a Windows NT 4.0 deployment.

Using Package Command Manager

By default the Package Command Manager utility (Pcmwin32.exe) is installed on computers running Windows NT Workstation. Any packages that are executed using this utility run in the security context of the user logged in at the time of package execution. To complete a Windows NT upgrade:

Using Package Command Manager service

SMS 1.2 Service Pack 2 supports installing Package Command Manager as a service on Windows NT Workstations. Installation procedures and documentation for the Package Command Manager service is provided with the service pack and is also available on http://www.microsoft.com/smsmgmt. To complete a Windows NT upgrade using this service:

Notes

Setup Files

Sending a Windows NT Workstation version 4.0 upgrade job using SMS requires:

Windows NT Workstation Package Definition File

This Nt40.pdf file is located on the Windows NT Workstation 4.0 compact disc in the platform directory of your choice or at: http://www.microsoft.com/smsmgmt/pdfs.htm

Unattend script

Ntupgrd.scr is supplied in the \Sms\Site.srv\Maincfg.box\Mstest directory of an SMS 1.2 installation. This file must be renamed to Ntupgrd.400.

Windows NT Setup wrapper files

SMS 1.1 requires an updated wrapper file, included with SMS 1.2. The wrapper files are operating system and platform-specific and are located in the \Sms\Site.srv\Maincfg.box\Mstest directory. If you do not have access to an SMS 1.2 compact disc, contact Microsoft Technical Support to get a copy of the files.

Wrapper files are as follows:

Retail version of Windows NT Workstation 4.0

A fully licensed, retail version of Windows NT Workstation 4.0 must be used. A limited license, developer edition or OEM version will not work.

Prepare the Source Directory

It is possible to use the Windows NT Workstation compact disc as the source for the package, but this is not recommended. The compact disc contains all platform versions of Windows NT as well as the debug symbols for each platform. Keep in mind that SMS requires hard disk space of at least 4 times the amount of the source files to distribute the package.

To prepare the source directory:

Complete the Installation

When a Systems Management Server upgrade job completes it indicates that the command has been run at the client computer. It does not indicate whether or not Windows NT is running successfully on the client computer.

Windows NT query

Use the Computers By Operating System prompted query to look for client computers that report Windows NT as their operating system. Make sure that each client inventory has been reported and processed before you run the query. Ideally, the query results will return every computer that received the job. These will be included in the machine group you specified in the Target Computer section of the Run Command On Workstation job.

Test the installation

Test the client install to ensure that the upgrade has been completed successfully. Make sure the computer can:

© 1997 Microsoft Corporation. All rights reserved.

The information contained in this document represents the current view of Microsoft Corporation on the issues discussed as of the date of publication. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of publication.

This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.

Microsoft, DoubleSpace, MS-DOS, Windows, and Windows NT are registered trademarks and BackOffice and MSN The Microsoft Network are trademarks of Microsoft Corporation.

Other product or company names mentioned herein may by the trademarks of their respective owners.