Script to Update all Software Packages to all Distibution Points
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
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
If your question has been resolved, please be sure to click "Mark as Solution"! Thank you.
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
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
Ah, wait...
JScript task, yes?
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
If your question has been resolved, please be sure to click "Mark as Solution"! Thank you.
Thanks
That seems to work just fine.
Would you like to reply?
Login or Register to post your comment.