C Cleveland
C Cleveland

Reputation: 35

Invalid namespace root/webadministration on iis 7.0

I am trying to access the namespace webadministration in powershell to get information about web applications running on a list of servers. The servers that I am trying to get information from are running iis 7.0 so I have found that the correct namespace is root/webadministration rather than the old root/microsoftIIsv2, I have tested both just to verify but both result in a invalid namespace exception when run. The server has the web apps stored on a separate drive F: rather than the C: that the OS is on. Is the error due to the separate drives or another reason? Does anyone have any ideas how to fix this? Thanks in advance!

Upvotes: 2

Views: 8313

Answers (1)

Pankaj Kapare
Pankaj Kapare

Reputation: 7802

You may not have IIS Management Scripts and Tools installed on server(s). You can install it from Server Manager -> Web Server Role -> Role Services -> Management Tools -> IIS Management Scripts and Tools. Make sure you have checked option "IIS Management Scripts and Tools" option as shown in below screenshot.

enter image description here

Upvotes: 8

Related Questions