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?

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 & "MININT\archive_osd.sms",TRUE) file1.Close

Set fso = Nothing

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

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish