I've tried installing both Windows Admin Center version 1904.1 and preview version 1908. I don't see any of these PowerShell cmdlets available.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Did you try this: Import-Module "$env:ProgramFiles\windows admin center\PowerShell\Modules\ExtensionTools"
Ah..sorry. The first line, thank you!
Do you know if there are any plans to have a way to manage UI Extensions via PowerShell? Is there any way currently to install/uninstall a UI Extension without the Windows Admin Center GUI?
Thanks for your help.
In this doc, there are a few examples for install-extension. Are these what you are looking for?
I'm trying with the Install-Extension cmdlet but so far have not had luck. We are developing a WAC extension and have built a nupkg by authoring a nuspec file and running nuget pack
Since we are still in early stages, we do not want to publish this package in a public place yet.
Is there any way to install the WAC extension via the command line when we have a local nupkg file?
Have you tried installing the package through the UI? I would suggest trying this first, to rule out whether it's a problem with the package itself or the PS cmdlet.
To install through the UI, you don't need to publish the package publicly. You can place it on a file share, or even just point to the local folder where the pkg is. In WAC Extension Manager, go to Feeds tab, add the file path as the feed URL, for example "c:\users\brian\extensions", and your package should show up in the "Available Extensions" tab.
Yes, installing the package through the UI does work. But I would like to be able to install/uninstall the extension through a script. Is this possible? Thanks for the help.
Just tried right now and seems to work for me. Is this what you tried:
Install-Extension -GatewayEndpoint [gateway URL] [NuGet package ID] -Feed [feed URL]
For example, if you installed WAC on Win10 with default port:
Install-Extension -GatewayEndpoint "https://localhost:6516" "microsoft.security" -feed "c:\users\brian"
It works! Thank you very much for your help. I appreciate it! Happy Friday.
You're welcome, glad to help :)
Most helpful comment
Just tried right now and seems to work for me. Is this what you tried:
Install-Extension -GatewayEndpoint [gateway URL] [NuGet package ID] -Feed [feed URL]
For example, if you installed WAC on Win10 with default port:
Install-Extension -GatewayEndpoint "https://localhost:6516" "microsoft.security" -feed "c:\users\brian"