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 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: Image Category Special Tags 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
--------------------------------------------------------------------------------

Wyse logo