Share via


Install IIS 6 WMI Compatibility and IIS Management Scripts and Tools on a remote machine programmatically

Question

Tuesday, December 9, 2014 2:10 AM

I've a requirement that I need to install using c#/batch script/powershell

  • IIS 6 WMI Compatibility
  • IIS Management Scripts and Tools

on huge number of remote servers. These servers might be running windows server 2012 or windows server 2008 or windows server 2003. Please help. Thanks in advance.

All replies (3)

Monday, December 15, 2014 3:15 AM âś…Answered

Hi,

Without configuring WinRM service, maybe we have to run the powershell command line on win 12 server self instead of remotely.

For more information, please refer to the document:

http://redmondmag.com/articles/2012/07/01/quick-and-easy-web-servers-with-windows-powershell.aspx


Tuesday, December 9, 2014 11:23 PM

Hi,

Powershell command:

PS C:\> Import-Module servermanager

PS C:\> Add-WindowsFeature Web-WMI,Web-Scripting-Tools

For more information, please refer to the document:

http://technet.microsoft.com/en-gb/library/cc732757.aspx


Thursday, December 11, 2014 2:34 AM

Thanks a lot for the reply.

It is asking me to configure WinRM service when I'm running it for Windows 2012 R2 servers. Is there any way I can configure it using powershell remotely?