Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


miramar
2011-11-09T10:35:43Z
HI!

is it possible to install vc with Default Settings changed? We want to enable ADUser and add AD Users by default, we need special networkcredantials on each System, AND we wanted to have several predifined jobs on each machines.

So, ist it possible while installation without manual configuration?

Bye, Bernd
Sponsor
Forum information
Support
2011-11-09T10:36:56Z
No, you might want to automate this by creating a small code snippet (using the VisualCron API) that connects to the server after install and make the changes you want.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
miramar
2011-11-09T10:42:41Z
OK, do you have an small example for this. May be Activating remotely the Activedirectory Settings?
Support
2011-11-09T11:03:43Z
I see now that we do not expose all the settings. We have fixed this for next version (hopefully in a beta for next week).

Here is a sample code to use then:

using System;
using System.Collections.Generic;
using System.Text;
using VisualCron;
using VisualCronAPI;

namespace ActivateDirectorySettings
{
    class Program
    {
        static void Main(string[] args)
        {
            // create a new Client for the connection
            Client c = new Client();
            // create the connection properties (you may want to change username/password here if you are not using default)
            Connection conn = new Connection();
            // connect
            Server s = c.Connect(conn);
            // retrieve settings
            ServerSettingsClass ss = s.Settings;
            // set desired properties
            ss.AllowActiveDirectoryLogon = true;
            ss.ADServer = "your_server_name";
            // update settings against Server
            s.UpdateServerSettings(ss);
        }
    }
}

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top