Click or drag to resize
Task Scheduler Managed Class Library

TaskEventWatcher Constructor (String, String, String, String, String)

Initializes a new instance of the TaskEventWatcher class on a remote machine.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public TaskEventWatcher(
	string machineName,
	string taskPath,
	string domain = null,
	string user = null,
	string password = null
)
Request Example View Source

Parameters

machineName
Type: SystemString
Name of the remote machine.
taskPath
Type: SystemString
The task path.
domain (Optional)
Type: SystemString
The domain of the user account.
user (Optional)
Type: SystemString
The user name with permissions on the remote machine.
password (Optional)
Type: SystemString
The password for the user.
See Also