Novell Home

Workstation Imaging

Novell Cool Solutions: Feature
By Henny van der Ben

Digg This - Slashdot This

Posted: 5 Oct 2005
 

Editor's Note: Last week we published the Scripts for Imaging, which are the scripts used in this solution. They make a lot more sense after you read this article. Sorry for any confusion we caused by publishing them out of order.

Target

  • Standard installation of Windows XP PRO on existing and new workstations
  • In the event of failure: only recover the system (C:) partition, without destroying any other partition.
  • Automatic installation with a complete driver-set for a particular workstation.
  • No need to add drivers or utilities after installing when using this procedure: all-in-one solution.
  • The possibility to make unique images from workstations.
  • Easy to use, even for personnel with little or no linux knowledge.
  • The complete process must be easy to adjust: when software updates are available they can be implemented with little or no effort.

Solution

  • Make a bootable FAT32 partition. Put all the necessary installation ( Windows XP Pro) files on that partition and configure all the files, like WINNT.SIF and SYSPREP.INF, to make the installation fully unattended.
  • Make sure the total image is dynamic, use add-on images.
  • Put all the images on a ZENworks imaging server.
  • Create a menu with the proper options. Make sure the menu is easy to adjust. Place the menu in the TFPT directory. Download the menu when the workstation starts with PXE.

Action

When you use add-on images, it is possible to make logical modules and use them together to construct a complete solution.

This is why I have selected the following basic images:

  • XPSP2NL.ZMG
    • This image holds a bootable Fat32 partition and all the necessary files for a standard Windows XP SP2 installation.
    • Attention: WINNT.SF is not in this image because it is a configuration file! That's why I put it in the TXTFILES.ZMG. (see below)
  • SYSPREP.ZMG
    • This image includes the Sysprep directory and all the necessary Sysprep files.
  • INSTALL.ZMG
    • The extra software that would be installed after the Windows XP Pro installation has completed.
  • TXTFILES.ZMG
    • All the text files (configuration and batch files).
  • ADDINF.ZMG
    • Because there are many different monitors/screens and all of them have to be accessible from all the workstations, I put the INF files in this add-on image.

Overview - How to get it working

  1. Prepare bootable FAT32 image.
    XPSP2NL.ZMG


  2. Prepare configuration and batch files.


  3. Prepare general add-on images.
       SYSPREP.ZMG
       INSTALL.ZMG
       TXTFILES.ZMG
       ADDINF.ZMG


  4. Prepare driver add-on images
       DRIVERS.ZMG


  5. Scripts for Imaging
       GETMENU.S en PROMPT.S
       MENU.TXT
Prepare bootable FAT32 image.

I have chosen to start with a FAT32 partion because this is the easiest way to adjust files. During the installation I convert the partition to the NTFS file system.

The size is 1Gb because I don't like to place an image on a smaller partition. When the image is restored it will be placed on a 10Gb partition.

What do you need to create the image?

  • Working ZENworks environment.
  • Workstation with 2x CD/DVD player.
  • Bootable Windows PE CD/DVD.
    You can download a PEBuilder from: http://www.nu2.nu/pebuilder
  • Installation CD Windows XP Pro.
  • Volume license key for Windows XP Pro.
  • Optional: VMware version 5

Activities:

  1. On the 1st HDD create an active FAT32 partition of 1Gb.
  2. Place the Windows PE CD/DVD in the master CD/DVD player and the Windows XP pro CD in the other CD/DVD player.
  3. Start workstation.
  4. It is not necessary that you start the network support.




  5. Start <CD/DVD>:/I386/WINNT32.exe /makelocalsource.




  6. Choose the option: "New Installation (Advanced)".




  7. Accept the license agreement.




  8. Type the volume license product key.




  9. Don't change anything here.




  10. Skip the upgrade to the NTFS File system.




  11. This is the last screen.




  12. As soon as the installation finishes, it will stop and return you to Windows PE.
  13. Delete the file WINNT.SIF from the directory C:\$WIN_NT$.~BT. The file needs some extra configuration and we're going to do that later on.


The complete directory structure should look like the next picture.



You can leave all the other configurable files.

Reboot the workstation with PXE and make a image with the next command:

Img <IP address> //<IP address>/<UNC path>XPSP2<country>.ZMG

The first image is ready to use.

Configuration and batch files.

You must understand the working of each separate batch file and the sequence in which they are being used. If you don't understand either, the total process will be hard to manage.

After you restored the images and the workstation has rebooted, the installation will start. The file WINNT.SIF from the directory $WIN_NT$.~BT will be used during the first installation.

From the section [GuiRunOnce] in WINNT.SIF I start a new batch file, \SYSPREP\INSTALL.CMD

The batch file INSTALL.CMD calls another batch file CNAME.CMD.

This batch file determines the mac address from the workstation. This will be used as workstation name. The batch file also constructs the configuration file SYSPREP.INF.

When this file has been created, I execute the program SYSPREP.EXE with the option Reseal.

The final installation will take place after the reboot.

From the [GuiRunOnce] section I call the batch file \INSTALL\1BOOT.CMD.

The 1BOOT.CMD places registry settings in HKLM\Microsoft\Windows\CurrentVersion\RunOnceEx.

With these settings it is possible to start other programs, like the Java client, UPHclean, Contextless login, Novell client, ZENworks client.

You can configure these programs to run unattended with the AdminStudio.

1BOOT.CMD also calls \INSTALL\MODIFY.CMD.

MODIFY.CMD places \INSTALL\2BOOT.CMD in HKLM\Microsoft\Windows\CurrentVersion\RunOnceEx.

With 2BOOT.CMD I change registry settings, remove several LNK files, 1BOOT.CMD, MODIFY.CMD en 2BOOT.CMD.

With this knowledge we are ready to start creating TXTFILES.ZMG.

Overview of directories and files and the sequence of using them.

Directory File name
$WIN_NT$.~BT WINNT.SIF
SYSPREP INSTALL.CMD
SYSPREP CNAME.CMD
INSTALL 1BOOT.CMD
INSTALL MODIFY.CMD
INSTALL 2BOOT.CMD

Don't forget to change the pink markings in the files.

WINNT.SIF

[Unattended]
UnattendMode = "FullUnattended"
OemSkipEula = "Yes"
OemPreinstall = "Yes"
OemFilesPath = "X:\i386\$OEM$"
OemPnPDriversPath = "\drivers\audio;\drivers\nic1;\drivers\Chipset;\drivers\misc1;\drivers\misc2;\drivers\misc3;\drivers\misc4;\drivers\misc5;\drivers\video1;\drivers\monitor"
TargetPath = "\WINDOWS"
Hibernation = "No"
FileSystem = "ConvertNTFS"
AutoActivate = "Yes"
Repartition = "Yes"
DUDisable = "Yes"
UnattendSwitch = "Yes"
[GuiUnattended]
AdminPassword = "<PASSWORD>"
EncryptedAdminPassword = "No"
AutoLogon = "Yes"
AutoLogonCount = "3"
OEMSkipRegional = "1"
TimeZone = "110"
OemSkipWelcome = "1"
[GuiRunOnce]
"\SYSPREP\install.cmd"
[UserData]
FullName = "<FULLNAME>"
OrgName = "<ORGANIZATION NAME>"
ComputerName = "PREINSTALL"
ProductKey = "<PRODUCT KEY>"
[Display]
BitsPerPel = "16"
Vrefresh = "75"
Xresolution = "1024"
Yresolution = "768"
[TapiLocation]
CountryCode = "31"
Dialing = "Tone"
AreaCode = "030"
[RegionalSettings]
LanguageGroup = "1"
SystemLocale = "00000413"
UserLocale = "00000413"
InputLocale = "0409:00020409"
[Branding]
BrandIEUsingUnattended = "Yes"
[URL]
Home_Page = "<HOME PAGE>"
Help_Page = "<HELP PAGE>"
Search_Page = "<SEARCH PAGE>"
[Proxy]
Proxy_Enable = "1"
Use_Same_Proxy = "1"
HTTP_Proxy_Server = "<IP PROXY>:8080"
Proxy_Override = "<local>"
[Identification]
JoinWorkgroup = "<WORKGROUP>"
[Networking]
InstallDefaultComponents = "No"
[NetAdapters]
Adapter1 = "params.Adapter1"
[params.Adapter1]
INFID = "*"
[NetProtocols]
MS_TCPIP = "params.MS_TCPIP"
[params.MS_TCPIP]
DNS = "Yes"
UseDomainNameDevolution = "No"
EnableLMHosts = "Yes"
AdapterSections = "params.MS_TCPIP.Adapter1"
[params.MS_TCPIP.Adapter1]
SpecificTo = "Adapter1"
DHCP = "Yes"
WINS = "No"
NetBIOSOptions = "0"
[Components]
AccessOpt = "Off"
Appsrv_console = "Off"
Aspnet = "Off"
AutoUpdate = "Off"
BitsServerExtensionsISAPI = "Off"
BitsServerExtensionsManager = "Off"
Calc = "On"
Certsrv = "Off"
Certsrv_client = "Off"
Certsrv_server = "Off"
Charmap = "On"
Chat = "Off"
Clipbook = "On"
Cluster = "Off"
Complusnetwork = "On"
Deskpaper = "Off"
Dialer = "Off"
Dtcnetwork = "Off"
Fax = "Off"
Fp_extensions = "Off"
Fp_vdir_deploy = "Off"
Freecell = "On"
Hearts = "On"
Hypertrm = "Off"
IEAccess = "On"
Iis_asp = "Off"
Iis_common = "Off"
Iis_ftp = "Off"
Iis_inetmgr = "Off"
Iis_internetdatconnector = "Off"
Iis_nntp = "Off"
Iis_serversideincludes = "Off"
Iis_smtp = "Off"
Iis_webadmin = "Off"
Iis_webdav = "Off"
Iis_www = "Off"
Iis_www_vdir_scripts = "Off"
Indexsrv_system = "Off"
Inetprint = "Off"
Licenseserver = "Off"
Media_clips = "Off"
Media_utopia = "Off"
Minesweeper = "Off"
Mousepoint = "Off"
Msmq_ADIntegrated = "Off"
Msmq_Core = "Off"
Msmq_HTTPSupport = "Off"
Msmq_LocalStorage = "Off"
Msmq_MQDSService = "Off"
Msmq_RoutingSupport = "Off"
Msmq_TriggersService = "Off"
Msnexplr = "Off"
Mswordpad = "On"
Netcis = "Off"
Netoc = "Off"
Objectpkg = "Off"
OEAccess = "Off"
Paint = "On"
Pinball = "On"
Pop3Admin = "Off"
Pop3Service = "Off"
Pop3Srv = "Off"
Rec = "Off"
REMinst = "Off"
Rootautoupdate = "Off"
Rstorage = "Off"
Solitaire = "On"
Spider = "On"
Templates = "Off"
TerminalServer = "Off"
TSWebClient = "Off"
Vol = "On"
WBEMSNMP = "Off"
WMAccess = "Off"
WMPOCM = "Off"
Wms = "Off"
Wms_admin_asp = "Off"
Wms_admin_mmc = "Off"
Wms_isapi = "Off"
Wms_server = "Off"
Zonegames = "Off"
[data]
msdosinitiated = "1"
floppyless = "1"
OriSrc = "A:\I386"
OriTyp = "5"

INSTALL.CMD

@ECHO OFF
REM --------------------------------------------------------
REM H.C. van der Ben 03-07-2005
REM Last Modified
REM --------------------------------------------------------

REM --------------------------------------------------------
REM Make the workstation name from the Mac address
REM --------------------------------------------------------

C:
CD \SYSPREP
CALL \SYSPREP\CNAME.CMD

REM --------------------------------------------------------
REM Reseal
REM --------------------------------------------------------

C:
CD \SYSPREP
\SYSPREP\SYSPREP.EXE -RESEAL -MINI -QUIET -REBOOT

CNAME.CMD

@ECHO OFF
REM -----------------------------------------------------------------------
REM H.C. van der Ben 03-07-2005
REM Last Modified
REM -----------------------------------------------------------------------
SET mac=
SET mac1=
:BEGIN
REM -----------------------------------------------------------------------
REM Find MACAddress
REM -----------------------------------------------------------------------
REM Remove, if exist MACFULL.TXT and CNAME.TXT
REM -----------------------------------------------------------------------
if exist c:\macfull.txt del c:\macfull.txt
if exist c:\cname.txt del c:\cname.txt

REM -----------------------------------------------------------------------
REM Read MAC address and put it in MACFULL.TXT
REM -----------------------------------------------------------------------
for /F "eol=; tokens=2,3 delims=," %%a in ('getmac /nh /FO csv /v ') do (
echo %%~b > c:\macfull.txt
)
REM -----------------------------------------------------------------------
REM Read MACFULL.TXT and put it in CNAME.TXT and in the variable MAC
REM -----------------------------------------------------------------------
for /F "eol=; tokens=1,2,3,4,5,6 delims=-" %%a in (c:\macfull.txt) do (
echo %%~a%%~b%%~c%%~d%%~e%%~f > c:\cname.txt
set mac1=%%~a%%~b%%~c%%~d%%~e%%~f
)
for /F "eol=; tokens=1 delims= " %%a in (c:\cname.txt) do (
set mac=%%a
)
REM -----------------------------------------------------------------------
REM Computername found. Make sysprep.inf
REM -----------------------------------------------------------------------
REM 
ECHO ;SetupMgrTag> sysprep.inf
ECHO [Data]>> sysprep.inf
ECHO     AutoPartition=0>> sysprep.inf
ECHO     MsDosInitiated=0>> sysprep.inf
ECHO     UnattendedInstall=Yes>> sysprep.inf
ECHO.  >> sysprep.inf
ECHO [UserData]>> sysprep.inf
ECHO     ComputerName=%mac%>> sysprep.inf
ECHO     ProductKey=<PRODUCT KEY> >> sysprep.inf
ECHO     FullName="<FULL NAME>" >> sysprep.inf
ECHO     OrgName="<ORGANIZATION NAME>" >> sysprep.inf
ECHO.  >> sysprep.inf
ECHO [Unattended]>> sysprep.inf
ECHO     Unattendmode=FulUnattended>> sysprep.inf
ECHO     DisableDynamicUpdate=Yes>> sysprep.inf
ECHO     OemSkipEula=Yes >> sysprep.inf
ECHO     InstallFilesPath=C:\sysprep\install >> sysprep.inf
ECHO     OemSkipWelcome=1 >> sysprep.inf
ECHO     AdminPassword="<PASSWORD>" >> sysprep.inf
ECHO     EncryptedAdminPassword=No >> sysprep.inf
ECHO     AutoLogon=Yes >> sysprep.inf
ECHO     AutoLogonCount=2 >> sysprep.inf
ECHO     ; AutoActivate=Yes>> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [GuiUnattended]>> sysprep.inf
ECHO     AdminPassword="<PASSWORD>">> sysprep.inf
ECHO     EncryptedAdminPassword=No>> sysprep.inf
ECHO     AutoLogon=Yes>> sysprep.inf
ECHO     AutoLogonCount=2 >> sysprep.inf
ECHO     OEMSkipRegional=1 >> sysprep.inf
ECHO     TimeZone=110 >> sysprep.inf
ECHO     OemSkipWelcome=1 >> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [GuiRunOnce]>> sysprep.inf
ECHO     "\Install\1boot.cmd">> sysprep.inf 
ECHO.   >> sysprep.inf
ECHO [TapiLocation]>> sysprep.inf
ECHO     CountryCode=31 >> sysprep.inf
ECHO     Dialing=Tone>> sysprep.inf
ECHO     AreaCode=030 >> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [RegionalSettings]>> sysprep.inf
ECHO     LanguageGroup=1 >> sysprep.inf
ECHO     SystemLocale=00000413 >> sysprep.inf
ECHO     UserLocale=00000413 >> sysprep.inf
ECHO     InputLocale=0413:00020409 >> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [Identification]>> sysprep.inf
ECHO     JoinWorkgroup=<WORKGROUP>>> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [Networking]>> sysprep.inf
ECHO     InstallDefaultComponents=No>> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [NetAdapters]>> sysprep.inf
ECHO     Adapter1=params.Adapter1>> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [params.Adapter1]>> sysprep.inf
ECHO     INFID=*>> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [NetProtocols]>> sysprep.inf
ECHO     MS_TCPIP=params.MS_TCPIP>> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [params.MS_TCPIP]>> sysprep.inf
ECHO     DNS=Yes>> sysprep.inf
ECHO     UseDomainNameDevolution=No>> sysprep.inf
ECHO     EnableLMHosts=Yes>> sysprep.inf
ECHO     AdapterSections=params.MS_TCPIP.Adapter1>> sysprep.inf
ECHO.   >> sysprep.inf
ECHO [params.MS_TCPIP.Adapter1]>> sysprep.inf
ECHO     SpecificTo=Adapter1>> sysprep.inf
ECHO     DHCP=Yes>> sysprep.inf
ECHO     WINS=No>> sysprep.inf
ECHO     NetBIOSOptions=0 >> sysprep.inf
ECHO.   >> sysprep.inf

REM -----------------------------------------------------------------------
REM Empty SET Parameters
REM -----------------------------------------------------------------------
SET mac=
SET mac1=

1BOOT.CMD

@ECHO OFF
REM --------------------------------------------------------
REM H.C. van der Ben 03-07-2005
REM Last Modified
REM --------------------------------------------------------
REM Java client
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\010 /VE /D "Java client..." /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\010 /V 1 /D "C:\INSTALL\jse.msi" /f

REM ---------------------------------------------------
REM Modify program
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\040 /VE /D " Modify program..." /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\040 /V 1 /D "C:\INSTALL\modify.cmd" /f

REM ---------------------------------------------------
REM UPHclean
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\050 /VE /D "UPHclean..." /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\050 /V 1 /D "C:\INSTALL\uphclean.msi" /f

REM ---------------------------------------------------
REM Contextless login
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\060 /VE /D "Contextless login..." /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\060 /V 1 /D "C:\INSTALL\cl.msi" /f

REM ---------------------------------------------------
REM NWclient32
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\070 /VE /D "Novell Netware Client..." /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\070 /V 1 /D "C:\INSTALL\NWClient\setupnw.exe /u:c:\Install\NWClient\Unattend.TXT" /f

REM ---------------------------------------------------
REM ZENworks agent
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\080 /VE /D "ZENworks For Desktops..." /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\080 /V 1 /D "MSIEXEC /I C:\INSTALL\ZfDAgent.msi /qb REBOOT=Suppress" /f

REM ---------------------------------------------------
REM Reboot system
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\095 /VE /D "Reboot System" /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\095 /V 1 /D "%WINDIR%\SYSTEM32\Shutdown.exe -r -t 5 -f " /f


REM ---------------------------------------------------
REM Reboot system
REM ---------------------------------------------------
%WINDIR%\SYSTEM32\Shutdown.exe -r -t 5 -f

MODIFY.CMD

@ECHO OFF
REM --------------------------------------------------------
REM H.C. van der Ben 03-07-2005
REM Last Modified
REM ---------------------------------------------------
Rem Modify program
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1000 /VE /D " Modify program..." /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1000 /V 1 /D "C:\INSTALL\2BOOT.cmd" /f
REM ---------------------------------------------------
REM Reboot system
REM ---------------------------------------------------
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1010 /VE /D "Reboot System" /f
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\1010 /V 1 /D "%WINDIR%\SYSTEM32\Shutdown.exe -r -t 5 -f " /f 

2boot.img

@ECHO OFF
REM --------------------------------------------------------
REM H.C. van der Ben 03-07-2005
REM Last Modified
REM --------------------------------------------------------

REM --------------------------------------------------------
REM Remove LNK from ALL USERS
REM --------------------------------------------------------
DEL "%AllUsersProfile%\Menu Start\Windows Update.lnk"
DEL "%AllUsersProfile%\Menu Start\Programmatoegang en -instellingen.lnk"
DEL "%AllUsersProfile%\Menu Start\Windows-catalogus.lnk"
DEL "%AllUsersProfile%\Menu Start\Programma's\Windows Movie Maker.lnk"

REM --------------------------------------------------------
REM Remove LNK from DEFAULT USERS
REM --------------------------------------------------------
DEL "c:\documents and settings\Default User\Menu Start\Programma's\hulp op afstand.lnk"
DEL "C:\Documents and Settings\Default User\Menu Start\Programma's\Bureau-accessoires\rondleiding door windowsxp.lnk"
DEL "C:\Documents and Settings\Default User\Menu Start\Programma's\Bureau-accessoires\synchroniseren.lnk"
DEL "C:\Documents and Settings\Default User\Menu Start\Programma's\Bureau-accessoires\wizard programmacompatibiliteit.lnk"
DEL "C:\Documents and Settings\Default User\Menu Start\Programma's\Bureau-accessoires\rondleiding door windows xp.lnk"

REM --------------------------------------------------------
REM Disable IE Auto Updates
REM --------------------------------------------------------
REG ADD "HKCU\Software\Microsoft\Internet Explorer\Main /V "NoUpdateCheck" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Disable .NET password balloon
REM --------------------------------------------------------
REG ADD "HKCU\Software\Microsoft\MessengerService /V "PassportBalloon" /T REG_BINARY /D 0a000000

REM --------------------------------------------------------
REM Disable popup balloons
REM --------------------------------------------------------
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /V "EnableBallonTips" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Enforce Classic shell
REM --------------------------------------------------------
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V "ClassicShell" /T REG_DWORD /D 00000001
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V "ClassicShell" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Control Panel Classic View
REM --------------------------------------------------------
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V "ForceClassicControlPanel" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM No shared documents
REM --------------------------------------------------------
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /V "NoSharedDocuments" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Hide You have mail balloon
REM --------------------------------------------------------
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\UnreadMail /V "MessageExpiryDays" /T REG_DWORD /D 00000000

REM --------------------------------------------------------
REM Disable Antivirus notifications
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Security Center /V "AntiVirusDisableNotify" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Disable Firewall notifications
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Security Center /V "FirewallDisableNotify" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Disable Update notifications
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Security Center /V "UpdatesDisableNotify" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Override Antivirus Monitoring
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Security Center /V "AntiVirusOverride" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Override Firewall Monitoring
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Security Center /V "FirewallOverride" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM No shared documents
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\Explorer /V "NoSharedDocuments" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Disable Fast user switching
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon /V "AllowMultipleTSSessions" /T REG_DWORD /D 00000000

REM --------------------------------------------------------
REM Popup errors on startup
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows /V "NoPopUpsOnBoot" /T REG_DWORD /D 00000001
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows /V "ErrorMode" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Disable Windows Firewall
REM --------------------------------------------------------
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile /V "EnableFirewall" /T REG_DWORD /D 00000000
REG ADD "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile /V "EnableFirewall" /T REG_DWORD /D 00000000

REM --------------------------------------------------------
REM Clear the page file on Shutdown
REM --------------------------------------------------------
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management /V "ClearPageFileAtShutdown" /T REG_DWORD /D 00000001

REM --------------------------------------------------------
REM Disable Security Center Service
REM --------------------------------------------------------
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc /V "Start" /T REG_DWORD /D 00000004

REM --------------------------------------------------------
REM Numlock settings, be carefull with laptops 
REM --------------------------------------------------------
REG ADD "HKU\.DEFAULT\Control Panel\Keyboard /V "InitialKeyboardIndicators" /T "2"

REM --------------------------------------------------------
REM Remove Installation files
REM --------------------------------------------------------
DEL C:\INSTALL\1BOOT.CMD
DEL C:\INSTALL\MODIFY.CMD
DEL C:\INSTALL\2BOOT.CMD

REM ---------------------------------------------------
REM Restart system
REM ---------------------------------------------------
%WINDIR%\SYSTEM32\Shutdown.exe -r -t 5 -f 

$$RENAME.TXT

[\install\nwclient\nls\english]
ldapsd~1.dll="ldapsdkmsg.dll"

You must rename all the long name files with this option.

General Add-on images.

The easiest way to make add-on images is to drag and drop.

Example: TXTFILES.ZMG

Start IMGEXPL.EXE



Browse to the correct directory.



Drag this directory and drop it in the right window pane of IMGEXPL.EXE
All the directories and files will be imported in the add-on image.



Save the add-on image File -> Save As.



The add-on is ready.

Overview of all the used add-on images.

SYSPREP.ZMG



+	SYSPREP
-	FACTORY.EXE
-	SETUPCL.EXE
-	SYSPREP.EXE
-	WINBOM.INI

INSTALL.ZMG



+	INSTALL
+	NWCLIENT	Complete NWCLIENT directory with configured ACU. 
-	CL.MSI	MSI file contextless login
-	JSE.MSI	MSI fileJAVA client
-	UPHCLEAN.MSI	MSI file UPHCLEAN
-	ZFDAGENT.MSI	Default ZFDAGENT

TXTFILES.ZMG



+	$
+	$$
+	$1
-	$$RENAME.TXT
+	$WIN_NT$.~BT
-	WINNT.SIF
+	INSTALL
-	1BOOT.CMD
-	2BOOT.CMD
-	MODIFY.CMD
+	SYSPREP
-	INSTALL.CMD

ADDINF.ZMG



In the INF directory I placed all the monitor INF files.

Driver add-on images

DRIVERS.ZMG



The contents of a driver add-on differs for every computer model/piece of hardware, but the general structure must be the same. In WINNT.SIF (OemPnPDriversPath) you have an example of this structure.

Make sure the name for the driver add-on is unique and without spaces for use in the linux menu.

You can put these images with PXE and the command IMG or use a menu.

For the linux menu see http://www.novell.com/coolsolutions/tip/15578.html

Scripts for Imaging

This section is moved to a separate document.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell