RE: Failed software distribution



Hi Azwan,

Did you bundle the cscript.exe file with your package? I noticed that from
your log that it was missing from the command line:

Command line: scanallstate.vbs

You can copy the cscript.exe file from your %WINDIR%\System32 directory and
bundle it with your package. Then, your command line should read something
like:
cscript.exe scanallstate.vbs

Hope it helps!
Scot

"Azwan" wrote:

Hi,

I've created a package and program that should run a VB script to
client
computer. I've done the normal thing such as create package, create
program
and update the distribution point.

Whn I distribute the package, client would received the notification
that a
program is about to run, however, when the times come, my program
failed. The
error in the Advertisement Status as follow:
=====================================================

An error occurred while preparing to run the program for
advertisement
"TML2000A" ("TML0000B" - "ScanState"). The operating system reported
error
2147942402: The system cannot find the file specified. Additional
program
properties:
Command line: scanallstate.vbs
Working directory:
Drive letter (? = any):

Possible cause: This message most commonly occurs when the program's
command-line executable file could not be found, when a required drive
letter
connection to a distribution point could not be established, or when
the
program is configured to use the SMS Software Installation Account but
the
account is not specified, could not be found, or does not have the
appropriate permissions.
Solution: Check each of the items listed above.

=====================================================

I can confirmed that in my SMSPKGF$ folder the package folder is
updated
with my script. The Advanced Client Network Account Access also
configured correctly.I've also able to run the script manually from
the client
computer.

Below is part of the execmgr.log from failed client
=====================================================
<![LOG[Failed to get associated command string for .vbs, error code
80070002]LOG]!><time="16:42:26.267+000" date="07-17-2007"
component="execmgr"
context="" type="3" thread="1276" file="fileassocexecution.cpp:266">
<![LOG[Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramBadEnvironmentEvent
{
AdvertisementId = "TML2000C";
ClientID = "GUID:44FDBD46-C60D-4A9D-844E-2C6FB40FA9F9";
CommandLine = "scanstate.vbs";
DateTime = "20070717084226.283000+000";
DriveLetter = "";
MachineName = "KL33IT8785";
PackageName = "TML0000D";
ProcessID = 1100;
ProgramName = "Scan";
SiteCode = "TML";
ThreadID = 1276;
Win32ErrorCode = 2147942402;
WorkingDirectory = "";
};
]LOG]!><time="16:42:26.283+000" date="07-17-2007" component="execmgr"
context="" type="1" thread="1276" file="event.cpp:522">
<![LOG[Raised Program Bad Environment Event for Ad:TML2000C,
Package:TML0000D, Program: Scan]LOG]!><time="16:42:26.283+000"
date="07-17-2007" component="execmgr" context="" type="1"
thread="1276"
file="executioncontext.cpp:595">
<![LOG[EnterRsRuningState failed to run script scanstate.vbs
0x8000910a]LOG]!><time="16:42:26.283+000" date="07-17-2007"
component="execmgr" context="" type="2" thread="1276"
file="executionrequest.cpp:2407">
<![LOG[Fatal error 0x8000910a enountered for program Scan. This
program will
not retry.]LOG]!><time="16:42:26.298+000" date="07-17-2007"
component="execmgr" context="" type="1" thread="1276"
file="executionrequest.cpp:2551">
=====================================================


.



Relevant Pages

  • Failed software distribution
    ... I've created a package and program that should run a VB script to ... client would received the notification ... account is not specified, could not be found, or does not have the ...
    (microsoft.public.sms.admin)
  • Re: FreeWrap using libraries
    ... Wrap the script with the following command. ... The ZIPOBJDIR variable defined in the freeWrap Make files needs to be set to ... To use "package require" you would need to create a pkgIndex.tcl file, ...
    (comp.lang.tcl)
  • Re: Ran ccmclean on site server, what are implications???
    ... i ran the synctool command line in a cmd running under system account using ... The sync tool only has to retrieve the files from the distribution share ... only created the package folder. ... baffles me that the advanced client that resides on the sms ...
    (microsoft.public.sms.setup)
  • Re: Cant get jabber to start on installation
    ... > I have managed to get jabber installed, and running it from the command ... > specifically) trying to run it from the init.d script is another matter. ... fail to start again because the PID file exists. ... Debian package works around this by checking for a stale PID file (and ...
    (Debian-User)
  • Re: What are the core packages for a desktops Linux desktop distribution?
    ... Your use of the term package is a bit confusing ... You'll need the mount command as well. ... As for Gnome, if you are going for minimalism, I ... wouldn't install it - you don't need it. ...
    (comp.os.linux.misc)