Understanding the Script File Structure
A WDM script (.rsp) file is one of two components that make up a WDM Package:
- The Package script (.rsp) file (ImgXL24.rsp)
- The Package folder that contains the required application or image files (ImgXL24)
The Package script (.rsp) file must conform to a specific structure and should contain two sections:
Version
The Version section contains information required for package registration and distribution purposes. The following describes each of the elements of the Version section:
- [Version] - Required section header
- Number= - Must be the same as the Package Script File name
- Description= - A brief description of what the Package is to achieve
- OS= -The Operating System the Package is intended for
- USE_REMOTE= - YES/NO, specifies whether or not a Remote Repository (if it exists) should be used. Default is YES. (OPTIONAL)
- DEPLOYEDSW= - YES/NO defines whether package should be added to the WDM deployed package table for device. Default is YES. (OPTIONAL)
- Category= - The WDM Package Manager category in the GUI where the Package will reside. Note if the category does not exist it will be created.
Image Category Special Tags
- [Version] - Required section header
- ImageSize= - size of image in Megabytes
- BootFloppy= - name of bootfloppy; default = RAPPORT
- Use_PXE= - YES/NO default value is YES for all scripts with Category=IMAGES
- IMAGE= - name of image file to be used; by default WDM uses the first file in file found in the package folder (excluding CRC.text)
- Command= - the image operation to be performed
Script
The Script section contains the commands that are carried out when the script is distributed. Each command is executed in order as they appear within the [Script] section.
Recommended Scripting Template
[Version]
Number=Script name (matching the RSP_ file name and Package folder name)
Description=Detailed description with version number and valid images
OS=XX
Category=Other Packages
[Script]
Written by: Your Name and Company
; ....................................................................................
; >Check the Operating System
; >Check the Image Version
; .....................................................................................
CO "NT"
CI "XXXX"
; .....................................................................................
; >Check Free Space
; >Check Minimum Memory, if necessary
; >Check User, if necessary
; .....................................................................................
CF "X" "XXX"
CR "XXXX"
CU "XXXXXXXX"
; .....................................................................................
; > Query User then lock Workstation
; .....................................................................................
QU
LU*
; .....................................................................................
; >Add Commands Here
; .....................................................................................
;SF "<regroot>\files\x.xxx" "c:\yyyy\zzzz"
;EX "c:\yyyy\zzzz"
;DF "c:\yyyy\zzzz"
;MR "<regroot>\xxxx.reg"
;SP "c:\windows\system.ini" "DISPLAY" "screen-size" "640"
; .....................................................................................
; >End Lockout
; .....................................................................................
EL*
; .....................................................................................
; >Reboot, if necessary
; .....................................................................................
RB
--------------------------------------------------------------------------------