Windows Admin Center は拡張可能なプラットフォームとして構築されています。各接続の種類とツールは、個別にインストール、アンインストール、更新が可能な拡張機能です。 Microsoft や他の開発者から発行された新しい拡張機能を検索し、Windows Admin Center インストール全体を更新することなく、個別にインストールおよび更新できます。 また、個別の NuGet フィードまたはファイル共有を構成し、組織内で使用する拡張機能を配布することもできます。
拡張機能のインストール
Windows Admin Center には、指定された NuGet フィードから使用できる拡張機能が表示されます。 既定で、Windows Admin Center では、Microsoft や他の開発者から発行された拡張機能をホストする Microsoft の公式 NuGet フィードが示されます。
- Select the Settings button in the top-right > In the left pane, select Extensions.
- The Available Extensions tab lists the extensions on the feed that are available for installation.
- Select on an extension to view the extension description, version, publisher and other information in the Details pane.
- Select Install to install an extension. この変更を行うために、ゲートウェイを特権モードで実行する必要がある場合は、ユーザー アカウント制御 (UAC) の昇格プロンプトが表示されます。 インストールが完了すると、ブラウザーが自動的に更新され、Windows Admin Center に新しい拡張機能がインストールされ、再度読み込まれます。 インストール対象の拡張機能が以前にインストールされた拡張機能の更新プログラムである場合、[最新に更新する] ボタンを選択して更新プログラムをインストールできます。 You can also go to the Installed Extensions tab to view installed extensions and see if an update is available in the Status column.
別のフィードからの拡張機能のインストール
Windows Admin Center は複数のフィードをサポートしており、一度に複数のフィードからパッケージを表示および管理できます。 NuGet V2 API またはファイル共有をサポートする NuGet フィードを Windows Admin Center に追加して、拡張機能をインストールできます。
- Select the Settings button in the top-right > In the left pane, select Extensions.
- On the right pane, select the Feeds tab.
- Select the Add button to add another feed. NuGet フィードの場合は、NuGet V2 フィードの URL を入力します。 NuGet フィード プロバイダーまたは管理者は、URL 情報を指定できる必要があります。 ファイル共有の場合は、拡張機能パッケージ ファイル (.nupkg) が格納されているファイル共有の完全パスを入力します。 フィードとしてファイル共有を追加する場合は、次の基準を満たしている必要があります。
- ファイルへのアクセスは NTAuthority\Network Service に付与される必要があります
- ファイル パスに C:\Users フォルダーを含めることはできません
- 操作モードが "開発" に設定されている場合を除き、ファイル共有のパッケージに署名する必要があります
- Select Add. この変更を行うために、ゲートウェイを特権モードで実行する必要がある場合は、UAC の昇格プロンプトが表示されます。 このプロンプトは、デスクトップ モードで Windows Admin Center を実行している場合にのみ表示されます。
The Available Extensions list shows extensions from all registered feeds. You can check which feed each extension is from using the Package Feed column.
拡張機能のアンインストール
以前にインストールした拡張機能をアンインストールできます。また、Windows Admin Center のインストールの一部として事前にインストールされていたツールをアンインストールすることもできます。
- Select the Settings button in the top-right > In the left pane, select Extensions.
- Select the Installed Extensions tab to view all installed extensions.
- Choose an extension to uninstall, then select Uninstall.
アンインストールが完了すると、ブラウザーは自動的に更新され、拡張機能が削除された状態で Windows Admin Center が再度読み込まれます。 If you uninstalled a tool that was preinstalled as part of Windows Admin Center, the tool is available for reinstallation in the Available Extensions tab.
インターネットに接続されていないコンピューターへの拡張機能のインストール
インターネットに接続されていないコンピューターまたはプロキシの背後にあるコンピューターに Windows Admin Center がインストールされている場合、Windows Admin Center フィードから拡張機能にアクセスおよびインストールできない場合があります。 拡張機能パッケージを手動でまたは PowerShell スクリプトを使用してダウンロードし、ファイル共有またはローカル ドライブからパッケージを取得するように Windows Admin Center を構成できます。
拡張機能パッケージを手動でダウンロードする
On another computer that has internet connectivity, open a web browser and navigate to the following URL: https://dev.azure.com/WindowsAdminCenter/Windows%20Admin%20Center%20Feed/_packaging?_a=feed&feed=WAC
- 拡張機能パッケージを表示するには、Microsoft アカウントを作成してサインインすることが必要な場合もあります。
インストールするパッケージの名前を選択すると、パッケージの詳細ページが表示されます。
Select on the Download link in the top navigation bar of the package details page and download the .nupkg file for the extension.
ダウンロードするすべてのパッケージについて、手順 2 と 3 を繰り返します。
Windows Admin Center がインストールされているコンピューターからアクセスできる共有ファイル、または Windows Admin Center がインストールされているコンピューターのローカル ディスクにパッケージ ファイルをコピーします。
PowerShell スクリプトを使用したパッケージのダウンロード
NuGet フィードから NuGet パッケージをダウンロードするためにインターネット上で利用できるスクリプトは多数あります。 ここでは、Microsoft のシニア プログラム マネージャーである Jon Galloway が提供しているスクリプトを使用します。
- As described in the blog post, install the script as a NuGet package, or copy and paste the script into the PowerShell ISE.
- スクリプトの最初の行を NuGet フィードの v2 URL に変更します。 Windows Admin Center の公式フィードからパッケージをダウンロードする場合は、以下の URL を使用します。
$feedUrlBase = "https://aka.ms/sme-extension-feed"
- スクリプトを実行すると、フィードからローカル フォルダー %USERPROFILE%\Documents\NuGetLocal にすべての NuGet パッケージがダウンロードされます。
- 指示に従って、別のフィードから拡張機能をインストールします。
PowerShell を使用して拡張機能を管理する
Windows Admin Center プレビューには、ゲートウェイ拡張機能を管理する PowerShell モジュールが含まれています。
# Add the module to the current session
Import-Module "$env:ProgramFiles\windows admin center\PowerShell\Modules\ExtensionTools"
# Available cmdlets: Get-Feed, Add-Feed, Remove-Feed, Get-Extension, Install-Extension, Uninstall-Extension, Update-Extension
# List feeds
Get-Feed "https://wac.contoso.com"
# Add a new extension feed
Add-Feed -GatewayEndpoint "https://wac.contoso.com" -Feed "\\WAC\our-private-extensions"
# Remove an extension feed
Remove-Feed -GatewayEndpoint "https://wac.contoso.com" -Feed "\\WAC\our-private-extensions"
# List all extensions
Get-Extension "https://wac.contoso.com"
# Install an extension (locate the latest version from all feeds and install it)
Install-Extension -GatewayEndpoint "https://wac.contoso.com" "msft.sme.containers"
# Install an extension (latest version from a specific feed, if the feed is not present, it will be added)
Install-Extension -GatewayEndpoint "https://wac.contoso.com" "msft.sme.containers" -Feed "https://aka.ms/sme-extension-feed"
# Install an extension (install a specific version)
Install-Extension "https://wac.contoso.com" "msft.sme.certificate-manager" "0.133.0"
# Uninstall-Extension
Uninstall-Extension "https://wac.contoso.com" "msft.sme.containers"
# Update-Extension
Update-Extension "https://wac.contoso.com" "msft.sme.containers"
Note
PowerShell を使用して Windows Admin Center の拡張機能を変更するには、ゲートウェイ管理者である必要があります。