NAME
Use-JobSchedulerWebService
SYNOPSIS
Connects to the JobScheduler Web Service.
SYNTAX
Use-JobSchedulerWebService -Url <Uri> -Credentials <PSCredential> [-ProxyUrl <Uri>] [-ProxyCredentials <PSCrede
ntial>] <CommonParameters>
DESCRIPTION
This cmdlet can be used with the JobScheduler Web Service starting from release 1.11.
A connection to the JobScheduler Web Service is established including support for credentials
and use of a proxy.
The cmdlet authenticates a user and returns an access token in case of successful authentication
that can be used for subsequent requests to the Web Service.
PARAMETERS
Url
-Url <Uri>
Specifies the URL to access the Web Service.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters?
Credentials
-Credentials <PSCredential>
Specifies a credentials object that is used to authenticate the account with the JobScheduler Web Service.
Credentials sets can be managed with Windows built-in tools such as:
- PS C:\> cmdkey /generic:JobScheduler Web Service /user:root /pass:secret
- The Windows Credential Manager that is available Windows Control Panel.
A previously created credentials set can be retrieved by use of the cmdlet:
- PS C:\> $credentials = Get-SystemCredentials -TargetName "JobScheduler Web Service"
The credentials object can be assigned to the -Credentials parameter.
Required? true
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
ProxyUrl
-ProxyUrl <Uri>
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters?
ProxyCredentials
-ProxyCredentials <PSCredential>
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
RELATED LINKS
about_jobscheduler
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
C:\PS>cmdkey /generic:JobScheduler Web Service /user:root /pass:secret
$credentials = Get-SystemCredentials -TargetName "JobScheduler Web Service"
Use-WebService http://localhost:8080 -Credentials $credentials
Prior to use with PowerShell with some external command ("cmdkey") a credentials set is generated for the current user.
The credentials are retrieved by use of the Get-SystemCredentials cmdlet and are forwarded to the Use-WebService cmdlet
.
The cmdlet returns an object with access information including the access token for the JobScheduler Web Service.