 | TaskService(String, String, String, String, Boolean) Constructor |
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntaxpublic TaskService(
string targetServer,
string userName = null,
string accountDomain = null,
string password = null,
bool forceV1 = false
)
Request Example
View SourceParameters
- 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