安裝 VMMInstall VMM

重要

已不再支援此版本的 Virtual Machine Manager (VMM),建議升級至 VMM 2019This version of Virtual Machine Manager (VMM) has reached the end of support, we recommend you to upgrade to VMM 2019.

請參閱本文,以安裝 System Center - Virtual Machine Manager (VMM) 管理伺服器。Use this article to install the System Center - Virtual Machine Manager (VMM) management server.

在您開始使用 Intune 之前Before you start

  • 檢閱系統需求和規劃資訊Review the system requirements and planning information. 深入了解系統需求Learn about system requirements
  • 執行安裝程式之前,請確定您在電腦上至少具備本機系統管理員權限。Make sure you have at least local admin permissions on the computer before you run the setup.
  • 服務帳戶應是 VMM 伺服器上的系統管理員。The service account should be an administrator on the VMM server.

執行安裝程式Run setup

注意

VMM 的服務帳戶可以是以下:The service account for VMM can be:

  • 本機帳戶A local account
  • 用於服務的使用者帳戶A user account used for service
  • 群組受管理的服務帳戶。A group managed service account.
  • 如果您使用的是本機帳戶,您不能擁有高可用性設定的 VMM。If you are using a local account, you can’t have VMM in highly available configuration.
  • 如果您使用的是 gMSA 帳戶,格式應為 domainFQDN\gMSAAccount$If you are using gMSA account, the format should be domainFQDN\gMSAAccount$
  1. 關閉任何開啟的程式,同時確認電腦上並未擱置任何重新啟動作業。Close any open programs and ensure that no restarts are pending on the computer.
  2. 若要啟動 Virtual Machine Manager 安裝精靈,請在安裝媒體上,以滑鼠右鍵按一下 [Setup.exe] ,然後按一下 [以系統管理員身分執行] 。To start the Virtual Machine Manager Setup wizard, on your installation media, right-click setup.exe, and then click Run as administrator.
  3. 在主要安裝程式頁面中,按一下 [安裝]。In the main setup page, click Install.
  4. 在 [選取安裝的功能] 頁面上,選取 [VMM 管理伺服器] 核取方塊,然後按 [下一步] 。On the Select features to install page, select the VMM management server check box, and then click Next. VMM 主控台將會自動安裝。The VMM console will be automatically installed. 如果您正在叢集節點上進行安裝,則系統會詢問您是否要讓管理伺服器成為高可用性。If you're installing on a cluster node you'll be asked if you want to make the management server highly available.
  5. 在 [產品註冊資訊] 頁面上,提供適當的資訊,然後按 [下一步] 。On the Product registration information page, provide the appropriate information, and then click Next. 如果您未輸入產品金鑰,VMM 將安裝為評估版,並在安裝後的 180 天到期。If you do not enter a product key, VMM will be installed as an evaluation version that expires in 180 days after installation.
  6. 在 [請閱讀此授權合約] 頁面上,檢閱授權條款、選取 [我已閱讀、瞭解並同意授權合約的條款] 核取方塊,然後按 [下一步] 。On the Please read this license agreement page, review the license agreement, select the I have read, understood, and agree with the terms of the license agreement check box, and then click Next.
  7. 在 [診斷和使用方式資料] 頁面上,檢閱 Microsoft 的資料收集原則以及如何停用資料收集。On the Diagnostic and Usage Data page, review Microsoft's data collection policy and how to disable data collection. 然後按一下 [下一步] 。Then click Next.
  8. 如果 [Microsoft Update] 頁面出現,請選取您是否要使用 Microsoft Update,然後按一下 [下一步]。If the Microsoft Update page appears, select whether you want to use Microsoft Update, and then click Next. 如果您已經選擇要在此電腦上使用 Microsoft Update,則不會出現此頁面。If you've already chosen to use Microsoft Update on this computer the page won't appear.
  9. 在 [診斷和使用方式資料] 頁面上,檢閱 Microsoft 的資料收集原則以及如何停用資料收集。On the Diagnostic and Usage Data page, review Microsoft's data collection policy and how to disable data collection. 然後按一下 [下一步]。Then click Next
  10. 在 [安裝位置] 頁面上,使用預設路徑或輸入不同的 VMM 程式檔案安裝路徑,然後按 [下一步]。On the Installation location page, use the default path or type a different installation path for the VMM program files, and then click Next. 安裝程式會檢查您安裝 VMM 管理伺服器所在的電腦,以確定該電腦符合適當的硬體和軟體需求。The setup program checks the computer on which you are installing the VMM management server to ensure that the computer meets the appropriate hardware and software requirements. 如果電腦不符合先決條件,便會出現一個頁面,其中包含該先決條件及如何解決問題的相關資訊。If the computer does not meet a prerequisite, a page that contains information about the prerequisite and how to resolve the issue appears.
  11. 在 [資料庫組態] 頁面上,如果您使用遠端 SQL 執行個體,請指定執行 SQL Server 的電腦名稱。On the Database configuration page, if you're using a remote SQL instance specify the name of the computer that is running SQL Server. 如果要將 VMM 管理伺服器安裝在目前執行 SQL Server 的同一部電腦上,請在 [伺服器名稱] 方塊中,輸入該電腦的名稱 (例如,vmmserver01) 或輸入 localhostIf you are installing the VMM management server on the same computer that is running SQL Server, then in the Server name box, either type the name of the computer (for example, vmmserver01) or type localhost. 如果 SQL Server 是在叢集中,請輸入叢集名稱。If the SQL Server is in a cluster, type the cluster name.
  12. 如果您沒有 SQL Server 的遠端執行個體,或者,如果您的遠端 SQL Server 使用預設連接埠 (1443),請勿指定 [連接埠] 值。Don't specify a Port value if you don't have a remote instance of SQL Server, or if you have a remote SQL Server that uses the default port (1443).
  13. 指定 SQL Server 執行個體名稱,以及是否要使用現有或新的資料庫。Specify the SQL Server instance name and whether to use an existing or new database. 您所擁有的帳戶需要具備可連線到執行個體的權限。You'll need an account with permissions to connect to the instance.
  14. 在 [設定服務帳戶和分散式金鑰管理] 頁面上,指定 VMM 服務將使用的帳戶。On the Configure service account and distributed key management page, specify the account that the VMM service will use. 您無法在安裝後變更 VMM 服務帳戶的識別。You can't change the identity of the VMM service account after installation. 您可以在此處深入了解分散式金鑰管理。Learn more about distributed key management here.
  15. 在 [分散式金鑰管理] 下方,選取是否要將加密金鑰存放在 Active Directory 中。Under Distributed Key Management, select whether to store encryption keys in Active Directory.
  16. 在 [連接埠組態] 頁面上,針對每項功能使用預設連接埠號碼,或提供環境中適當的唯一連接埠號碼。On the Port configuration page, use the default port number for each feature or provide a unique port number that is appropriate in your environment. 除非先將 VMM 管理伺服器解除安裝後再重新安裝,否則無法變更在安裝 VMM 管理伺服器期間所指派的連接埠。You cannot change the ports that you assign during the installation of a VMM management server unless you uninstall and then reinstall the VMM management server. 此外,請勿設定任何功能使用通訊埠 5986,因為已預先指派該通訊埠編號。Also, do not configure any feature to use port 5986, because that port number is preassigned.
  17. 在 [程式庫組態] 頁面上,選取是要建立新的程式庫共用,或是使用電腦上現有的程式庫共用。On the Library configuration page, select whether to create a new library share or to use an existing library share on the computer. VMM 建立的預設資源庫共用名稱是 MSSCVMMLibrary,該資料夾位於 %SYSTEMDRIVE%\ProgramData\Virtual Machine Manager Library Files 中。The default library share that VMM creates is named MSSCVMMLibrary, and the folder is located at %SYSTEMDRIVE%\ProgramData\Virtual Machine Manager Library Files. ProgramData 是隱藏的資料夾,無法移除。ProgramData is a hidden folder, and you cannot remove it. 安裝 VMM 管理伺服器之後,您可以使用 VMM 主控台或使用 VMM 命令殼層,來新增資源庫共用和資源庫伺服器。After the VMM management server is installed, you can add library shares and library servers by using the VMM console or by using the VMM command shell.
  18. 在 [安裝摘要] 頁面上,檢閱您的選項,然後按一下 [安裝]。On the Installation summary page, review your selections and then click Install. [正在安裝功能] 頁面隨即出現,並顯示安裝進度。The Installing features page appears and displays the installation progress.
  19. 在 [成功地完成安裝程式] 頁面上,按一下 [關閉] 完成安裝。On the Setup completed successfully page, click Close to finish the installation. 若要開啟 VMM 主控台,您可以確定已核取 [在此精靈關閉時開啟 VMM 主控台],或者按一下桌面上的 [Virtual Machine Manager 主控台] 圖示。To open the VMM console, you can ensure that Open the VMM console when this wizard closes is checked, or you can click the Virtual Machine Manager Console icon on the desktop.

安裝期間,VMM 會啟用下列防火牆規則。During Setup, VMM enables the following firewall rules. 即使稍後解除安裝 VMM,這些規則仍會有效。These rules remain in effect even if you later uninstall VMM.

  • Windows 遠端管理Windows Remote Management

  • Windows 標準式存放裝置管理Windows Standards-Based Storage Management

注意

如果安裝程式無法順利完成,請參閱 %SYSTEMDRIVE%\ProgramData\VMMLogs 資料夾中的記錄檔。If Setup does not finish successfully, consult the log files in the %SYSTEMDRIVE%\ProgramData\VMMLogs folder. ProgramData 是隱藏的資料夾。ProgramData is a hidden folder.

從命令提示字元中安裝 VMMInstall VMM from a command prompt

您可以從命令提示字元中安裝 VMM。You can install VMM from a command prompt. 安裝媒體包含所有 VMM 功能的 .ini 檔:The installation media contains .ini files for all VMM features:

  • VMServer.ini:VMM 管理伺服器的設定。VMServer.ini: Settings for the VMM management server.
  • VMClient.ini:VMM 主控台的設定。VMClient.ini: Settings for the VMM console.
  • VMServerUninstall.ini:VMM 管理伺服器的解除安裝設定。VMServerUninstall.ini: Uninstallation settings for the VMM management server.

這其中的每一個檔案都包含機碼值組和預設值。Each of these files contain key/value pairs with default values. 這些項目皆已進行註解。先移除註解符號 (#),然後變更其值。These entries are commented out. Remove the comment symbol(#) and change the value.

  1. 使用此程序下方表格中的選項來編輯 VMServer.ini 檔Edit the VMServer.ini file with the options in the table below this procedure
  2. 編輯後,開啟提升權限的命令提示字元,然後使用下列參數執行 setup.exe。After you edit open an elevated command prompt and run setup.exe with the parameters below. 例如,若要搭配 contoso\SQLAdmin01 的 SQL Server 系統管理員帳戶及 contoso\VMMadmin14 的 VMM 服務帳戶,來使用儲存在 C:\Temp 中的 VMServer.ini 檔案,請使用下列命令︰setup.exe /server /i /f C:\Temp\VMServer.ini /SqlDBAdminDomain contoso /SqlDBAdminName SQLAdmin01 /SqlDBAdminPassword password123 /VmmServiceDomain contoso /VmmServiceUserName VMMadmin14 /VmmServiceUserPassword password456 /IACCEPTSCEULAFor example, to use a VMServer.ini file that is stored in C:\Temp with a SQL Server administrator account of contoso\SQLAdmin01 and a VMM service account of contoso\VMMadmin14, use the following command: setup.exe /server /i /f C:\Temp\VMServer.ini /SqlDBAdminDomain contoso /SqlDBAdminName SQLAdmin01 /SqlDBAdminPassword password123 /VmmServiceDomain contoso /VmmServiceUserName VMMadmin14 /VmmServiceUserPassword password456 /IACCEPTSCEULA

VMServer.ini 值VMServer.ini values

選項Option Values 預設值Default
ProductKeyProductKey 使用下列格式的產品金鑰:xxxxx-xxxxx-xxxxx-xxxxx-xxxxxProduct key in the format: xxxxx-xxxxx-xxxxx-xxxxx-xxxxx xxxxx-xxxxx-xxxxx-xxxxx-xxxxxxxxxx-xxxxx-xxxxx-xxxxx-xxxxx
UserNameUserName 選擇性顯示安裝這些功能的使用者名稱。Optional display name for the user who is installing the features. 這並非用於安裝的使用者帳戶。This is not the user account for the installation. 系統管理員Administrator
公司名稱CompanyName 選擇性顯示安裝這些功能的組織名稱。Optional display name for the organization that is installing the features. Microsoft CorporationMicrosoft Corporation
ProgramFilesProgramFiles VMM 檔案的位置。Location for VMM files. C:\Program Files\Microsoft System Center 2012\Virtual Machine ManagerC:\Program Files\Microsoft System Center 2012\Virtual Machine Manager
CreateNewSqlDatabaseCreateNewSqlDatabase 0:使用現有的 Microsoft SQL Server 資料庫。0: Use an existing Microsoft SQL Server database.

1:建立新的 SQL Server 資料庫。1: Create a new SQL Server database.
11
SqlInstanceNameSqlInstanceName 全新或現有的 SQL Server 執行個體名稱。Name of the new or existing instance of SQL Server. MICROSOFT$VMM$MICROSOFT$VMM$
SqlDatabaseNameSqlDatabaseName 全新或現有 SQL Server 資料庫的名稱。Name of the new or existing SQL Server database. VirtualManagerDBVirtualManagerDB
RemoteDatabaseImpersonationRemoteDatabaseImpersonation 0:不模擬 SQL Server 的系統管理員帳戶。0: Do not impersonate the administrator account for SQL Server. 執行 setup.exe 的使用者必須是裝載 SQL Server 的伺服器系統管理員。The user that runs setup.exe must be an administrator for the server that is hosting SQL Server.

1:使用提供的認證模擬 SQL Server 的系統管理員帳戶。1: Impersonate the administrator account for SQL Server by using the provided credentials. 執行 setup.exe 的使用者必須提供 SqlDBAdminName、SqlDBAdminPassword 和 SqlDBAdminDomain 參數的值。The user who runs setup.exe must provide values for the SqlDBAdminName, SqlDBAdminPassword, and SqlDBAdminDomain parameters.
00
SqlMachineNameSqlMachineName 裝載 SQL Server 的伺服器名稱。Name of the server that is hosting SQL Server. 請勿指定 localhost。Do not specify localhost. 請改為指定電腦的實際名稱。Instead, specify the actual name of the computer. <sqlmachinename>
(各種的通訊埠)(various ports) VMM 所使用的連接埠Ports used by VMM IndigoTcpPort:8100IndigoTcpPort: 8100

IndigoHTTPSPort:8101IndigoHTTPSPort: 8101

IndigoNETTCPPort:8102IndigoNETTCPPort: 8102

IndigoHTTPPort:8103IndigoHTTPPort: 8103

WSManTcpPort:5985WSManTcpPort: 5985

BitsTcpPort:443BitsTcpPort: 443
CreateNewLibraryShareCreateNewLibraryShare 0:使用現有的程式庫共用。0: Use an existing library share.

1:建立新的程式庫共用。1: Create a new library share.
11
LibraryShareNameLibraryShareName 要使用或建立的檔案共用名稱。Name of the file share to be used or created. MSSCVMMLibraryMSSCVMMLibrary
LibrarySharePathLibrarySharePath 現有檔案共用的位置,或是將會建立的新檔案共用的位置。Location of the existing file share or the new file share to be created. C:\ProgramData\Virtual Machine Manager Library FilesC:\ProgramData\Virtual Machine Manager Library Files
LibraryShareDescriptionLibraryShareDescription 共用的說明。Description of the share. Virtual Machine Manager 程式庫檔案Virtual Machine Manager Library Files
SQMOptInSQMOptIn 0:不選擇「診斷及使用方式資料」。0: Do not opt in for "Diagnostic and Usage Data".

1:選擇「診斷及使用方式資料1: Opt in for "Diagnostic and Usage Data
11
MUOptInMUOptIn 0:不參加 Microsoft Update。0: Do not opt in to Microsoft Update.

1:參加 Microsoft Update。1: Opt in to Microsoft Update.
00
VmmServiceLocalAccountVmmServiceLocalAccount 0:為 VMM 服務 (scvmmservice) 使用網域帳戶。0: Use a domain account for the VMM service (scvmmservice).

1:為 VMM 服務使用本機系統帳戶。1: Use the Local System account for the VMM service.

若要使用網域帳戶,當您執行 setup.exe 時,必須提供 VMMServiceDomain、VMMServiceUserName 和 VMMServiceUserPassword 參數的值。To use a domain account, when you run setup.exe, provide values for the VMMServiceDomain, VMMServiceUserName, and VMMServiceUserPassword parameters.
00
TopContainerNameTopContainerName 分散式金鑰管理 (DKM) 的容器,例如 “CN=DKM,DC=contoso,DC=com”。Container for Distributed Key Management (DKM); for example, “CN=DKM,DC=contoso,DC=com”. VMMServerVMMServer
HighlyAvailableHighlyAvailable 0:不安裝為高可用性。0: Do not install as highly available.

1:安裝為高可用性。1: Install as highly available.
00
VmmServerNameVmmServerName 高可用性 VMM 管理伺服器的叢集服務名稱。Clustered service name for a highly available VMM management server. 請勿輸入容錯移轉叢集的名稱,或是已安裝高可用性 VMM 管理伺服器所在電腦的名稱。Do not enter the name of the failover cluster or the name of the computer on which the highly available VMM management server is installed. <VMMServerName>
VMMStaticIPAddressVMMStaticIPAddress 如果您不使用動態主機設定通訊協定 (DHCP),則為高可用性 VMM 管理伺服器的叢集服務名稱的 IP 位址。IP address for the clustered service name for a highly available VMM management server, if you are not using Dynamic Host Configuration Protocol (DHCP). 可支援 IPv4 和 IPv6 兩者。Both IPv4 and IPv6 are supported. <comma-separated-ip-for-HAVMM>
升級Upgrade 0:請勿從舊版的 VMM 升級。0: Do not upgrade from a previous version of VMM.

1:從舊版升級。1: Upgrade from a previous version.
11

Setup-exe 參數Setup-exe parameters

參數Parameter 詳細資料Details
/server/server 指定 VMM 管理伺服器的安裝。Specifies installation of the VMM management server.
/i 或 /x/i or /x 指定是否要安裝 (/i) 或解除安裝 (/x) 伺服器。Specifies whether to install (/i) or uninstall (/x) the server.
/f <filename>/f <filename> 指定要使用的 .ini 檔。Specifies the .ini file to use. 請確定此參數指向正確的 .ini 檔。Be sure that this parameter points to the correct .ini file. 如果 setup.exe 找不到 .ini 檔,就會使用其本身的預設值來執行安裝。If setup.exe does not find an .ini file, it will perform the installation by using its own default values.
/VmmServiceDomain <domainName>/VmmServiceDomain <domainName> 為執行 VMM 服務 (scvmmservice) 的帳戶指定網域名稱。Specifies the domain name for the account that is running the VMM service (scvmmservice). 只有在您將 VMServer.ini 中的 VmmServiceLocalAccount 設為 0 時,才能使用此參數。Use this parameter only if you set VmmServiceLocalAccount to 0 in VMServer.ini.
/VmmServiceUserName <userName>/VmmServiceUserName <userName> 為執行 VMM 服務 (scvmmservice) 的帳戶指定使用者名稱。Specifies the user name for the account that is running the VMM service (scvmmservice). 只有在您將 VMServer.ini 中的 VmmServiceLocalAccount 設為 0 時,才能使用此參數。Use this parameter only if you set VmmServiceLocalAccount to 0 in VMServer.ini.
/VmmServiceUserPassword <password>/VmmServiceUserPassword <password> 為執行 VMM 服務 (scvmmservice) 的帳戶指定密碼。Specifies the password for the account that is running the VMM service (scvmmservice). 只有在您將 VMServer.ini 中的 VmmServiceLocalAccount 設為 0 時,才能使用此參數。Use this parameter only if you set VmmServiceLocalAccount to 0 in VMServer.ini.
/SqlDBAdminDomain <domainName>/SqlDBAdminDomain <domainName> 為 SQL Server 資料庫的系統管理員帳戶指定網域名稱。Specifies the domain name for the administrator account for the SQL Server database. 如果目前的使用者並無 SQL Server 的系統管理權限,請使用此參數。Use this parameter if the current user does not have administrative rights to SQL Server.
/SqlDBAdminName <userName>/SqlDBAdminName <userName> 為 SQL Server 資料庫的系統管理員帳戶指定使用者名稱。Specifies the user name for the administrator account for the SQL Server database. 如果目前的使用者並無 SQL Server 的系統管理權限,請使用此參數。Use this parameter if the current user does not have administrative rights to SQL Server.
/SqlDBAdminPassword <password>/SqlDBAdminPassword <password> 為 SQL Server 資料庫的系統管理員帳戶指定密碼。Specifies the password for the administrator account for the SQL Server database. 如果目前的使用者並無 SQL Server 的系統管理權限,請使用此參數。Use this parameter if the current user does not have administrative rights to SQL Server.
/IACCEPTSCEULA/IACCEPTSCEULA 通知接受 Microsoft 軟體授權條款。Notes acceptance of the Microsoft Software License Terms. 這是必要參數。This is a mandatory parameter.

例如,若要搭配 contoso\SQLAdmin01 的 SQL Server 系統管理員帳戶及 contoso\VMMadmin14 的 VMM 服務帳戶,來使用儲存在 C:\Temp 中的 VMServer.ini 檔案,請使用下列命令︰setup.exe /server /i /f C:\Temp\VMServer.ini /SqlDBAdminDomain contoso /SqlDBAdminName SQLAdmin01 /SqlDBAdminPassword password123 /VmmServiceDomain contoso /VmmServiceUserName VMMadmin14 /VmmServiceUserPassword password456 /IACCEPTSCEULAFor example, to use a VMServer.ini file that is stored in C:\Temp with a SQL Server administrator account of contoso\SQLAdmin01 and a VMM service account of contoso\VMMadmin14, use the following command: setup.exe /server /i /f C:\Temp\VMServer.ini /SqlDBAdminDomain contoso /SqlDBAdminName SQLAdmin01 /SqlDBAdminPassword password123 /VmmServiceDomain contoso /VmmServiceUserName VMMadmin14 /VmmServiceUserPassword password456 /IACCEPTSCEULA

解除安裝 VMM 或 VMM 主控台Uninstall VMM or the VMM console

  1. 確定已關閉 VMM 主控台與 VMM 命令殼層。Make sure the VMM console and VMM command shell are closed.
  2. 在安裝 VMM 管理伺服器的電腦上,按一下 [啟動] ,然後再按一下 [控制台] 。On the computer on which the VMM management server is installed, click Start, and then click Control Panel.
  3. 於 [程式] 下,按一下 [解除安裝程式] 。Under Programs, click Uninstall a program. 在 [名稱] 下方,按兩下 [Microsoft System Center Virtual Machine Manager]。Under Name, double-click Microsoft System Center Virtual Machine Manager.
  4. 在 [您要執行什麼動作?] 頁面,按一下 [移除功能] 。On the What would you like to do? page, click Remove features.
  5. 在 [選取要移除的功能] 頁面上,選取 [VMM 管理伺服器] 核取方塊,然後按 [下一步] 。On the Select features to remove page, select the VMM management server check box, and then click Next. 如果您想要解除安裝 VMM 主控台,請選取 [VMM 主控台] 核取方塊。If you want to uninstall the VMM console, select the VMM console check box. 請注意,如果您有高可用性的 VMM 部署,您必須移除 VMM 伺服器與 VMM 主控台。Note that if you have a highly available VMM deploy, you must remove both the VMM server and VMM console.
  6. 在 [資料庫選項] 頁面上,選取您要保留或移除 VMM 資料庫,並視需要保留或移除資料庫認證,然後按 [下一步] 。On the Database options page, select whether you want to retain or remove the VMM database, and, if necessary, credentials for the database, and then click Next.
  7. 在 [摘要] 頁面上,檢視您的選項,然後按一下 [解除安裝]。On the Summary page, review your selections and click Uninstall. 隨即會出現 [正在解除安裝功能] 頁面,並顯示解除安裝進度。The Uninstalling features page appears and uninstallation progress is displayed.
  8. 解除安裝 VMM 管理伺服器後,在 [已順利移除選取的功能 ] 頁面上按一下 [關閉] 。After the VMM management server is uninstalled, on the The selected features were removed successfully page, click Close.

VMM 安裝期間啟用的下列防火牆規則,在您解除安裝 VMM 後仍然有效:The following firewall rules, which were enabled during VMM Setup, remain in effect after you uninstall VMM:

  • 檔案伺服器遠端管理File Server Remote Management

  • Windows 標準式存放裝置管理防火牆規則Windows Standards-Based Storage Management firewall rules

如果安裝程式無法順利完成,請查閱 %SYSTEMDRIVE%\ProgramData\VMMLogs 資料夾中的記錄檔。If there is a problem with setup completing successfully, consult the log files in the %SYSTEMDRIVE%\ProgramData\VMMLogs folder. ProgramData 是隱藏的資料夾。ProgramData is a hidden folder.

從命令列解除安裝 VMMUninstall VMM from the command line

若要解除安裝 VMM,請編輯 VMServerUninstall.ini 檔案,如下文所述。To uninstall VMM edit the VMServerUninstall.ini file as described below. 然後執行 setup.exe 來解除安裝。Then run setup.exe for the uninstall. 例如,若要搭配帳戶 contoso.SQLAdmin01 使用儲存在 C:\Temp 中的 ini 檔案來解除安裝,請輸入︰setup.exe /server /x /f C:\Temp\VMServerUninstall.ini /SqlDBAdminDomain contoso /SqlDBAdminName SQLAdmin01 /SqlDBAdminPassword password123For example, to uninstall using an ini file stored in C:\Temp with an account contoso.SQLAdmin01 type: setup.exe /server /x /f C:\Temp\VMServerUninstall.ini /SqlDBAdminDomain contoso /SqlDBAdminName SQLAdmin01 /SqlDBAdminPassword password123

VMServerUnisntall.iniVMServerUnisntall.ini

選項Option 詳細資料Details 預設值Default value
RemoteDatabaseImpersonationRemoteDatabaseImpersonation 0:本機 SQL Server 安裝。0: Local SQL Server installation.

1:遠端 SQL Server 安裝。1: Remote SQL Server installation.

當您執行 setup.exe時,除非執行 setup.exe 的使用者是 SQL Server 的系統管理員,否則請提供 SqlDBAdminName、SqlDBAdminPassword 及 SqlDBAdminDomain 參數的值。When you run setup.exe, provide a value for the SqlDBAdminName, SqlDBAdminPassword, and SqlDBAdminDomain parameters unless the user who is running setup.exe is an administrator for SQL Server.
00
RetainSqlDatabaseRetainSqlDatabase 0:移除 SQL Server 資料庫。0: Remove the SQL Server database.

1:請勿移除 SQL Server 資料庫1: Do not remove the SQL Server database

若要移除 SQL Server 資料庫,當您執行 setup.exe 時,除非執行安裝程式的使用者是 SQL Server 的系統管理員,否則請提供 SqlDBAdminName、SqlDBAdminPassword 及 SqlDBAdminDomain 參數的值。To remove the SQL Server database, when you run setup.exe, provide a value for the SqlDBAdminName, SqlDBAdminPassword, and SqlDBAdminDomain parameters unless the user who is running Setup is an administrator for SQL Server.
00
ForceHAVMMUninstallForceHAVMMUninstall 0:如果 setup.exe 無法確認此節點是高可用性安裝的最終節點,則不強制解除安裝。0: Do not force uninstallation if setup.exe cannot verify whether this node is the final node of the highly available installation.

1:強制解除安裝。1: Force the uninstallation.

gMSA 帳戶的支援Support for gMSA account

群組受管理的服務帳戶 (gMSA) 透過自動密碼管理、簡化的服務主體名稱 (SPN) 管理和將管理委派給其他系統員管理的能力,協助改善安全性處理方式,並使作業更便利。Group Managed Service Account (gMSA) helps improve the security posture and provides convenience through automatic password management, simplified service principle name (SPN) management and the ability to delegate the management to other administrators.

VMM 2019 支援將 gMSA 用於管理伺服器服務帳戶VMM 2019 supports the use of gMSA for Management server service account.

注意

gMSA (作為 VMM 服務帳戶使用時) 必須具備「以服務方式登入」及「取代處理程序等級權杖」權限。gMSA, when used as VMM Service account, needs to have logon as a service and Replace a process level token permissions.

先決條件Prerequisites

  1. 檢閱本文,並根據其中提供的指導方針建立 gMSA。Review this article and create gMSA as per the guidance available in the article.
  2. 請確定 VMM 管理服務安裝所在的伺服器有權可擷取 gMSA 帳戶的密碼。Make sure that the servers on which VMM Management service would be installed have permissions to retrieve the password of gMSA account.

注意

建立 gMSA 時,您不需要指定 SPN。You do not need to specify the SPN when creating the gMSA. VMM 服務會在 gMSA 設定適當的 SPN。VMM service sets the appropriate SPN on the gMSA.

請使用下列步驟Use the following steps

  1. 開始 VMM 安裝設定。Start the VMM installation setup.

  2. 在 [服務帳戶設定] 頁面上,選取 [群組受管理的服務帳戶] 作為 VMM 服務帳戶的選項。On the Service account configuration page, select Group Managed Service Account as the option for VMM service account.

  3. 以 Domain\gMSA account 格式輸入 gMSA 帳戶詳細資料。Enter the gMSA account details in Domain\gMSA account format.

    gmsa