locked
Uninstall Package from Nano Server Package provider RRS feed

  • Question

  • Hi All,

    I Installed a few packages using the online Nano Server Package Provider but when I try to remove them they are not being removed.

    This is the cmdlet that I'm using:

    get-Package Microsoft-NanoServer-Storage-Package | Uninstall-Package -Force

    or 

    Uninstall-Package Microsoft-NanoServer-Storage-Package

    Any Idea ?

    Thanks,

    Wednesday, May 25, 2016 10:59 AM

Answers

  • It is correct in TP5, we have not implemented uninstall-package for NanoServerPackage provider. it is in our radar that we will add this support for WS 2016 RTM. meanwhile, please use DISM cmdlet remove-WindowsPackage -packagename <name of the package> -online to do so. Thanks for your feedback!
    Friday, May 27, 2016 5:50 PM
  • Many thanks for confirming this.

    I'll use DISM for now.

    • Marked as answer by Simon201 Saturday, May 28, 2016 12:11 PM
    Saturday, May 28, 2016 12:11 PM

All replies

  • It is correct in TP5, we have not implemented uninstall-package for NanoServerPackage provider. it is in our radar that we will add this support for WS 2016 RTM. meanwhile, please use DISM cmdlet remove-WindowsPackage -packagename <name of the package> -online to do so. Thanks for your feedback!
    Friday, May 27, 2016 5:50 PM
  • Many thanks for confirming this.

    I'll use DISM for now.

    • Marked as answer by Simon201 Saturday, May 28, 2016 12:11 PM
    Saturday, May 28, 2016 12:11 PM
  • btw: there is no remove-NanoServerPackage with RTM Version...
    Sunday, November 6, 2016 11:47 AM
  • you can use the Uninstall-Package 

    see https://docs.microsoft.com/en-us/powershell/module/packagemanagement/?view=powershell-5.1


    • Edited by Nux.Live Saturday, October 28, 2017 8:26 PM
    Saturday, October 28, 2017 8:26 PM