IIS 7 and Above
App Pools and PowerShell
Last post Nov 13, 2009 06:58 AM by nanomage
Jul 29, 2009 04:50 PM|dhanson|LINK
I need to know how to list all properties of a AppPool. I have tried several different things but I need to be able to find a property name so I know how to set it.
For Example one of the methods I have tried
Select-Object IIS:\AppPools\MyAppPool | Get-Member -memberType property
I believe I won't have an issue setting the value once I know what the name of the value is I need to set.
If someone can teach me to fish I would appreciate that...
Aug 03, 2009 05:32 AM|Leo Tang - MSFT|LINK
You can try the following commands:
Get-Item IIS:\AppPools\MyAppPool | Get-Member –memberType property
Get-Item IIS:\AppPools\MyAppPool | Select-Object *
You can use the PowerShell Help System to get more help information:
Get-Help <cmdlet name> -detailed
I hope this information helpful for you.
Aug 03, 2009 07:30 PM|dhanson|LINK
That was what I was doing wrong...
Nov 13, 2009 06:58 AM|nanomage|LINK
I need some helkp here.
Could you please tell me how can i get all web-sites assigned to a given apllication pool.
say, i have an application pool iis:\apppools\menelaus
Which PS commands should i use to see the list of sites running in it (or, at least, to see if it is or is not empty)
thank you in advance.