...
Use-JobSchedulerWebService -Url <Uri> [-Id <String>] [-Credentials <PSCredential>] [-ProxyUrl <Uri>] [[-ProxyCredentials <PSCrede
ntial>ProxyCr
edentials] <PSCredential>] <CommonParameters>
DESCRIPTION
...
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters?
Id
-Id <String>
Specifies the ID of a JobScheduler Master.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
...
- PS C:\> $credentials = Get-SystemCredentials JobSchedulerSystemCredentials -TargetName "JobScheduler Web Service"
The credentials object can be assigned to the -Credentials parameter.
Required? truefalse
Position? 23
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
...
-ProxyUrl <Uri>
Required? false
Position? 34
Default value
Accept pipeline input? false
Accept wildcard characters?
...
-ProxyCredentials <PSCredential>
Required? false
Position? 45
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters?
...
C:\PS>cmdkey /generic:JobScheduler Web Service /user:root /pass:secret
$credentials = Get-SystemCredentials JobSchedulerSystemCredentials -TargetName "JobScheduler Web Service"
Use-WebService JobSchedulerWebService http://localhost:80804446 -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 JobSchedulerSystemCredentials cmdlet and are forwarded to the Use-WebService JobSc
hedulerWebService cmdlet
.
The cmdlet returns an object with access information including the access token for the JobScheduler Web Service.