Functions/ServerWebServices/Get-PASServer.ps1
# .ExternalHelp psPAS-help.xml function Get-PASServer { [CmdletBinding()] param( ) begin { }#begin process { #Create URL for request $URI = "$($psPASSession.BaseURI)/WebServices/PIMServices.svc/Server" #send request to web service $result = Invoke-PASRestMethod -Uri $URI -Method GET if ($null -ne $result) { $result } }#process end { }#end } |