function Get-ClientWebSiteInformationFromDatabase { <# .SYNOPSIS Fetches Client Website Information from Database. #> [CmdletBinding()] param() # Todo - pull other machines in OU and determine which is an app server # Execute the below on the remote server [hashtable[]]$clients += Get-CatalogsFromMaster $urls = @() if ($clients.Count -eq 1) { $ipstsUrl = Get-IPSTSUrlFromClient $clients $urls += @{Client = $clients.Signature; Admin = $clients.AdminSignature; IPSTS = $ipstsUrl} } else { foreach ($client in $clients) { $ipstsUrl = Get-IPSTSUrlFromClient $client $urls += @{Key = $client.Name; Client = $client.Signature; Admin = $client.AdminSignature; IPSTS = $ipstsUrl} } } return $urls }