Is ServerManager module available on Windows 7 Ultimate ?
I think (but I'm not sure because I never looked at output before) the PS script that I have worked before but after some problems with IIS7 installation it stopped working.
fails with error
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) [Import-Module], FileNotFoundException + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
I found recommendation to run
Dism.exe /Online /Enable-Feature /FeatureName:ServerManager-PSH-Cmdlets
on my machine but it also fails with error
Feature name ServerManager-PSH-Cmdlets is unknown.