...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
C:\> cmdkey /add:login_as_ap /user:ap /pass:ap C:\> cmdkey /list:login_as_ap |
...
- 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 credentials on-the-fly for a Proxy server
Explicit credentials for a proxy server can be specified on-the-fly with the Set-Credentials
cmdlet like this:
Code Block | ||
---|---|---|
| ||
Set-Credentials -ProxyAskForCredentials |
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
...