How can I create the archive_osd.sms file as part of a Microsoft Systems Management Server (SMS) 2003 Operating System Deployment (OSD) Feature Pack deployment phase?

John Savill

August 27, 2006

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. You can use the following script, which you can download here. You can call the script from an OSD phase (the state restore phase is the most logical option), and it will create the archive_osd.sms file in the correct location and stop the deletion of the minint folder structure.

    
Option Explicit    
Dim targetPath, env, file1, fso  set env = CreateObject("OSD.Environment")    
targetPath = env("OSDTARGETDRIVE")  Set fso = CreateObject("Scripting.FileSystemObject")  set file1 = fso.CreateTextFile(targetPath & "MININTarchive_osd.sms",TRUE)  file1.Close    
Set fso = Nothing  

The figureshows this stop_minint_delete.vbs from being called from the state restore phase.

Read more about:

Microsoft

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like