Read a Variable in task squeence RRS feed

  • Question

  • I want to replace some files with a wsf script when the Install Operating System step was done.And the following is details of the wsf ,it always gives a error page ,can somebody correct it?Thanks

    <job id="BgWall">
    <script language="VBScript" src="ZTIUtility.vbs"/> 
    <script language="VBScript">
    Dim fso,BSLetter,env
    Set env = CreateObject("Microsoft.SMS.TSEnvironment")
    Set fso = CreateObject("Scripting.FileSystemObject")
    fso.CopyFolder "Qcs_Pic\DefaultWallpaper\Windows",""&BSLetter&"\Windows\Web\Wallpaper\",true

    • Edited by longgegeno1 Wednesday, April 5, 2017 10:02 AM 123
    Wednesday, April 5, 2017 8:46 AM

All replies

  • The question that jumps out at me is the location of QCS_Pic.  I tend to use full directory paths because issues can arise otherwise.  For example, I might have a vbscript in a particular directory but when I run it using cscript, the working directory usually becomes c:\windows\system32. 

    Wednesday, April 5, 2017 1:40 PM