![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #2 (permalink) | ||||||||||||
| Guest | RE: IIS6 and PoweShell Since no one has piped in I'll try to help point you in the right directory. First I don't know any PowerShell scripts for IIS6. In order for a script to access IIS it needs to go through IIS ADSI provider regardless of the language. There are a _lot_ of scripts showing how to do this in VBScript and information here on how to convert from VBScript to Poswershell Check out the below URL for a start http://www.microsoft.com/technet/scr....mspx?mfr=true The first part of what you'll need to do is to instanicate an IISWebService. Here is one way $webService = Get-WMIObject -namespace root/MicrosoftIISv2 -class IISWebService To get a list of the methods properties use Get-Member $webService | Get-Member To get a list of all the classes within the ADSI provider for IIS namespace use Get-WMIObject -namespace root/MicrosoftIISv2 -list All of the above assumes you will be creating this on the local machine. To do this remotely I'd suggest using COM rather than Get-WMIObject. I've had problems with WMI when creating the class via PS where credidential were required. Look at the SWbemLocator COM component. Again there are a lot of samples showing how to do this in VBScript. new-object -COM WbemScripting.SWbemLocator will get you one of these. "dm3281" wrote:
| ||||||||||||
| | #3 (permalink) | ||||||||||||
| Guest | Re: IIS6 and PoweShell Check this URL, http://blog.crowe.co.nz/archive/2006/07/11/669.aspx The sample scripts are in VBscript but I'm sure you can easly convert it to PowerShell. -Enumerating Application Pools -Enumerating Applications in an Application Pool -Enumerating Application Pool Properties -Enumerating the Periodic Recycling of all Application Pools -Creating an Application Pool -Creating an Application Pool to run with a specific identity -Starting an Application Pool Shay http://scriptolog.blogspot.com
| ||||||||||||
| | #4 (permalink) | ||||||||||||
| Guest | Re: IIS6 and PoweShell dm3281 wrote:
mentioned. If not, this could be an interesting series of blog posts. Marco -- Microsoft MVP - Windows PowerShell http://www.microsoft.com/mvp PowerGadgets MVP http://www.powergadgets.com/mvp Blog: http://marcoshaw.blogspot.com | ||||||||||||
| | #5 (permalink) | ||||||||||||||||||||||||
| Guest | Re: IIS6 and PoweShell Thanks all -- I am reviewing content and if I have further questions, will respond. "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message news:ukh0q7pCIHA.4476@xxxxxx
| ||||||||||||||||||||||||
| |
| |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PowerShell 1.0 & IIS6 & Virtual directory | philippe | PowerShell | 1 | 05-21-2008 04:27 AM |
| [BUG]webdav(iis6)-net use * is not working from vista rc1 | =?Utf-8?B?QW5kcmV5IFNrdm9ydHNvdg==?= | Vista networking & sharing | 5 | 11-19-2006 08:28 AM |
| Load / run .ps1 script on poweshell commandline (like CALL) | peterchen | PowerShell | 3 | 10-18-2006 02:38 AM |