Skip to content

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

Featured Replies

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

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.

  • Author

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.

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.