diff --git a/src/ARKServerManager/App.config b/src/ARKServerManager/App.config index 173f4c09..6ad5213c 100644 --- a/src/ARKServerManager/App.config +++ b/src/ARKServerManager/App.config @@ -900,6 +900,12 @@ Online Player Count: + + + + + + diff --git a/src/ARKServerManager/Config.Designer.cs b/src/ARKServerManager/Config.Designer.cs index e2136a7b..eccdf644 100644 --- a/src/ARKServerManager/Config.Designer.cs +++ b/src/ARKServerManager/Config.Designer.cs @@ -3189,5 +3189,29 @@ namespace ServerManagerTool { return ((int)(this["ServicePointManager_SecurityProtocol"])); } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string TaskSchedulerUsername { + get { + return ((string)(this["TaskSchedulerUsername"])); + } + set { + this["TaskSchedulerUsername"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("")] + public string TaskSchedulerPassword { + get { + return ((string)(this["TaskSchedulerPassword"])); + } + set { + this["TaskSchedulerPassword"] = value; + } + } } } diff --git a/src/ARKServerManager/Config.settings b/src/ARKServerManager/Config.settings index 3245b804..86a6242e 100644 --- a/src/ARKServerManager/Config.settings +++ b/src/ARKServerManager/Config.settings @@ -872,5 +872,11 @@ 3072 + + + + + + \ No newline at end of file diff --git a/src/ARKServerManager/Globalization/en-US/en-US.xaml b/src/ARKServerManager/Globalization/en-US/en-US.xaml index d3e53e66..a42d71c6 100644 --- a/src/ARKServerManager/Globalization/en-US/en-US.xaml +++ b/src/ARKServerManager/Globalization/en-US/en-US.xaml @@ -802,6 +802,11 @@ Auto Shutdown/Restart Task Priority: Auto Start Task Priority: + Task Scheduler Username: + This username will be used for the Auto-Start server on Boot task. + Task Scheduler Password: + This password will be used for the Auto-Start server on Boot task. + Confirm Settings Reset Action Click 'Yes' to confirm you want to perform the settings reset. Failed to Reset Settings diff --git a/src/ARKServerManager/Lib/ServerProfile.cs b/src/ARKServerManager/Lib/ServerProfile.cs index 8a516165..ead64e39 100644 --- a/src/ARKServerManager/Lib/ServerProfile.cs +++ b/src/ARKServerManager/Lib/ServerProfile.cs @@ -4611,7 +4611,7 @@ namespace ServerManagerTool.Lib var taskKey = GetProfileKey(); - if (!TaskSchedulerUtils.ScheduleAutoStart(taskKey, null, this.EnableAutoStart, GetLauncherFile(), ProfileName, this.AutoStartOnLogin, Config.Default.AutoStart_TaskPriority)) + if (!TaskSchedulerUtils.ScheduleAutoStart(taskKey, null, this.EnableAutoStart, GetLauncherFile(), ProfileName, this.AutoStartOnLogin, Config.Default.TaskSchedulerUsername, Config.Default.TaskSchedulerPassword, Config.Default.AutoStart_TaskPriority)) { return false; } diff --git a/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml b/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml index e16be6ef..ff550d39 100644 --- a/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml +++ b/src/ARKServerManager/UserControls/GlobalSettingsControl.xaml @@ -813,6 +813,8 @@ + + @@ -856,6 +858,12 @@