Jump to content


  • 0
dverbern

SCCM 2012 RTM - Difficulties deploying a VB Script (Invalid data file...)

Question

Hello,

 

Using SCCM 2012 RTM and having trouble deploying a version of SQL using a VB Script.

Importantly, when I run the VB script manually from its network store, it works without problems.

 

The execmgr.log reveals the following:

 

 

Executing program as a script due to file association execmgr 12/06/2012 6:23:42 PM 2768 (0x0AD0)

Invalid data file InstallSQL2000.vbs to execute using file association execmgr 12/06/2012 6:23:42 PM 2768 (0x0AD0)

Raising event:

[sMS_CodePage(850), SMS_LocaleID(3081)]

instance of SoftDistProgramBadEnvironmentEvent

{

AdvertisementId = "P012006B";

ClientID = "GUID:a4bcab4b-6532-484f-84c4-5d0820a7cde0";

CommandLine = "InstallSQL2000.vbs";

DateTime = "20120612082342.569000+000";

DriveLetter = "";

MachineName = "MER-8IKSB85370";

PackageName = "P01000CB";

ProcessID = 3336;

ProgramName = "SQL 2000 for FOCUS Toughbooks";

SiteCode = "P01";

ThreadID = 2768;

Win32ErrorCode = 2147942402;

WorkingDirectory = "";

};

execmgr 12/06/2012 6:23:42 PM 2768 (0x0AD0)

Raised Program Bad Environment Event for Ad:P012006B, Package:P01000CB, Program: SQL 2000 for FOCUS Toughbooks execmgr 12/06/2012 6:23:42 PM 2768 (0x0AD0)

EnterRsRuningState failed to run script InstallSQL2000.vbs 0x87d01106 execmgr 12/06/2012 6:23:42 PM 2768 (0x0AD0)

 

The VBscript itself simply runs a SQL 2000 setup.exe together with some parameters and an answer file. Runs properly when launched manually, but not when deployed via Task Sequence or by requesting it via Self-Service.

 

Any tips would be deeply appreciated!

 

Genuine SCCM Noob

 

Daniel

Melbourne, Victoria

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

have you tested running the script as the local system account, you can test this using a tool called psexec from sysinternals. start a command prompt as system

 

psexec.exe -s cmd.exe

 

and then run your script from within that SYSTEM command prompt.

Share this post


Link to post
Share on other sites

  • 0

Hello Niall! Thanks for your suggestion, I've made a change to our package to use psexec.exe with the switches you suggested, followed by my VBscript. I'll test and see how it goes.

 

Thanks for your suggestion.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.