Import-Module Servermanager module not found in any module directory RRS feed

  • Question

  • Hi,

    I need to run import-module servermanager to get-windowsfeature in Windows 2008 r2 server which is core, but getting below error. Is there any solution for that and or any other way around to get a list of which roles and features are installed in this core OS. Also, by which command I can confirm it's OS is core.

    Import-Module : The specified module 'servermanager' was not loaded because no
    valid module file was found in any module directory.
    At line:1 char:14
    + import-module <<<<  servermanager
        + CategoryInfo          : ResourceUnavailable: (servermanager:String) [Imp
       ort-Module], FileNotFoundException
        + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Comm

    Wednesday, December 23, 2020 8:31 AM

All replies