Adding Custom Code to the Swimage Conductor
The Swimage Conductor allows for customization of the Steps or Actions that it runs. The process allows for additional or custom code to be added to any Step or Action. The modifications are done by adding a script to the Step that gets initiated before or after the Step is called by the Swimage Conductor. The Custom Scripts are not integrated into the Swimage Conductor, but are run by the same process. Swimage will also take feature requests and add custom code required by our customers.
To add a custom script to the Swimage Conductor a few considerations need to be made:
- When to run or inject the custom script; in WinPE, before joining the domain, after profile is restored, or prior to first login.
- Can this be done after the migraton.
- Can this be done during the install application phase.
Swimage has four phases where custom scripts are normally added to the process
- Custom Scripts – These scripts are run after the new OS has been configured and prior to joining the domain. Normally configured as batch scripts to add a specific function to the computer.
- Install Applications – Applications are installed after the new OS is installed and prior to joining the domain.
- Registry Scripts – Swimage runs registry scripts for all users and all new users will also get the modifications.
- Lockdown – Is the last step where Swimage stages processes and programs for the first login of the user on the new OS. Swimage also recommends that security or agent programs get installed during this phase.
Lockdown consists of several different folders that are located on the Swimage Server. Lockdown will get staged by default in the install application phase and then run near the end of the deployment.
To modify the Lockdown phase.
Login to the Swimage server as a Swimage Admin
Navigate to the folder \Swimage\Swimdist\bin\Lockdown
There you will see the folder structure
Cleanup – Contains scripts that Swimage uses for removing and staging additional scripts after completing the Deployment. These scripts are required by Swimage.
Custom – This is where any additional scripts can be added. The command file will also need to be modified to call the additional scripts,
Firstlogin – Contains scripts that are staged to run when the user first logs in. These scripts are staged and then run after the user logs in for the first time.
NOTE: If you have integrated with SCCM you can sync your SCCM packages in Swimage. Please see the Admin Guide for more information.
Return to Swimage Training