SCCMWebService..::..CreatePSExecProcess Method
Creates a process using "PSExec.exe".
Namespace:
SCCMWebServiceAssembly: SCCMWebService (in SCCMWebService.dll)
Syntax
[SoapHeaderAttribute] [WebMethodAttribute] public int CreatePSExecProcess( string computername, string commandLine, string commandLineArguments, bool interactWithDesktop, bool useSystemAccount, bool copyToClient, bool verifyBeforeCopy, bool runAsLimitedUser )
<SoapHeaderAttribute> _ <WebMethodAttribute> _ Public Function CreatePSExecProcess ( _ computername As String, _ commandLine As String, _ commandLineArguments As String, _ interactWithDesktop As Boolean, _ useSystemAccount As Boolean, _ copyToClient As Boolean, _ verifyBeforeCopy As Boolean, _ runAsLimitedUser As Boolean _ ) As Integer
Parameters
- computername
- Type: String
The computerName.
- commandLine
- Type: String
The command line.
- commandLineArguments
- Type: String
The command line arguments.
- interactWithDesktop
- Type: Boolean
if set to true process interacts with desktop.
- useSystemAccount
- Type: Boolean
if set to true process uses system account.
- copyToClient
- Type: Boolean
if set to true copy executable to client.
- verifyBeforeCopy
- Type: Boolean
if set to true verifies executable before copy.
- runAsLimitedUser
- Type: Boolean
if set to true prcoess runs as limited user.
Return Value
0 if succeeded.Exceptions
Exception | Condition |
---|---|
Exception | Computer name must not be empty! or Unable to get DNS host name for computer + computerName + ! or commandLine name must not be empty! or Unable to create process on computer + computerName + because host is unreachable! |