Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NAME

Start-JobSchedulerExecutableFile

SYNOPSIS

Starts the specified executable file with parameters optionally for a different user account.

SYNTAX

Start-JobSchedulerExecutableFile -Path <String> [-Argumentlist <String>] [-TargetName <String>] [-NoStandardOutpu
t] -NoStandardError -NoLoadUserProfile <CommonParameters>

DESCRIPTION

Runs the specified executable file in the context of a different user account.
The cmdlet reads credentials from the Windows Credential Manager, i.e. credentials
that have previously been added by the Windows command "cmdkey" or any other credential management tools.
Credentials are indicated by their "target name" which represents the identifier by which
credentials are retrieved.

...

  • With the parameters -NoStandardOutput and -NoStandardError respectively being used
    • output to stdout is available from a temporary file that is indicated with the "StandardOutputFile" property.
    • output to stderr is available from a temporary file that is indicated with the "StandardErrorFile" property.

PARAMETERS

Path

-Path <String>
Specifies the full path and name of the executable file to be started. Executable files includes binary files (.com
, .exe)
and command scripts (.cmd, .bat).

Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters?

Argumentlist

-Argumentlist <String>
Specifies the arguments for starting the executable file.

Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters?

TargetName

-TargetName <String>
Specifies the target name for credentials that have been added prior to execution of the file.

...

Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters?

NoStandardOutput

-NoStandardOutput <SwitchParameter>
Specifies that the output of the executable file is not returned with the resulting process object.
Instead the name of a temporary file is returned.

...

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?

NoStandardError

-NoStandardError <SwitchParameter>
Specifies that the output of the executable file is not returned with the resulting process object.
Instead the name of a temporary file is returned.

...

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?

NoLoadUserProfile

-NoLoadUserProfile <SwitchParameter>
Specifies that the profile of the user account that the executable file is running for should not be executed.
This includes that environment variables at user level are not available for the executable file.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters?

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

...