--- title: "GetAdminSiteUrl Method (WMI) | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: "reporting-services-native" ms.topic: conceptual helpviewer_keywords: - "GetAdminSiteUrl method" ms.assetid: fbc5bf3c-120c-4aec-a4f2-f5391bd415f6 author: maggiesMSFT ms.author: maggies manager: kfile --- # GetAdminSiteUrl Method (WMI) Gets the absolute URL for the Central Administration Web site for the Microsoft [!INCLUDE[winSPServ](../../includes/winspserv-md.md)], [!INCLUDE[offSPServ](../../includes/offspserv-md.md)], [!INCLUDE[SPF2010](../../includes/spf2010-md.md)], or [!INCLUDE[SPS2010](../../includes/sps2010-md.md)] farm that the report server is integrated with. ## Syntax ```vb Public Sub GetAdminSiteUrl(ByRef AdminSiteUrl as String, _ ByRef HRESULT as Int32) ``` ```csharp public void GetAdminSiteUrl(out string AdminSiteUrl, out Int32 HRESULT); ``` ## Parameters *AdminSiteUrl* [out] A string that contains the absolute URL for the Central Administration Web site for the SharePoint farm that the report server is integrated with. *HRESULT* [out] Value indicating whether the call succeeded or failed. ## Return Value Returns an *HRESULT* indicating success or failure of the method call. A value of 0 indicates that the method call was successful. A non-zero value indicates that an error has occurred. ## Requirements **Namespace:** [!INCLUDE[ssRSWMInmspcA](../../includes/ssrswminmspca-md.md)] ## See Also [MSReportServer_ConfigurationSetting Methods](msreportserver-configurationsetting-methods.md)