在 Configuration Manager 中解除安裝角色、站台和階層Uninstall roles, sites, and hierarchies in Configuration Manager

適用於: Configuration Manager (最新分支)Applies to: Configuration Manager (current branch)

使用本文作為指南,可解除安裝 Configuration Manager 站台系統角色、站台或階層。Use this article as a guide to uninstall a Configuration Manager site system role, site, or hierarchy.

從 2002 版開始,也可從階層移除管理中心網站 (CAS),但保留主要站台。Starting in version 2002, you can also remove the central administration site (CAS) from a hierarchy, but keep the primary site.

站台系統角色Site system role

基於下列原因,建議從站台系統伺服器移除角色:You might want to remove a role from a site system server for the following reasons:

  • 更廣泛的基礎結構變更,例如網路或實體位置Broader infrastructure change, such as network or physical locations
  • 解除委任基礎伺服器Decommission the underlying server
  • 合併角色以降低成本和複雜性Consolidate roles to reduce costs and complexity
  • 重新設定或重新設計站台角色Reconfigure or redesigning the site roles
  • 停止使用角色支援的功能Discontinue use of the feature that role supports

當決定需要移除角色時,請先考慮下列問題的答案:When you decide you need to remove a role, first consider your answers to the following questions:

  • 仍然需要站台中的角色嗎?Do you still need the role in the site? 若是如此,其他站台系統是否已具備此角色?If so, does another site system already have the role?

  • 其他具備此角色的站台系統是否具有適當大小,可支援效能和可用性的商務需求?Are other site systems with this role properly sized to support your business requirements for performance and availability?

  • 所有用戶端都已重新設定為使用另一個角色嗎?Are all clients already reconfigured to use another role? 是否會依賴預設的用戶端行為來回復或探索另一部伺服器?Will you rely upon default client behaviors to fall back or discover another server?

移除站台系統角色的程序Procedure to remove a site system role

使用下列程序來移除角色:Use the following procedure to remove a role:

  1. Configuration Manager 主控台中,移至 [系統管理] 工作區。In the Configuration Manager console, go to the Administration workspace. 展開 [站台設定] ,然後選取 [伺服器和站台系統角色] 節點。Expand Site Configuration, and then select the Servers and Site System Roles node.

  2. 選取具有所要移除角色的站台系統伺服器。Select the site system server with the role to remove. 在 [站台系統角色] 詳細資料窗格中,選取目標角色。In the Site System Roles details pane, select the target role.

  3. 在功能區內 [站台角色] 索引標籤的 [站台角色] 群組中,選取 [移除角色] 。In the ribbon, on the Site Role tab, in the Site Role group, select Remove Role. 確認想要移除該角色。Confirm that you want to remove the role.

特定角色的其他資訊Additional information for specific roles

某些角色可能會有額外的步驟和考量。Some roles may have additional steps and considerations.

軟體更新點Software update point

移除軟體更新點之後,Configuration Manager 會更新用戶端原則,以從清單中移除軟體更新點。After you remove the software update point, Configuration Manager updates the client policy to remove the software update point from the list. 當移除站台上的最後一個軟體更新點時,軟體更新點清單不會包含任何軟體更新點。When you remove the last software update point at the site, the software update point list contains no software update points. 在沒有可用角色的情況下,基本上會在站台停用軟體更新管理。With no roles available, software updates management is essentially disabled at the site.

當主要站台上有超過一個軟體更新點,且移除屬於同步處理來源的軟體更新點時,請在站台上選擇另一個軟體更新點作為新的同步處理來源。When you have more than one software update point at a primary site, and you remove the software update point that's the synchronization source, choose another software update point at the site to be the new synchronization source.

次要站台Secondary site

除了解除委任階層之外,移除次要站台的主要原因是因為基礎結構的變更 (例如網路或實體位置) 較廣泛。Other than when you're decommissioning a hierarchy, the main reason to remove a secondary site is because of a broader infrastructure change, such as network or physical locations. 另請檢閱選擇次要站台的原因。Also review the reasons to choose a secondary site.

當決定需要移除次要站台時,請先考慮下列問題的答案:When you decide you need to remove a secondary site, first consider your answers to the following questions:

  • 是否從站台伺服器移除所有站台系統角色?Did you remove all site system roles from the site server?

  • 是否有任何界限或界限群組與次要站台建立關聯?Are any boundaries or boundary groups associated with the secondary site? 請先重新設定界限,再移除站台。Reconfigure boundaries before removing the site.

  • 是否有任何用戶端仍在該位置?Are any clients still at the location?

  • 是否已設定對等快取等其他內容管理選項?Have you configured other content management options like peer caching?

用來刪除次要站台的選項Options to delete secondary sites

您無法將次要站台移至或重新指派給另一個主要站台。You can't move or reassign a secondary site to another primary site. 當從其直接父站台移除次要站台時,請選擇是否要將其解除安裝或刪除。When you remove a secondary site from its direct parent site, choose whether to uninstall or delete it.

解除安裝次要站台Uninstall the secondary site

使用此選項以移除可從網路存取的正常運作次要站台。Use this option to remove a functional secondary site that's accessible from the network. 此選項會從次要站台伺服器解除安裝 Configuration Manager。This option uninstalls Configuration Manager from the secondary site server. 接著,從 Configuration Manager 站台刪除該站台及其資源的所有資訊。It then deletes all information about the site and its resources from the Configuration Manager site.

如果 Configuration Manager 為次要站台安裝了 SQL Server Express,則 Configuration Manager 也會解除安裝 SQL Express。If Configuration Manager installed SQL Server Express for the secondary site, Configuration Manager uninstalls SQL Express as well. 如果是在安裝次要站台之前安裝 SQL Server Express,則 Configuration Manager 不會解除安裝 SQL Server Express。If you installed SQL Server Express before you installed the secondary site, Configuration Manager doesn't uninstall SQL Server Express.

刪除次要站台Delete the secondary site

遇到下列狀況時,請使用此選項:Use this option in the following situations:

  • 次要站台無法安裝It failed to install

  • 解除安裝次要站台之後,Configuration Manager 主控台仍然顯示次要站台After you uninstall it, the Configuration Manager console still shows the secondary site

    此選項會從 Configuration Manager 階層中刪除該站台及其資源的所有資訊,但不會在站台伺服器上進行任何變更。This option deletes all information about the site and its resources from the Configuration Manager hierarchy, but doesn't make any changes on the site server.

    提示

    您也可以使用階層維護工具搭配 /DELSITE 選項來刪除次要站台。You also can use the Hierarchy Maintenance Tool with the /DELSITE option to delete a secondary site. 如需詳細資訊,請參閱階層維護工具 (Preinst.exe)For more information, see Hierarchy Maintenance Tool (Preinst.exe).

刪除次要站台的先決條件Prerequisites to delete a secondary site

執行 Configuration Manager 安裝程式的系統管理使用者,需要下列安全性權限:The administrative user that runs Configuration Manager setup needs the following security rights:

  • 次要站台伺服器上的本機系統管理員權限Local Administrator rights on the secondary site server

  • 如果主要站台資料庫伺服器在主要站台伺服器遠端,則需要主要站台的遠端站台資料庫伺服器上本機系統管理員權限。If the primary site database server is remote from the primary site server, local Administrator rights on the remote site database server for the primary site.

  • 父主要站台上的 [基礎結構系統管理員] 或 [系統高權限管理員] 安全性角色Infrastructure Administrator or Full Administrator security role on the parent primary site

  • 次要站台資料庫的系統管理員 (Sysadmin) 權限Sysadmin rights on the secondary site database

刪除次要站台的先決條件Procedure to delete a secondary site

使用下列程序來解除安裝或刪除次要站台:Use the following procedure to uninstall or delete a secondary site:

  1. 在 Configuration Manager 主控台中,移至 [系統管理] 工作區,展開 [站台設定] ,然後選取 [站台] 節點。In the Configuration Manager console, go to the Administration workspace, expand Site Configuration, and then select the Sites node.

  2. 選取您要移除的次要站台伺服器。Select the secondary site server that you want to remove. 在功能區內 [常用] 索引標籤的 [站台] 群組中,選取 [刪除] 。In the ribbon, on the Home tab, in the Site group, select Delete.

  3. 在 [一般] 頁面上,選取要解除安裝或刪除次要站台。On the General page, select whether to uninstall or delete the secondary site.

  4. 完成精靈。Complete the wizard.

主要站台Primary site

基於下列原因,建議從階層中解除安裝主要站台:You might want to uninstall a primary site from your hierarchy for the following reasons:

  • 合併站台以降低成本和複雜性Consolidate sites to reduce costs and complexity
  • 重新設定或重新設計階層的站台Reconfigure or redesign the sites of the hierarchy

如果子主要站台將分散式檢視用於 CAS 的複寫連結,則必須先關閉階層中的分散式檢視,才能解除安裝該站台。Before you uninstall a child primary site that uses distributed views for its replication link to the CAS, first turn off distributed views in your hierarchy. 如需詳細資訊,請參閱 解除安裝以分散式檢視設定的主要站台For more information, see Uninstall a primary site that is configured with distributed views.

規劃解除安裝主要站台Plan to uninstall a primary site

在解除安裝主要站台之前,請先檢閱下列工作:Before you uninstall a primary site, review the following tasks:

  • 檢閱界限、界限群組和後援關聯性。Review boundaries, boundary groups, and fallback relationships. 如果將用戶端指派給新站台,但未變更界限,則可能將其視為漫遊。If you assign clients to a new site, but don't change the boundaries, they may be considered roaming. 如需詳細資訊,請參閱定義站台界限與界限群組For more information, see Define site boundaries and boundary groups.

  • 確定所有作用中用戶端都會重新指派給階層中的另一個主要站台。Make sure all active clients are reassigned to another primary site in the hierarchy. 否則,在解除安裝站台之後,用戶端將變成非受控。Otherwise clients will be unmanaged after you uninstall the site. 如需詳細資訊,請參閱如何將用戶端指派至站台For more information, see How to assign clients to a site.

    • 檢閱站台角色清單,確定新站台提供相同層級的服務。Review the list of site roles to make sure the new site provides the same level of service.

    • 確定已使用其他站台中此角色來正確調整其他站台系統的大小。Make sure that you've properly sized the other site systems with this role in the other site. 這些站台系統必須與其他用戶端一起支援效能和可用性的商務需求。They will need to support your business requirements for performance and availability with the additional clients.

    • 如果此站台有許多用戶端,請分階段加以重新指派。If this site has lots of clients, reassign them in stages. 當用戶端重新整理完整清查和其他站台特定資料時,請監視資料庫複寫。Monitor database replication as clients refresh full inventory and other site-specific data. 如果管理軟體更新,則用戶端將會指派給新的軟體更新點。If you manage software updates, clients will assign to a new software update point. 此行為會導致完整掃描更新相容性。This behavior causes a full scan for update compliance.

    • 用戶端重新指派可能會影響依賴清查資料的報表和查詢,以及以狀態為基礎的相容性。Client reassignment may impact reports and queries that rely on inventory data, and state-based compliance. 請考慮在轉換期間暫時調整任何用戶端週期。Consider temporarily adjusting any client cycles during the transition.

    • 檢閱所有用戶端指派方法,以確定沒有方法參考這個主要站台。Review all client assignment methods to make sure that none refer to this primary site.

  • 檢查階層中任何使用中物件是否有站台碼的靜態參考。Check if any actively used objects in the hierarchy have static references to the site code. 例如,集合查詢、工作順序或系統管理指令碼。For example, collection queries, task sequences, or administrative scripts.

  • 如果階層使用後援站台進行自動站台指派,請確定該階層不會參考這個主要站台。If the hierarchy uses a fallback site for automatic site assignment, make sure it doesn't reference this primary site.

  • 重新設定可能會參考靜態站台碼的任何用戶端安裝方法Reconfigure any client installation methods that may reference a static site code.

  • 如果這個主要站台有任何站台特定的雲端附加服務,請務必將其移除。If this primary site has any site-specific cloud-attached services, make sure to remove them. 如果仍然需要雲端資源,請將雲端資源移至階層中的另一個主要站台。If you still need the cloud resources, move them to another primary site in the hierarchy. 將這些雲端資源從所要解除安裝的主要站台中移除,並新增至另一個主要站台。Remove them from the primary site that you're going to uninstall, and add them to another primary site.

  • 如果這個主要站台具有階層的任何探索方法,請將這些方法移至另一個站台。If this primary site has any discovery methods for the hierarchy, move them to another site.

  • 淘汰任何以站台為基礎的 OS 部署媒體Retire any site-based OS deployment media.

  • 從站台和站台伺服器解除安裝所有站台系統角色。Uninstall all site system roles from the site and the site server. 如需詳細資訊,請參閱解除安裝站台系統角色For more information, see Uninstall site system roles. 雖然這不是必要的準備步驟,但是在解除安裝站台之前,其有助於識別任何其他相依性。While this preparation step isn't required, it helps identify any additional dependencies before uninstalling the site.

  • 解除安裝這個主要站台下的任何次要站台。Uninstall any secondary sites under this primary site. 如需詳細資訊,請參閱<次要站台>一節。For more information, see the Secondary site section.

解除安裝主要站台的先決條件Prerequisites to uninstall a primary site

執行 Configuration Manager 安裝程式的系統管理使用者需要下列安全性權限:The administrative user that runs Configuration Manager setup needs the following security rights:

  • CAS 伺服器的本機系統管理員權限Local Administrator rights on the CAS server

  • 如果 CAS 資料庫伺服器在站台伺服器遠端,則需要 CAS 遠端站台資料庫伺服器的本機系統管理員權限。If the CAS database server is remote from the site server, local Administrator rights on the remote site database server for the CAS.

  • CAS 站台資料庫的系統管理員 (Sysadmin) 權限Sysadmin rights on the CAS site database

  • 主要站台伺服器的本機系統管理員權限Local Administrator rights on the primary site server

  • 如果主要站台資料庫伺服器在主要站台伺服器遠端,則需要主要站台的遠端站台資料庫伺服器上本機系統管理員權限。If the primary site database server is remote from the primary site server, local Administrator rights on the remote site database server for the primary site.

  • CAS 的基礎結構系統管理員系統高權限管理員安全性角色Infrastructure Administrator or Full Administrator security role on the CAS

解除安裝主要站台的程序Procedure to uninstall a primary site

您會執行 Configuration Manager 安裝程式以解除安裝沒有相關聯次要站台的主要站台。You run Configuration Manager setup to uninstall a primary site that doesn't have an associated secondary site. 使用下列程序來解除安裝主要站台:Use the following procedure to uninstall a primary site:

提示

如果主要站台伺服器已無法使用,請使用 CAS 上的階層維護工具從站台資料庫中刪除主要站台。If the primary site server is no longer available, use the Hierarchy Maintenance Tool at the CAS to delete the primary site from the site database. 如需詳細資訊,請參閱階層維護工具 (Preinst.exe)For more information, see Hierarchy Maintenance Tool (Preinst.exe).

  1. 使用下列其中一種方法,在主要站台伺服器上啟動 Configuration Manager 安裝程式:Start Configuration Manager setup on the primary site server by using one of the following methods:

    • 在 [開始] 功能表上,選取 [Configuration Manager 安裝程式] 。On the Start menu, select Configuration Manager Setup.

    • 在 Configuration Manager 的「安裝媒體」 目錄中,開啟 \SMSSETUP\BIN\X64\setup.exeIn the directory for the Configuration Manager installation media, open \SMSSETUP\BIN\X64\setup.exe. 請確定此版本與站台版本相同。Make sure this version is the same as the site version.

    • 在 Configuration Manager 的「安裝」 目錄中,開啟 \BIN\X64\setup.exeIn the directory where Configuration Manager is installed, open \BIN\X64\setup.exe.

  2. 檢閱 [開始之前] 頁面上的資訊。Review the information on the Before You Begin page.

  3. 在 [開始使用] 頁面上,選取 [解除安裝 Configuration Manager 站台] 。On the Getting Started page, select Uninstall a Configuration Manager site.

    重要

    次要網站連結至主要網站時,您必須先移除次要網站才可解除安裝主要網站。When a secondary site is attached to the primary site, you must remove the secondary site before you can uninstall the primary site.

  4. 在 [解除安裝 Configuration Manager 站台] 頁面上,預設會啟用下列兩個選項:On the Uninstall the Configuration Manager Site page, both of the following options are enabled by default:

    • 從主要站台伺服器移除站台資料庫Remove the site database from the primary site server
    • 移除 Configuration Manager 主控台Remove the Configuration Manager console
  5. 選取 [是] 以確認解除安裝 Configuration Manager 主要站台。Select Yes to confirm the uninstallation of the Configuration Manager primary site.

解除安裝使用分散式檢視的主要站台Uninstall a primary site that uses distributed views

  1. 解除安裝子主要站台之前,請先關閉 CAS 與主要站台之間每個階層連結上的分散式檢視。Before you uninstall a child primary site, turn off distributed views on each link in the hierarchy between the CAS and a primary site.

  2. 關閉每個連結上的分散式檢視之後,請確認來自主要站台的資料已完成 CAS 重新初始化。After you turn off distributed views on each link, confirm that the data from the primary site finishes reinitializing at the CAS. 若要監視資料的初始化,請參閱監視複寫To monitor the initialization of data, see Monitor replication.

  3. 在透過 CAS 成功將資料重新初始化之後,即可解除安裝主要站台After the data successfully reinitializes with the CAS, you can uninstall the primary site.

  4. 解除安裝主要站台時,可重新設定 CAS 到其他主要站台連結上的分散式檢視。When the primary site is uninstalled, you can reconfigure distributed views on links from the CAS to other primary sites.

    重要

    如果在關閉每個站台的分散式檢視之前,或在來自主要站台的資料成功在 CAS 重新初始化之前就解除安裝主要站台,資料複寫可能會失敗。If you uninstall the primary site before you turn off distributed views at each site, or before the data from the primary site successfully reinitializes at the CAS, data replication might fail.

解除委任階層Decommission a hierarchy

有些組織因為合併、收購、測試環境或其他商務需求而有多個階層。Some organizations have multiple hierarchies because of mergers, acquisitions, test environments, or other business requirements. 如果將管理整合到單一階層,則此動作可協助降低成本和複雜性。If you consolidate management to a single hierarchy, this action can help reduce costs and complexity. 解除委任階層的另一個原因是,您正在移轉至僅限雲端的管理服務 (例如 Microsoft Intune),並準備好移除內部部署基礎結構。Another reason to decommission the hierarchy is that you're migrating to a cloud-only management service such as Microsoft Intune, and are ready to remove your on-premises infrastructure.

若要解除委任包含多個站台的階層,則移除順序十分重要。To decommission a hierarchy with multiple sites, the sequence of removal is important. 從解除安裝階層底部的站台開始,然後向上進行:Start by uninstalling the sites at the bottom of the hierarchy and then move upward:

  1. 移除連接到主要站台的次要站台。Remove secondary sites attached to primary sites.
  2. 解除安裝主要站台。Uninstall primary sites.
  3. 解除安裝所有主要站台之後,即可解除安裝 CAS。After you uninstall all primary sites, you can uninstall the CAS.

如需詳細資訊,請參閱下列各節:For more information, see the following sections:

解除安裝 CASUninstall the CAS

解除委任階層的最後一個步驟是解除安裝 CAS。The final step to decommission a hierarchy is to uninstall the CAS. 執行 Configuration Manager 安裝程式可解除安裝沒有子主要站台的 CAS。Run Configuration Manager setup to uninstall the CAS that doesn't have child primary sites.

解除安裝 CAS 的先決條件Prerequisites to uninstall the CAS

執行 Configuration Manager 安裝程式的系統管理使用者需要下列安全性權限:The administrative user who runs Configuration Manager setup needs the following security rights:

  • CAS 伺服器的本機系統管理員權限Local Administrator rights on the CAS server

  • 如果 CAS 資料庫伺服器在站台伺服器遠端,則需要 CAS 遠端站台資料庫伺服器的本機系統管理員權限。If the CAS database server is remote from the site server, local Administrator rights on the remote site database server for the CAS.

解除安裝 CAS 的程序Procedure to uninstall the CAS

  1. 使用下列其中一種方法,在 CAS 伺服器上啟動 Configuration Manager 安裝程式:Start Configuration Manager setup on the CAS server by using one of the following methods:

    • 在 [開始] 功能表上,選取 [Configuration Manager 安裝程式] 。On the Start menu, select Configuration Manager Setup.

    • 在 Configuration Manager 的「安裝媒體」 目錄中,開啟 \SMSSETUP\BIN\X64\setup.exeIn the directory for the Configuration Manager installation media, open \SMSSETUP\BIN\X64\setup.exe. 請確定此版本與站台版本相同。Make sure this version is the same as the site version.

    • 在 Configuration Manager 的「安裝」 目錄中,開啟 \BIN\X64\setup.exeIn the directory where Configuration Manager is installed, open \BIN\X64\setup.exe.

  2. 檢閱 [開始之前] 頁面上的資訊。Review the information on the Before You Begin page.

  3. 在 [開始使用] 頁面上,選取 [解除安裝 Configuration Manager 站台] 。On the Getting Started page, select Uninstall a Configuration Manager site.

    重要

    請先移除所有子主要站台,再解除安裝 CAS。Remove all child primary sites before you can uninstall the CAS.

  4. 在 [解除安裝 Configuration Manager 站台] 頁面上,預設會啟用下列兩個選項:On the Uninstall the Configuration Manager Site page, both of the following options are enabled by default:

    • 從 CAS 伺服器移除站台資料庫Remove the site database from the CAS server
    • 移除 Configuration Manager 主控台Remove the Configuration Manager console
  5. 選取 [是] 以確認解除安裝 Configuration Manager 管理中心網站 (CAS)。Select Yes to confirm the uninstallation of the Configuration Manager central administration site (CAS).

移除 CASRemove the CAS

從 2002 版開始,如果階層包含 CAS 和單一子主要站台,則可移除 CAS。Starting in version 2002, if the hierarchy consists of the CAS and a single child primary site, you can remove the CAS. 此動作會將 Configuration Manager 基礎結構簡化為單一獨立主要站台。This action simplifies your Configuration Manager infrastructure to a single, standalone primary site. 此動作會將站對站複寫的複雜性簡化,並將管理工作重點放在單一站台上。It removes the complexities of site-to-site replication, and focuses your management tasks to the single site.

如需詳細資訊,請參閱移除 CASFor more information, see Remove the CAS.