none
unable to use 'add-windowsfeature' by using images mcr.microsoft.com/windows RRS feed

  • Question

  • When I use  mcr.microsoft.com/windows to create container, when I run command "add-windowsfeature", it returned the following message:

    ****

    The 'add-windowsfeature' command was found in the module 'servermanager', but the module could not be loaded. For more information, run 'Import-Module servermanager'

    ****

    Moreover,  when I further run import-module servermanager, it returned 

    **

    import-module : File C:\Windows\system32\WindowsPowerShell\v1.0\Modules\servermanager\ServerManager.psm1 cannot be loaded because running scripts is disabled on this system. For more information, see
    about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

    ** 

    any ideas to resolve it?

    Ivan Lee


    Thursday, April 25, 2019 9:00 AM