Simplest script possible:

<job id="WriteWarning">
   <script language="VBScript" src="ZTIUtility.vbs"/>
   <script language="VBScript">

Option Explicit
RunNewInstance

Class WriteWarning

                Function Main
                                                oLogging.CreateEntry "Warning 
message to log.", LogTypeWarning
                End Function

End Class

   </script>
</job>

Tweak as needed, save as a .WSF file in the "Scripts" folder, run it via the 
task sequence (e.g. "cscript.exe %ScriptRoot%\WriteWarning.wsf").  (Make sure 
the file name, the job ID, and the class name match if you choose a different 
name.)

Thanks,
-Michael

From: [email protected] [mailto:[email protected]] On 
Behalf Of Bain.John
Sent: Wednesday, May 7, 2014 1:22 PM
To: [email protected]
Subject: [MDT-OSD] Is there a way to write scripts that send warnings to MDT ?

I want to write a script that sends a warning message to the mdt summary, it 
seems easy enough to write a script that will cause MDT to stop at failure but 
how do I write a script that only sends a warning.

John



Reply via email to