locked
Run custom vbs before chosing task sequence RRS feed

  • Question

  • I want to load custom vbs script before selecting task sequence to display hardware info like CPU ram ...

    What will be the best practice to run *.vbs - do I add that to Lite Touch.wsf

    I did try to add:

    Dim objShell
    Set objShell = Wscript.CreateObject("WScript.Shell")
    objShell.Run "msg.vbs"

    to Lite Touch.vbs file, byt no msg is displayed

    • Edited by KarlisBr Monday, September 29, 2014 2:03 PM
    Monday, September 29, 2014 1:40 PM

Answers

All replies

  • I would just add the entry as a UserExit script. http://technet.microsoft.com/en-us/library/dn744274.aspx

    Depending on how fancy you want to get, you could run the bginfo.exe program to display the hardware info in the background.


    Keith Garner - Principal Consultant [owner] - http://DeploymentLive.com

    • Proposed as answer by Keith GarnerMVP Monday, September 29, 2014 9:15 PM
    • Marked as answer by KarlisBr Friday, October 3, 2014 4:21 PM
    Monday, September 29, 2014 9:15 PM
  • Perfect!

    All what i needed was

    UserExit= whateverscriptiwanttoputthere.vbs

    • Marked as answer by KarlisBr Friday, October 3, 2014 4:21 PM
    Friday, October 3, 2014 4:21 PM
  • Looks like after adding
    UserExit=msg.vbs
    to rules
    all other are ignored
    Like SkipAdminPassword and other skip

    any advice?


    ****
    [Settings]
    Priority=Default
    Properties=MyCustomProperty

    [Default]
    _SMSTSOrgName=DinoPC.com
    OSInstall=Y

    UserExit=msg.vbs

    SkipCapture=YES
    SkipAdminPassword=YES
    SkipBDDWelcome=YES
    SkipProductKey=YES
    SkipComputerBackup=YES
    SkipBitLocker=YES
    SkipUserData=YES
    SkipSummary=YES

    SkipComputerName=YES

    SkipDomainMembership=YES

    DeploymentType=NEWCOMPUTER

    SkipLocaleSelection=YES
    KeyboardLocale=0809:00000809
    UserLocale=en-GB
    UILanguage=en-GB

    SkipTimeZone=YES
    TimeZoneName=GMT Standard Time

    UserID=setup
    UserDomain=dinopc.local
    UserPassword=Dinopc2013x




    EventService=http://DINO-SRV-00:9800

    ***

     maybe it's something to do with msg.vbs

    Do I include my vbs in function?

    Function UserExit(sType, sWhen, sDetail, bSkip) UserExit = Success End Function

    Function SystemInfo()

    My custom vbs

    End Function

    • Edited by KarlisBr Monday, October 6, 2014 10:27 AM
    Monday, October 6, 2014 9:01 AM