Re: return code of .vbs
- From: "Rune Norberg" <runeno@xxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 23:25:49 +0100
You can't directly associate exit codes with status messages.
If you want more detailed reporting you can take a look at InstallMIF's or
write your own status messages. There is an example in the SMS SDK on how to
generate status messages using the Microsoft.SMS.Event automation object:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/smssdk03/hh/sms/smsref30_ce00.asp
/Rune
"LionPaw" <LionPaw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3810AAAC-AB7E-49B9-9352-49C3C931B2A2@xxxxxxxxxxxxxxxx
> Thank You !! Wworks like a charm. Will save me alot of time.
>
> Extra credit, can I assocaite the quit code like 1 or 5445 to a sms
> MessageID and Description? Or am I in over my head.
>
> --
> misguided hacker
>
>
> "Kristian F. Thomsen" wrote:
>
>> Yes you can; in your VBScript you can use WScript.Quit(errorcode) - e.g.
>> WScript.Quit(1) - This will send return code 1 to SMS, which SMS will
>> recognize as a failure.
>>
>> --
>> ________________________________
>> Med venlig hilsen / Best regards
>>
>> Kristian F. Thomsen
>> MCP, MCAD, MCSD
>> "LionPaw" <LionPaw@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:387FFB5D-D8A2-4AF9-A95B-5BC95F0C3D44@xxxxxxxxxxxxxxxx
>> > We run several items in a .vbs and at the end of the script, we know if
>> > all
>> > succeeded or not, but SMS only cares that the script ran ok, whick it
>> > frequently does, but not all items in the script did. Can I force the
>> > .vbs
>> > to return a failed message code without :
>> >
>> > putting it in an endless loop that exceeds the advertiemsnt limit or
>> > concatinating a bogus command and failing the script
>> >
>> > -- Thanks
>> > misguided hacker
>>
>>
>>
.
- References:
- Re: return code of .vbs
- From: Kristian F. Thomsen
- Re: return code of .vbs
- Prev by Date: Re: I need a cd based distribution point
- Next by Date: SMS 2003 and firewall
- Previous by thread: Re: return code of .vbs
- Next by thread: SMS error and ISA
- Index(es):
Relevant Pages
|
Loading