[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera!
Hi All,
Hope this is the right place to post this. I'm new to Powershell and scripting. I have an install I need to script and it has several steps. I'm trying to get started on chaning properties within IIS. I've been doing some research that points me to the WMI IISWebservice. When I try -getwmiobject IISwebservice I get :Invalid class. So I'm not sure where I'm going wrong here. What I have to do is change certain properites of IIS. For example I'll need to change the Default Website properties, Directory Security and add IP addresses.
This is just one of the steps if I can start here I'm sure I can figure the rest out.
Thanks in advanced
Yes. I have the installer on a VM that is running IIS and hosts two websites. I open the WMI CIM studio and do a search for IIS but I don't get any hits.
We have IIS 6.0 as well. Did you try the tool that I linked too? No searching required with it. The namespace is hanging out right there off root. \\.\root\MicrosoftIISv2 I don't know what permissions are involved, but this command: Get-WmiObject -ComputerName SERVER -Namespace root\MicrosoftIISv2 -Class IISComputer at least got me an access denied message instead of an Invalid Namespace error.