...
- Line 1 imports the JobScheduler PowerShell Module
- Line 2 reads an existing system credentials object that has been stored with the target name
login_as_ap
. - Line 3 copies the user account and password of the system credentials object to the PowerShell credentials object.
- Line 4 forwards the PowerShell credentials object to the JobScheduler CLI for authentification with the JobScheduler Master.
Specifying explicit credentials
Explicit credentials can be specified with the Set-Credentials
cmdlet like this:
Code Block | ||
---|---|---|
| ||
Set-Credentials -Credentials $credentials |
Explanations
- A credentials object is forwarded to the JobScheduler Master should authentication be required.
- This operation can be carried out at any time and is valid for the next request that is sent to the JobScheduler Master.
Specifying credentials on-the-fly
...
Explicit credentials for a proxy server can be specified on-the-fly with the Set-Credentials
cmdlet like this:
Code Block | ||
---|---|---|
| ||
Set-Credentials -ProxyAskForCredentialsAskForCredentials |
Explanations
- The cmdlet will prompt for input of the user account and password that are used for authentication with a proxy server.See Use Cases - Credentials Management for information how to manage credentials objects.
...
Using the PowerShell profile to apply credentials
...