diff --git a/TaskService/TaskService.cs b/TaskService/TaskService.cs index 0a476698d..70d970c16 100644 --- a/TaskService/TaskService.cs +++ b/TaskService/TaskService.cs @@ -144,7 +144,7 @@ public TaskService(string targetServer, string userName = null, string accountDo /// The password that is used to connect to the computer as a SecureString. If the user name and securePassword are not specified, then the current token is used. /// /// If set to true force Task Scheduler 1.0 compatibility. - public TaskService(string targetServer, [Optional] string userName, [Optional] string accountDomain, [Optional] SecureString userSecurePassword, bool forceV1 = false) + public TaskService(string targetServer, string userName, string accountDomain, SecureString userSecurePassword, bool forceV1 = false) { BeginInit(); TargetServer = targetServer;