AD import from command line

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

Apart from the wizard described in the Using the wizard chapter, the AD Import Utility can also be launched from windows command line. It is achievable by executing the ADImport.exe file located in <Kentico CMS installation folder>\ADImport (typically c:\Program Files (x86)\KenticoCMS\5.5\ADImport\) using a special syntax.

 

You can launch the utility with the -h parameter, which displays help on using the utility from the command line:

 

ADImport -h

 

To perform the actual import, you need to have an import profile created via the wizard. With the import profile prepared, you need to execute the utility using the ADImport /profile <profile file name> syntax. When specifying the profile file name, both an absolute and a relative path can be used. Please make sure that you use proper quotation when entering an absolute path containing special characters (e.g. blank spaces).

 

ADImport /profile my_profile.xml

ADImport /profile "C:\Temp\AD Import\my_profile.xml"

 

After executing the command, users or groups from Active Directory will be imported to your Kentico CMS instance based on settings contained in the specified import profile.

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?ad_import_from_command_line.htm