338140 (1) [Avatar] Offline
#1
Trying to run Listing 12.3 to list websites on my IIS from a workstation.
I am getting an error...

invalid namespace "root\webadministration"

What does this typically mean?
I am running the shell as admin and I have domain admin privileges on the IIS server.
Running the script on a Windows 7 workstation.
IIS is on Windows Server 2012; both in a domain environment.

***********
Update: I made some progress by installing the necessary IIS Management Scripts and Tools...now I'm getting a different error:

expand-property: the term 'expand-property' is not recognized as the name of a cmdlet, function, script file..." etc.

Need some help figuring that one out.
Terry Wrennall (1) [Avatar] Offline
#2
expandproperty is used with a select-object to convert that object to a string, is that where you are using it?