Putting servermanager module on a non-2008 system?
i'm wondering if it's possible install servermanager module powershell on non-windows 2008 system, such windows 7 client. i'm writing script inventory servers , being able query servers installed features/roles using servermanager module nice. have remote server administration tools windows 7 installed import module command doesn't seem work. thanks.
just follow on this, managed workaround using invoke-command.
$strcomputer = "someserver" $strcommand = { import-module servermanager ; get-windowsfeature | {$_.installed -eq $true} | select displayname,name,installed,featuretype} $featurelist = invoke-command -computername $strcomputer -scriptblock $commandcan go through $featurelist , check if role installed or not.
Windows Server > Windows PowerShell
Comments
Post a Comment