Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Script to Update all Software Packages to all Distibution Points

Updated: 05 Jun 2009 | 6 comments
DSnelleman's picture
+1 1 Vote
Login to vote

At our company we had to change a file in every software package on our Software Delivery Solution NS server.
So we did a search and replace of all the files that needed to be changed.
Then we wait for the synchronization to do its work and update the file on all of our package servers.
But no luck.

It came out that the process only looks at new files or deleted files but if you only change the content of a file it does nothing.
The only option was to go into the console, open each software package, going to the Advanced tab and clicking the button "Update Distribution Points"
This is a way if you have updated 1 or 2 packages but not for 400

So we have created a script using the ASDK for executing the Update Distribution Points for all of our packages.

The script is dependant on the ASDK being installed on your system and a DSN connection to your Database for querying the Package ID's.

our script attached to the article for your convenience

Comments

KSchroeder's picture
08
Jun
2009
0 Votes 0
Login to vote

Nice work.  I thought that

Nice work.  I thought that the "NS.Package Refresh" Schedule Task handled this, or is it a situation where if the file has changed in Modified Date only it doesn't update?  I think I've made changes like that before and by the next day the package is refreshed and distributed, without "Update Distribution Points".

Thanks,
Kyle
Symantec Trusted Advisor

For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.

DSnelleman's picture
08
Jun
2009
0 Votes 0
Login to vote

Script is for changing the contents of an existing file

Kyle,

The "NS.Package Refresh" Schedule Task only triggers a refresh when a file is added or deleted but not when the content of the file is changed so indeed it does not look at the Modified Date.

Regards,
Dennis

GuyC's picture
26
Jun
2009
0 Votes 0
Login to vote

Good, thanks

This is exactly what I need right now, thanks.  Is it run via cscript?  I'm a real n00b with Altiris, steep learning curve and all that.

Thanks

GuyC's picture
26
Jun
2009
0 Votes 0
Login to vote

Ah, wait...

JScript task, yes?

KSchroeder's picture
26
Jun
2009
0 Votes 0
Login to vote

Guy I think you would want to

Guy I think you would want to use WScript.exe or CScript.exe as the code looks to be Visual Basic Script, not JScript.  Also you need to have the ALtiris ASDK installed before you can run this, which is a separate download.

Thanks,
Kyle
Symantec Trusted Advisor

For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.

GuyC's picture
09
Jul
2009
0 Votes 0
Login to vote

Thanks

That seems to work just fine.