myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


ReRun Advertisement on a Schedule

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> ReRun Advertisement on a Schedule Page: [1]
Login
Message << Older Topic   Newer Topic >>
ReRun Advertisement on a Schedule - 7/31/2008 5:38:33 AM   
ibit

 

Posts: 13
Score: 0
Joined: 2/6/2008
Status: offline
Hi,
I am trying to achieve a scenario in SMS 2003 that I have already implemented in SCCM 2007, which is to rerun a particular Advertisement on a schedule. This advertisement is targeted to a collection with a substantial amount of resources.
What I have done so far is that I used the excellent “SMS Tools” addon for the SMS 2003 console and edited the “smssend.vbs” slightly with the hardcoded Advertisement ID (I don’t want a prompt) ... This works when I right click the Collection and use the ReRun Advertisement function from within the SMS console.
 
However when I create a package/program to allow me to schedule the Rerun of the advertisement, using this command line taken from the registry :
“C:\WINDOWS\system32\cscript.exe C:\WINDOWS\smssend.vbs RERUNADVERT ##SUB:collectionID## 2 ##SUB:__Server## ##SUB:__Namespace## //NoLogo”
I get the following error:
“Querying collection for membership...
While trying to connect to WMI on \\ an error occurred. Error: -2147217375. Desc
ription:”
 
I have tried several variations of the above command, specifying the actual Collection ID rather than the variable etc, but to no avail. I am afraid I don’t have enough understanding in this area.
 
I was wondering if someone else had already tried to do this and was more successful than me or if there is another way altogether to achieve the scheduled rerunning of Advertisements in SMS 2003
 
Any help or advice would be greatly appreciated.
Thanks,
iBiT.
Post #: 1
RE: ReRun Advertisement on a Schedule - 7/31/2008 8:41:54 AM   
iglatz


Posts: 848
Score: 23
Joined: 9/21/2001
From: Erding, Bavaria - Germany
Status: offline
Why don't you just create a normal schedule in your advertisement instead of using a command line? When creating an advertisement, you can define whether to let it run once or on a regular schedule. I.e., the patch management advertisement in ITMU gets set on an automatic schedule when being installed. I wouldn't bother with the vbs script.

(in reply to ibit)
Post #: 2
RE: ReRun Advertisement on a Schedule - 7/31/2008 8:48:14 AM   
ChrisR

 

Posts: 42
Score: -2
Joined: 6/19/2008
Status: offline
Just open up the advert and create a mandatory assignment under the schedule tab to run every X days/months, whatever you want.

< Message edited by ChrisR -- 7/31/2008 8:50:00 AM >

(in reply to iglatz)
Post #: 3
RE: ReRun Advertisement on a Schedule - 8/1/2008 4:58:47 AM   
ibit

 

Posts: 13
Score: 0
Joined: 2/6/2008
Status: offline
Thanks ... I wasn't sure if the Advertisement would rerun if the previous attempt was successful as you don't get that option in SMS as you do in SCCM when configuring the advertisement ..


(in reply to ChrisR)
Post #: 4
RE: ReRun Advertisement on a Schedule - 8/1/2008 6:38:28 AM   
ChrisR

 

Posts: 42
Score: -2
Joined: 6/19/2008
Status: offline
Having a mandatory schedule means it'll run based on that schedule regardless of if it was successful or not the last time it ran.  So if your mandatory asssignment only says run after 12:00 today it'll run once from that time.  If you said run everyday at 12:00 it'd run everyday at 12:00 even if it completes successfully the previous day.

(in reply to ibit)
Post #: 5
RE: ReRun Advertisement on a Schedule - 8/1/2008 8:49:42 AM   
mhudson

 

Posts: 541
Score: 12
Joined: 4/1/2007
From: College Station, TX
Status: offline
If you want to run the adv on a reoccuring schedule but don't want to run it on a computer that has completed it then you will need to create a parent/child collection.
Parent: What application/adv needs to run on the machine
Child: Limted to the parent.  Sub query that shows only machines that haven't installed the software from the parent.

Run the adv on the child, as they install and HW/SW inventory runs that will be removed.  there for only the nonsucessfull machines will run.

_____________________________

Matthew Hudson
http://sms-hints-tricks.blogspot.com/
http://www.sccm-tools.com

(in reply to ChrisR)
Post #: 6
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> ReRun Advertisement on a Schedule Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.234