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 |
- In the Synchronization Service Manager Console, select Management Agents
- Select the Management Agent you desire to work with here
- From the Actions menu, select Configure Run Profiles
- Select a Run Profile, or Create a New Profile by clicking the New Profile button
- Click the Script button beside the OK button
- 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.
- Navigate to %programfiles%\Microsoft Forefront Identity Manager\2010\Synchronization Service
- Create a Scripts Folder and Navigate Inside of it
- Give the file a good name
Recommendation: <Management Agent Name> - < Name of Run Profile >.vbs
- Click Save
|
CREATE BATCH FILE |
- Navigate to the folder that you saved the scripts.
- Create a new text file in the Scripts directory and call it FIMSyncRunScripts.bat
- Edit FIMSyncRunScripts.bat
- You must use CSCRIPT.EXE to call the vbs files
- EXAMPLE: cscript %programfiles%\Microsoft Forefront Identity Manager\2010\Synchronization Service\Scripts\NORTHWIND-Full Import (Stage Only).vbs
- 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.
- Start > Administrative Tools > Task Scheduler
- From the Action menu, select Create Task
- Give it a name
- You may want to give it a description
- Choose the Radio Button for Run whether user is logged on or not
- Click the Actions Tab and then the New button
- Click Browse and browse to your scripts folder, and click on the batch file
- Click the Ok button
|
|
FIM LANDING PAGE: Resource Wiki Page Index
|