Altiris Software Dev Kit (ASDK)

 View Only

ASDK 7.6 - Add Package Server to Package(s) 

Sep 28, 2015 02:04 PM

I have written the article "ASDK 7.5 - Remove Package Server assignment from packages" which removes package servers from package(s). After talking to another colleague who is working with Altiris he thought it would be good if there is a built-in function in Altiris to add a package server to a list of packages. This in case you add a new package server to the infrastructure and you do not use site assignment or manual prestaging.

Well this might be a good function to add in the console however if you are familiar with the ASDK you can easily script this task. And that is what I did.

To use this script you have to be locally on your Notification server. The following options are provided.

Running the script "cscript.exe AddPackageServerAssignment.vbs 38918c74-21f3-2030-e3fc-655f43c3072c 3d7bacc2-1112-422f-8d93-d38c7d6ec0d5" will change one package.

The first parameter stands for the package guid and the second stands for the package server guid.

Running the script "cscript.exe AddPackageServerAssignment.vbs -f guidlist.txt 3d7bacc2-1112-422f-8d93-d38c7d6ec0d5" will go through a text file where you can add as many package guids as you like. The second parameter stands again for the package server guid.

All the previous assigned package servers are retained in the list.

I could only test it with ASDK 7.6 but I assume it works with ASDK 7.5 as well.

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
zip file
AddPackageServerAssignment.zip   1 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Related Entries and Links

No Related Resource entered.