Traverse the "All Computers" Folder/Group Tree Structure with VBScript
EnumAltirisTree.vbs contains the code for the AltirisTree class. EnumAltirisTree.vbs can be copied and pasted to your own VBScript, or included as a library in your WSF file. You can then easily create an AltirisTree object to enumerate the Altiris DS "Group" tree hierarchy under "All Computers".
Documentation is included in the comments at the top of EnumAltirisTree.vbs. A sample script, SampleEnumAltirisTree.wsf, is also included to demonstrate the use of an AltirisTree object.
Using an AltirisTree object is pretty straight forward - there are only 7 methods for you to work with. They are all read-only and cannot make any changes to your Altiris DS system. You can do things like list all the sub-groups of a given group, list all the computers for those subgroups, get the GroupID/ComputerID for a given tree path (and vice versa), etc.
EnumAltirisTree.vbs does not require the ASDK. However, since it is read-only and cannot actually make any changes to Altiris DS, you'll probably want to use it in conjunction with the ASDK.
FYI, I haven't tested this code too extensively yet, but so far I haven't run into any bugs. If you do run into a bug though, please let me know so I can fix it.
Thanks and happy scripting!
| License: | AJSL By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License |
| Support: | User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab. |

Thanks. Always nice to have
Thanks. Always nice to have other ways of interacting with DS.
Would you like to reply?
Login or Register to post your comment.