TaskService(String, String, String, String, Boolean) Constructor

Initializes a new instance of the TaskService class.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public TaskService(
	string targetServer,
	string userName = null,
	string accountDomain = null,
	string password = null,
	bool forceV1 = false
)

Parameters

targetServer  String
The name of the computer that you want to connect to. If the this parameter is empty, then this will connect to the local computer.
userName  String  (Optional)
The user name that is used during the connection to the computer. If the user is not specified, then the current token is used.
accountDomain  String  (Optional)
The domain of the user specified in the userName parameter.
password  String  (Optional)
The password that is used to connect to the computer. If the user name and password are not specified, then the current token is used.
forceV1  Boolean  (Optional)
If set to true force Task Scheduler 1.0 compatibility.

See Also