Import Building Blocks

You can import Building Block into the Management Portal unattended. The option to create import folders for the Building Block items during the import process is not supported for unattended Building Block imports.

To execute the Building Block import, run the executable of the Management Portal (wmc.exe) from the command line and use the following parameters:

Additionally, you will need to edit the configuration file (wmc.exe.config)and provide the address of the API and the API key.

Parameter

Description

/action=importbb /file=<path\filename>

Imports a single Building Block into the Management Portal. For example:

"C:\Program Files (x86)\Ivanti\Automation\Console\WMC.exe" /action=importbb /file=c:\buildingblocks\basic.xml

/user=<username> /password=<password>

Allows you to specify credentials for the Management Portal. The specified credentials must have Read/Modify permissions on the Library and Topology nodes. For example:

"C:\Program Files (x86)\Ivanti\Automation\Console\WMC.exe" /action=importbb /file=c:\buildingblocks\basic.xml /user=jsmith /password=secret

/BBpassword

Specifies the Building Block password for AES-256 encryption

/silent

Suppresses any Ivanti Automation messages during import of Building Blocks (optional). For example:

"C:\Program Files (x86)\Ivanti\Automation\Console\WMC.exe" /action=importbb /file=c:\buildingblocks\basic.xml /user=jsmith /password=secret /silent

Example

"C:\Program Files\RES\Automation\Management Portal\ApiClient\wmc.exe" /action=importbb /file=c:\buildingblocks\basic.xml /user=jsmith /password=secret /BBpassword=123 /silent