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 $command 
can go through $featurelist , check if role installed or not.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file