### Activate Multiple Domains

If you need to activate multiple domains in Guardian, you can use a script to automate this procedure.

WARNING: | You must deploy the Guardian Agent to each domain that is to be activated prior to running the activation script. For instructions, see “ Deploy Guardian Agent to Multiple Servers ,” above.

The following is an example script for activating multiple domains:

`-gactivateDomain -t http://slp7:7001 -u un -p pw -c true`

`-gactivateDomain -t http://slp8:7001 -u un -p pw -c true`

`-gactivateDomain -t http://sqa-lldev:4044 -u un -p pw -c true`

The script is then run in Guardian Headless Mode, by using the following command line:

`guardianHeadless.cmd -gscript -f activatingScript.txt`

For more information about running scripts, see Run Scripts on page 75.