Importing Building Blocks

To import a Building Block using a command line, run the wmc.exe from the command line using the parameters /action=importbb and /file=<path\filename>. If Ivanti Automation authentication is used, also provide the parameters /user and /password. The credentials must have Read/Modify permissions on the Library and the Topology nodes. Optionally, use /silent to suppresses any messages.

The option to create import folders for the Building Block items during the import process is not supported for unattended Building Block imports.

Parameter

Description

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

Imports a single Building Block into the Console. 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 Console. The specified credentials must have Read/Modify permissions on the Library. 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. For example:

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

Do not use the /silent parameter when importing building blocks without resources.

Example

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