安裝 Windows Admin CenterInstall Windows Admin Center

適用於:Windows Admin Center、Windows Admin Center 預覽版Applies to: Windows Admin Center, Windows Admin Center Preview

本主題說明如何在 Windows 電腦或伺服器上安裝 Windows Admin Center,讓多個使用者可以使用網頁瀏覽器來存取 Windows Admin Center。This topic describes how to install Windows Admin Center on a Windows PC or on a server so that multiple users can access Windows Admin Center using a web browser.

提示

對 Windows Admin Center 不熟悉?New to Windows Admin Center? 深入了解 Windows Admin Center立即下載Learn more about Windows Admin Center or Download now.

判斷您的安裝類型Determine your installation type

請參閱安裝選項,其中包括支援的作業系統Review the installation options which includes the supported operating systems. 若要在 Azure 中的 VM 上安裝 Windows Admin Center,請參閱<在 Azure 中部署 Windows Admin Center>。To install Windows Admin Center on a VM in Azure, see Deploy Windows Admin Center in Azure.

安裝在 Windows 10 上Install on Windows 10

安裝在 Windows 10 時,Windows Admin Center 預設會使用連接埠 6516,但您可以選擇指定不同的連接埠。When you install Windows Admin Center on Windows 10, it uses port 6516 by default, but you have the option to specify a different port. 您也可以建立桌面捷徑,並且讓 Windows Admin Center 管理您的 TrustedHosts。You can also create a desktop shortcut and let Windows Admin Center manage your TrustedHosts.

注意

處於工作群組環境,或在網域中使用本機系統管理員認證時,需要修改 TrustedHosts。Modifying TrustedHosts is required in a workgroup environment, or when using local administrator credentials in a domain. 如果您選擇省略這項設定,就必須手動設定 TrustedHostsIf you choose to forego this setting, you must configure TrustedHosts manually.

當您從 [開始] 功能表啟動 Windows Admin Center 時,其會在預設瀏覽器中開啟。When you start Windows Admin Center from the Start menu, it opens in your default browser.

第一次啟動 Windows Admin Center 時,您會在桌面的通知區域中看到圖示。When you start Windows Admin Center for the first time, you'll see an icon in the notification area of your desktop. 在此圖示上按一下滑鼠右鍵,然後選擇 [開啟] 在預設瀏覽器中開啟工具,或選擇 [結束] 以結束背景處理程序。Right-click this icon and choose Open to open the tool in your default browser, or choose Exit to quit the background process.

安裝在具有桌面體驗的 Windows ServerInstall on Windows Server with desktop experience

在 Windows Server 上,Windows Admin Center 會安裝為網路服務。On Windows Server, Windows Admin Center is installed as a network service. 您必須指定服務接聽的連接埠,而且此服務需要 HTTPS 的憑證。You must specify the port that the service listens on, and it requires a certificate for HTTPS. 安裝程式可以建立自我簽署憑證以供測試,您也可以提供電腦上已安裝憑證的指紋。The installer can create a self-signed certificate for testing, or you can provide the thumbprint of a certificate already installed on the computer. 如果您使用產生的憑證,此憑證將會與伺服器的 DNS 名稱相符。If you use the generated certificate, it will match the DNS name of the server. 如果您使用自己的憑證,請確定憑證中提供的名稱符合電腦名稱 (不支援萬用字元憑證)。您也可以選擇讓 Windows Admin Center 管理您的 TrustedHosts。If you use your own certificate, make sure the name provided in the certificate matches the machine name (wildcard certificates are not supported.) You are also given the choice to let Windows Admin Center manage your TrustedHosts.

注意

處於工作群組環境,或在網域中使用本機系統管理員認證時,需要修改 TrustedHosts。Modifying TrustedHosts is required in a workgroup environment, or when using local administrator credentials in a domain. 如果您選擇省略這項設定,就必須手動設定 TrustedHostsIf you choose to forego this setting, you must configure TrustedHosts manually

安裝完成後,請從遠端電腦開啟瀏覽器,並瀏覽至安裝程式最後一個步驟中顯示的 URL。Once the install is complete, open a browser from a remote computer and navigate to URL presented in the last step of the installer.

警告

自動產生的憑證將於安裝後 60 天過期。Automatically generated certificates expire 60 days after installation.

安裝在 Server CoreInstall on Server Core

如果您有 Windows Server 的 Server Core 安裝,則可以從命令提示字元 (以系統管理員身分執行) 安裝 Windows Admin Center。If you have a Server Core installation of Windows Server, you can install Windows Admin Center from the command prompt (running as Administrator). 分別使用 SME_PORTSSL_CERTIFICATE_OPTION 引數,指定連接埠和 SSL 憑證。Specify a port and SSL certificate by using the SME_PORT and SSL_CERTIFICATE_OPTION arguments respectively. 如果您要使用現有的憑證,請使用 SME_THUMBPRINT 來指定其指紋。If you're going to use an existing certificate, use the SME_THUMBPRINT to specify its thumbprint.

警告

安裝 Windows Admin Center 會重新啟動 WinRM 服務,這將會中斷所有遠端 PowerShells 工作階段。Installing Windows Admin Center will restart the WinRM service, which will sever all remote PowerShells sessions. 建議您從本機 Cmd 或 PowerShell 安裝。It is recommended that you install from a local Cmd or PowerShell. 如果您要使用會在 WinRM 服務重新啟動時中斷的自動化解決方案進行安裝,您可以將參數 RESTART_WINRM=0 新增至安裝引數,但必須重新啟動 WinRM,Windows Admin Center 才會運作。If you are installing with an automation solution that would be broken by the WinRM service restarting, you can add the parameter RESTART_WINRM=0 to the install arguments, but WinRM must be restarted for Windows Admin Center to function.

執行下列命令以安裝 Windows Admin Center,並自動產生自我簽署憑證:Run the following command to install Windows Admin Center and automatically generate a self-signed certificate:

msiexec /i <WindowsAdminCenterInstallerName>.msi /qn /L*v log.txt SME_PORT=<port> SSL_CERTIFICATE_OPTION=generate

執行下列命令以使用現有憑證來安裝 Windows Admin Center:Run the following command to install Windows Admin Center with an existing certificate:

msiexec /i <WindowsAdminCenterInstallerName>.msi /qn /L*v log.txt SME_PORT=<port> SME_THUMBPRINT=<thumbprint> SSL_CERTIFICATE_OPTION=installed

警告

不要使用點斜線相對路徑標記法 (例如,.\<WindowsAdminCenterInstallerName>.msi),從 PowerShell 叫用 msiexecDon't invoke msiexec from PowerShell using dot-slash relative path notation (like, .\<WindowsAdminCenterInstallerName>.msi). 該標記法不受支援,而安裝將會失敗。That notation isn't supported, the installation will fail. 移除 .\ 前置詞,或指定 MSI 的完整路徑。Remove the .\ prefix or specify the full path to the MSI.

升級至新版本的 Windows Admin CenterUpgrading to a new version of Windows Admin Center

您可以使用 Microsoft Update 或以手動安裝的方式更新非預覽版的 Windows Admin Center。You can update non-preview versions of Windows Admin Center by using Microsoft Update or by manually installing.

升級至新版本的 Windows Admin Center 時會保留您的設定。Your settings are preserved when upgrading to a new version of Windows Admin Center. 我們並未正式支援升級 Windows Admin Center 的 Insider Preview 版本,因為我們認為最好執行全新安裝,但我們不會將其封鎖。We don't officially support upgrading Insider Preview versions of Windows Admin Center - we think it's better to do a clean install - but we don't block it.

更新 Windows Admin Center 所使用的憑證Updating the certificate used by Windows Admin Center

當您將 Windows Admin Center 部署為服務時,必須提供 HTTPS 的憑證。When you have Windows Admin Center deployed as a service, you must provide a certificate for HTTPS. 若要稍後再更新此憑證,請重新執行安裝程式,然後選擇 changeTo update this certificate at a later time, re-run the installer and choose change.