Windowsserverdocs: How do I get these WAC PS cmdlets?

Created on 30 Aug 2019  Â·  9Comments  Â·  Source: MicrosoftDocs/windowsserverdocs

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.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 managtech windows-server-thresholprod

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"

All 9 comments

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 . This successfully creates a nupkg file which I can then manually install via the WAC GUI.

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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ElimAdmin picture ElimAdmin  Â·  3Comments

chall3ng3r picture chall3ng3r  Â·  4Comments

wilsonnkwan picture wilsonnkwan  Â·  4Comments

timtribers picture timtribers  Â·  4Comments

gabrielluizbh picture gabrielluizbh  Â·  5Comments