Microsoft Identity Integration
Server 2003 Developer Reference
an Executable File to Run a Management Agent
You can create a C# file, compile the C# file into an executable
file, and then use this file to run a management agent run profile.
Though this is more complicated than creating a
Visual Basic .NET script to run a management agent run
profile, the advantage is that the compiled file can run as a
standalone file that does not require a script engine.
You can create a C# file using Identity Manager. This file can
then be compiled into an executable file by using the command-line
compiler that is supplied with the .NET Framework. To use the
compiler, you must add the compiler location to the path variable
of your computer.
To add the
compiler path to your system
Find location of the .NET Framework compiler, csc.exe.
Note the location of this file.
On the Start menu, right-click My Computers, and
then click Properties.
On the Advanced tab of System Properties, click
In the System Properties list box of the Environment
Variables dialog box, click Path, and then click
Go to the end of the text in the Variable value text box
of the Edit System Variable dialog box and type a semi-colon
(;) followed by the location of the .NET Framework compiler. Click
OK to close the dialog boxes.
After adding the compiler path to your computer, you can use
Identity Manager to create a source file for a run profile.
To create the
source file for a run profile
In Identity Manager, on the Tools menu, click
In Management Agents, click a management agent.
On the Actions menu, click Configure Run
In the Configure Run Profiles forManagementAgent
dialog box, in Management agent run profiles, click the run
profile that you want to compile into an executable file, and then
In the Save as dialog box, type a name and location for
On the Save as type drop-down list box, click C#
Note The compiler can create an
executable file from a C# file only. The compiler cannot create an
executable file from a Visual Basic script (.vbs) file.
After creating the C# source file for a run profile, you can use
the compiler to compile the source file into an executable file
that you can run as a standalone file.
To create an
executable file from the source file
Open a command prompt and browse to the location of your source
At the command prompt, type csc <source file
name>, and then press Enter.
The compiler creates an executable file of the same name as your
source file. For more information about the compiler, go to the
Microsoft Developer Network at http://msdn.microsoft.com and in the left pane,
search for the topic Building From the Command Line.