This article provides information on Managing Automation Folders, and specifically in regards to creation, upgrading, and removing them.
Deployment Solution 8.x
Automation Folders can be a powerful part of your Deployment Solution configuration.
Fundamentally, the biggest issue is that the Automation Folders need to be updated on each machine, rather than in a central location like PXE. If a change needs to be made to a PXE configuration, it is relatively centralized, and can quickly be updated in such a way as to affect all users. Automation folders are installed on each computer, so an update to all of them can be fascinating. When you toss in the inability to actually perform an upgrade, this becomes a challenge.
The biggest advantage is performance, considering getting into automation is much faster than PXE. Additionally, you don't have to manage the network protocols / issues.
The purpose of this document is to help you manage Automation Folders in your environment.
Please keep these in mind as you follow the rest of the documentation below. At times, there will be referenes to these in this document by number.
The purpose of this section is to ensure you understand where automation folders reside in the console and how to manipulate these console items.
Default Policies (What you should know well)
NOTE: Symantec/Broadcom does not recommend modifying any of these policies and/or packages. if you find you need to do so, please refer to the next section in this document for some suggestions on how to do so.
In the Console, under Settings | Deployment, the only part of Automation Folders you can work with is under Create Preboot Configurations. This can be used to add new automation folder builds, or update existing ones. Take careful notice of any messages that appear though, as clicking on the wrong buttons at the wrong time can cancel new builds or upgrades.
Generally, you'll be working under Settings | All Settings.
Default Packages
All the deployment packages can be found under Manage | All Resources and then under Default \ All Resources \ Package. If you type "Deploy" in the search field, you can find the various packages we use. Right-click any of these and choose Actions | Edit Package. This will allow you to see where the package source files are, and to force an update to distribution points (package servers).
Every package has to have a software component attached to it with rules on how to deploy the package. Installation strings, uninstall strings, etc, are stored in the Software Component. The Deployment Software Components are found under Manage | All Resources and then under Default \ All Resources \ Software Component. Type "Deploy" in the search field to narrow down the list. Right-click any of these and choose Actions | Edit. This will bring you to a screen with several tabls. The second tab has the install and uninstall strings, which can be very useful if you're creating your own packages (see next section).
Creating your own Policies & Packages
Though not technically supported, cloning default packages, policies, and reports is the best way to modify defaults to suit your own purposes, for several reasons:
There are, however, several valid reasons to modify our packages, policies and reports. In the event you need to do so, you should:
Specifically, for the purposes of Automation folders, you would use this for testing purposes to target a limited number of systems. See the Lab section below for more on testing.
Custom / Alternative Methods of Deploying of Automation Folders
Additionally, you can create your own packages, your own policies (very simlilar to what is already there) or even create a Task to perform a similar function. The latter option can be very useful in testing. A Quick Delivery task could also be used, but we would actually recommend against that as it would require a relatively complex creation of a new software delivery policy.
For deployment of Automation Folders, a "Copy File" task is well suited:
Automation Folder Creation and location
There is already a default "Automation Folder" configured in the console for both WinPE and LinuxPE when the product is installed. These should not be removed or deleted as noted above. The default policies use these and it is much easier to leave those policies intact rather than to try to re-create them.
As a general rule, this will be sufficient for any and all your needs.
The only time you may want a different automation folder environment would be if, for some reason, you wanted one section of your computers to have a different automation folder experience than another - not recommended. Please simply work with the default.
The default package is also built by default, and you can find the default location by looking at the package as outlined in an above section. The default location for all automation folders differes significantly from the other Deployment packages in that they are NOT in the deployment share under the agent. They are instead under Program Files \ Altiris \ Notification Server \ NSCap \ Bin \ Win32 \ X86 \ Deployment \ Automation. They are found in individual folders here named according to the package name you created (or we created in the case of the defaults). This is very important to note for other aspects of customization.
NOTE: If you have deleted the default automation folder in the console, the package still exists, and the install/upgrade policies still point to it. You can either recreate it by exact name in the console (should work) or make a new one of a different name, and then when you rebuild the "new" one, use that to replace the EXE in the package of the default. Not using the default package will cause much headaches in the console!
Automation folders, like other automation environments, must be rebuilt to include any additional drivers you may have added. Unlike PXE environments, the automation folders are ONLY rebuilt on the NS, NOT on the site servers. They are rebuilt on the NS and then replicated to the site servers via package replication. Rebuilding is exactly the same - selected in the console, and then you have to wait for BootWiz to run on the NS. Then please follow the steps in the Upgrade selection below.
As mentioned before, Automation Folders are not quite like other DS packages in that they are located under NSCap instead of the Deployment share. In this way, they are actually more like the other default packages that come with NS, and are therefore replicated like those other default packages. Normal Package Replication takes care of all packages under both shares (including agents, images, copy files, etc.) and will also replicate the automation folder updates you make.
The only reliable trigger to make the site servers get the rebuilt automation folder is to run the Package Refresh schedule in Scheduled Tasks (Computer Manager). This is recommended. Without forcing this, the packages will not be updated until 3am-ish when this schedule runs on it's own.
Installation / Running Information
The purpose of this section is to help you understand what is happening during the actual installation of Automation folders. This may be useful for troubleshooting, but will also be useful in your lab environment.
When the EXE runs, it extracts the files into a folder under the root of C called "Boot". This is where you look for anything related to the automation folders. It then runs a tool to modify the boot loader to be able to boot from this WIM file in this folder.
IMPORTANT: For Windows XP systems, this means upgrading the Boot Loader, which has been known, rarely, to cause problems. The boot loader must be Windows Vista or later compatible.
IMPORTANT: For systems that are already multi-boot, this is sometimes known to cause problems. Some recovery partitions we can work with, but as a general rule, we recommend NOT having any recovery partitions on systems that are managed via Automation Folders. Any incompatibility with a recovery partition will not be resolved by Symantec, and you'll be recommended to get rid of it. The Automation Folder and Imaging overall replaces the need for recovery partitions anyway.
Running / Rebooting Information
When a task is executed to reboot to the automation folder, several things happen. First, we read critical information from the local system that will be needed in Automation. This includes if you use DHCP or Static IP in your environment and what IP address the system is using in the case of a Static system. This information is recorded in an INI file for use by WinPE when it restarts. We also flip the BootLoader to restart to the WIM file / folder on reboot. Both of those steps occur via exe/s in the BOOT folder. The Symantec Managment Agent then shuts down and restarts the system.
The policy to upgrade your Automation Folder is - fascinating, and misleading. Unlike most upgrades in NS, this one does not target a "version" of folders, but instead fires on all systems. This introduces a problem: If the automation folder installer is not yet upgraded on the site server to which you connect for packages, your system will run the old installer and apper to not get updated at all! Only a check of the file dates show that they were in fact updated, though no changes appeared.
Thus, the best thing to do for updating your automation folders is as follows:
By the time the clients get the upgrade instructions, they will run against your now updated package. This works. Anything short of this will give you mixed results.
Alternate Unsupported Upgrade Method
Automation Folders are essentially made of two things: a WIM image file of WinPE (or LinuxPE which is not being discussed here) and some supporting files/executables to manage the WIM and BootLoader. Microsoft has made ImageX for the express purpose of directly editing and/or creating WIM files. It can mount a WIM file into a file folder where it can be manipulated like any other set of files, and when it's run again, the files are instantly re-compressed into the original package.
So, another option (unsupported) for upgrades is to modify the WIM file directly using ImageX. For instance, you may have imported some new drivers and you may want to manually copy those into the WIM. Or you may have modified an INI file, or EXE version, and simply need to do an update. Manually, you can launch ImageX to mount the WIM, make the changes you need, and then un-mount it.
The good news here is that the policy to remove automation folders works well. Enable the policy and all automation folders will be removed.
If you need to target a selection of systems, we recommend you clone the policy leaving it disabled, modify the cloned policy to contain just your target, and then enable it. Remember, we never recommend modifying a default policy.
Because Automation Folders are not centrally managed but are installed on each computer, we highly recommend testing thoroughly before enabline the policy, on all equipment versions you own. A representative LAB or lab-environment is highly recommended.