
19
ENTERPRISE
Appendix B: Deep Freeze Update Script
The entire script explained in the Logon Patch Maintenance section has been included here. It can
be downloaded from the following address:
http://www.faronics.com/Faronics/Documents/DFEnt_
ADUpdateScript.zip
‘ ****************************************************************
‘ *** DF SIMPLE UPDATE SCRIPT SAMPLE ***
‘ *** ***
‘ *** Author: Faronics Corporation ***
‘ *** Date: 12/29/2005 ***
‘ *** ***
‘ *** Associated Files: ***
‘ *** <ComputerName>.mar - Used to indicate patch is running ***
‘ *** COMPLETE-<ComputerName>.fin - Indicates patch complete ***
‘ *** DFC.exe - Deep Freeze Command Line Control ***
‘ ****************************************************************
‘ NOTES:
‘ The following script will turn off Deep Freeze, run updates and turn on Deep Freeze.
‘ ********** GLOBAL ASSEMBLIES **********
Set objNet = CreateObject(“WScript.NetWork”)
‘ ********** GLOBAL VARIABLES **********
‘ Modify the UNC path to match that of your server envrionment.
strUNCPath = “\\FarDemo.local\NETLOGON\”
strMarkerFile = objNet.ComputerName & “.mar”
strMarkerCompleteFile = “COMPLETED-” & objNet.ComputerName & “.fin”
‘ ********** MAIN **********
‘ Calls all of the other routines...
If UpdateRunning = True Then
RunPatch
RemoveMarker
BootFrozen
Else
If UpdateComplete = False Then
If UserPatchPrompt = True Then
InsertMarker
If Frozen = True Then
BootThawed
Else
RunPatch
RemoveMarker
BootFrozen
End If
Else
‘ Exit Script
End If
Else
‘ Exit Script