Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
```powershell
# Add the module to the current session
Import-Module "$env:ProgramFiles\windows admin center\PowerShell\Modules\ExtensionTools"
Import-Module "$env:ProgramFiles\WindowsAdminCenter\PowerShellModules\Microsoft.WindowsAdminCenter.ExtensionTools\Microsoft.WindowsAdminCenter.ExtensionTools.psd1"
# Available cmdlets: Get-Feed, Add-Feed, Remove-Feed, Get-Extension, Install-Extension, Uninstall-Extension, Update-Extension

# List feeds
Get-Feed "https://wac.contoso.com"
Get-WACFeed -Endpoint "https://wac.contoso.com"

# Add a new extension feed
Add-Feed -GatewayEndpoint "https://wac.contoso.com" -Feed "\\WAC\our-private-extensions"
Add-WACFeed -Endpoint "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"
Remove-WACFeed -Endpoint "https://wac.contoso.com" -Feed "\\WAC\our-private-extensions"

# List all extensions
Get-Extension "https://wac.contoso.com"
Get-WACExtension -Endpoint "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-WACExtension -Endpoint "https://wac.contoso.com" -ExtensionID "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-WACExtension -Endpoint "https://wac.contoso.com" -ExtensionID "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"
Install-WACExtension -Endpoint "https://wac.contoso.com" -ExtensionID "msft.sme.certificate-manager" -Version "0.133.0"

# Uninstall-Extension
Uninstall-Extension "https://wac.contoso.com" "msft.sme.containers"
Uninstall-WACExtension -Endpoint "https://wac.contoso.com" -ExtensionID "msft.sme.containers"

# Update-Extension
Update-Extension "https://wac.contoso.com" "msft.sme.containers"
Update-WACExtension -Endpoint "https://wac.contoso.com" -ExtensionID "msft.sme.containers"

# Update all extensions
Get-WACExtension -Endpoint "https://wac.contoso.com" | ForEach-Object {Update-WACExtension -Endpoint "https://wac.contoso.com" -ExtensionId $_.id}
```

> [!NOTE]
> You must be gateway administrator to modify Windows Admin Center extensions with PowerShell.
> You must be gateway administrator to modify Windows Admin Center extensions with PowerShell.