Have you ever migrated your SWD package source and needed a way to update and import your XMLs in batch? This walkthrough will show a simple and fast way to change SWD package info in batch using the import/export utility.
Prereq: PrimalScript or equivalent editor
Note: This example walks through changing the source locations to a new source server, but can be used to batch edit anything inside package XMLS.
1. Use the Import/Export utility on the NS to export the entire Windows tree.
a. Create a folder somewhere( this example uses C:\ ) called SWD-XMLS
b. Program Files\Altiris\Notification Server\bin\ImportExportUtil.exe /export 73032b0a-2047-42db-82bb-34ff24910911 "C:\SWD-XMLS"
2. Open Primalscript and navigate to "Edit > Replace in Files"
a. In the "Find Where" box, click "In folder" and navigate to "C:\SWD-XMLS"
b. In the "Find What" box enter the old source server and share name. i.e. \\server\share
c. In the "Replace with" box enter the new server and share name, and then click "Replace All"
3. Rename the XML folder to "SWD-XMLS-UPDATED"
4. Import the updated XMLS
a. Program Files\Altiris\Notification Server\bin\ImportExportUtil.exe /import "C:\SWD-XMLS-Updated"
5. Software Packages will be overwritten with the new XMLS. After ImportExport is complete, verify the new sources.
You could easily use other tools to accomplish the same job as Primal Script. A quick and dirty vbscript could also enumerate the XMLS and replace the strings. Hope this helps!