The reporting system has a dedicated web service for reporting related functions, you can connect to this in the same way as described in the Using Windows PowerShell section, however using the /webservice/reporting.asmx address.


# Connect to the reporting web service

Clear-Host

$url = "http://localhost/xiaconfiguration/webservice/reporting.asmx"

Write-Host "Connecting to reporting web service at" $url

$reporting = New-WebServiceProxy -UseDefaultCredential -Uri $url 

Write-Host "Connected as" $reporting.GET_AuthenticatedUserName()


# To use specific credentials use the Get-Credential cmdlet

$creds = Get-Credential 

$reporting = New-WebServiceProxy -Uri $url -Credential $creds