Job Templates / Policies API RRS feed

  • Question

  • Hi all,

    Is there a way of creating job templates or customize policies via C# API's ?

    Best Regards
    Sunday, January 10, 2010 10:14 AM


All replies

  • Not directly.  The easiest way is with PowerShell.  You can export a template to XML, mess with the XML, and then re-import.

    PowerShell can easily be instantiated from your C# application: http://www.devx.com/tips/Tip/42716?trk=DXRSS_DOTNET

    • Marked as answer by Shay Segev Monday, January 11, 2010 2:21 PM
    Monday, January 11, 2010 1:10 AM
  • Hi Shay,

    There is also a cmdline tool called jobtemplate.exe. it can operate on job templates from cmdline. You may then run the cmdline as a process in C#.


    Tuesday, January 12, 2010 9:22 PM