Re: Run mandatory advertisment



Try this:

On error resume next

strComputer = "."
Set WshShell = CreateObject("Wscript.Shell")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

WshShell.Run "YourEXEGoesHere", VBHide

wscript.quit



"Sven" <Sven@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:77E6B9A0-B2CB-42EB-9ED1-F6A6D033EBD8@xxxxxxxxxxxxxxxx
> Sorry I want to execute the advertisement outside of SMS.
> The problem is that i want to call the advertisement when a cd is
> inserted.
>
> "Jeff Gilbert" wrote:
>
>> Just tell SMS to run the program hidden.
>>
>> or in the vbscript add ", VBHide" after the execute command.
>>
>> "Sven" <Sven@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:45918928-3245-4246-A165-E5330A9ABA19@xxxxxxxxxxxxxxxx
>> > Hello,
>> >
>> > i want to run a mandatory program which is not visible for the user
>> > with a
>> > vbscript. Is there a way to do this? I didn't find anything to do this.
>> > The mandatory adv. is assigned to the computer with a future execution
>> > date.
>>
>>
>>


.



Relevant Pages

  • Re: how long time SMS take to deploy program of a package, Run program Silent Mode
    ... Running setup directly from Distribution Point ... It take a long time to deploy SMS on selective collection, ... If I delete the advertisement, how long time it will take to remove ... I advertise a program of Package "A", ...
    (microsoft.public.sms.installer)
  • Re: Reocurring schedules
    ... before 9:00 pm. SMS will run the patchinstall at next start, say, 7:00 am ... next day base on the advertisement characteristics. ... maintenance window is 9:00 pm for 2 hours and quit without doing anything. ... >>> box in SMS Software Distribution. ...
    (microsoft.public.sms.swdist)
  • Re: Security Updates Failure 11201
    ... Re-occurring schedules are set in the SMS Advertisement properties itself ... reports which reported that 11 XP notebooks were still unpatched. ... Also I don't seem to see a recurring schedule option ...
    (microsoft.public.sms.swdist)
  • Re: Clients do not run advertisements
    ... Microsoft MVP - SMS ... > I double checked the share permissions, ... > Existing packages and newly created packages result in the ... A check of the advertisement status shows the job ...
    (microsoft.public.sms.swdist)
  • Re: return an error code to SMS advertisement
    ... and found that in order for an SMS advertisement to see an error from ... > along - SMS will see the return code from the process. ... >>I have a simple vbscript that I am executing through an SMS advertisement. ... >> it through SMS as an advertisement it shows success even though I know the ...
    (microsoft.public.sms.swdist)