OVERVIEW / PURPOSE / GOAL

The goal of this article is to provide yet another way of how to script the run profiles.

CREATE RUN PROFILE SCRIPT

  1. In the Synchronization Service Manager Console, select Management Agents
  2. Select the Management Agent you desire to work with here
  3. From the Actions menu, select Configure Run Profiles

  4. Select a Run Profile, or Create a New Profile by clicking the New Profile button
  5. Click the Script button beside the OK button

  6. The Save As Dialog will appear

    *NOTE: You can save the file to a location of your choosing.  For the purpose of this wiki we will create a scripts folder under the Synchronization Service folder and utilize it.
  7. Navigate to %programfiles%\Microsoft Forefront Identity Manager\2010\Synchronization Service
  8. Create a Scripts Folder and Navigate Inside of it
  9. Give the file a good name

    Recommendation: <Management Agent Name> - < Name of Run Profile >.vbs

  10. Click Save

 

CREATE BATCH FILE

  1. Navigate to the folder that you saved the scripts. 
  2. Create a new text file in the Scripts directory and call it FIMSyncRunScripts.bat
  3. Edit FIMSyncRunScripts.bat
  4. You must use CSCRIPT.EXE to call the vbs files
    1. EXAMPLE: cscript %programfiles%\Microsoft Forefront Identity Manager\2010\Synchronization Service\Scripts\NORTHWIND-Full Import (Stage Only).vbs
  5. Here is a sample of what a batch file might look like:

CREATE TASK IN SCHEDULED TASK ( TASK SCHEDULER )

For this section, I am going to be using Windows Server 2008 R2 x64.

  1. Start > Administrative Tools > Task Scheduler
  2. From the Action menu, select Create Task
  3. Give it a name
  4. You may want to give it a description
  5. Choose the Radio Button for Run whether user is logged on or not

  6. Click the Actions Tab and then the New button



  7. Click Browse and browse to your scripts folder, and click on the batch file
  8. Click the Ok button

 

ADDITIONAL INFORMATION

FIM LANDING PAGE: Resource Wiki Page Index