Symprex Folder Permissions Manager, v10.1.0

The Apply Template Command

This command of the command line utility applies a pre-defined template to an address list, distribution list, mailbox or Public Folder.

 

Note Templates should be created using the main application; see the Manage Templates dialog for further information.

 

To view help for this command, start a command line prompt and type the following:

 

fpmcmd.exe help applytemplate

 

The command supports the following switches:

 

Switch

Description

/T=<template>

Specifies the full path to the template.

/DN=<path>

Specifies the distinguished name of the object to which the template will be applied, for example:

/DN="CN=Adam Smith,OU=Users,DC=simprex,DC=local"

/MB=<path>

Specifies the path to the mailbox to which the template will be applied, relative to the All Public Folders node in the tree in the main application window; for example:

/MB="All Address Lists\All Users\Adam Smith"

/AL=<path>

Specifies the path to the address list to which the template will be applied, relative to the All Public Folders node in the tree in the main application window; for example:

/AL="All Address Lists\All Users\Account Managers"

/DL=<path>

Specifies the path to the distribution list to which the template will be applied, relative to the All Public Folders node in the tree in the main application window; for example:

/DL="All Address Lists\All Distribution Lists\Board of Directors"

/PF=<path>

Specifies the path to the Public Folder to which the template will be applied, relative to the All Public Folders node in the tree in the main application window; for example:

/PF="Public Documents\Shared Documents"

/PFS=[On|Off]

Specifies the source Exchange platform for updating Public Folders (only required when your Exchange environment has multiple Exchange platforms); On=export from On-Premises Exchange, Off=Export from Off-Premises Exchange (Office 365 or Hosted Exhange).

/SF[=Yes/No]

Specifies if sub-folders of mailbox folders should be modified (default is Yes).

/IC[=Yes/No]

Specifies if children of the specified object applied modified should be included. For address lists and distribution lists, this will include any mailboxes in child lists of the list (default is No). For Public Folders and mailboxes, this switch has no effect and is ignored.

/LOGFILE=<log>

Specifies the output log file. If no directory is included, the file is written to the application directory. The name of the file can include the #date# and #time# tokens, which will be replaced by the current date (in the format YYYYMMDD) and time (in the format HHMMSS) respectively. Notice any existing file will be overwritten.

/MAILTO=<mailTo>

Specifies the distribution list for sending the log file. The /LOGFILE switch must be specified for the log to be generated. The list must comprise a set of valid e-mail address, separated by semi-colons (;).

 

Important: In order for the e-mail to be sent, the current user must be present in the Global Address List.

/SMTPSVR=<server>

Specifies the SMTP for sending the distribution list. If not specified, the local machine is used.

/SMTPPORT=<port>

Specifies the SMTP port for sending the distribution list. If not specified, the default port for sending SMTP e-mails is used.

 

For example, to apply a template to the "Account Managers" address list, the following command could be used:            

 

fpmcmd.exe applytemplate /T="C:\Templates\Sample Template.spt" /AL="All Address Lists\All Users\Account Managers" /SF=Yes

 

Note The directory where templates are stored is specified in the Options dialog.

 


Copyright © 2025 Symprex Limited. All Rights Reserved.