![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | What no IIS7 PowerShell Examples (yet)? http://www.iis.net/default.aspx Are there VBScript examples? Yes. Are there CSharp examples? Yes. Are there Cmd.exe examples? Yes. Are there PowerShell examples? No! How to Use Microsoft.Web.Administration http://www.iis.net/default.aspx?tabi...tabid=25&i=952 Also what about PowerShell's usage both with IIS7 and without IIS7's usage of Vista's four protocol listeners: HTTP.sys, NET.TCP, NET.PIPE, and NET.MSMQ? |
My System Specs![]() |
| | #2 (permalink) |
| | Re: What no IIS7 PowerShell Examples (yet)? I will ping the IIS gurus and see if we can get some samples out. -- Abhishek Agrawal [MSFT] http://spaces.msn.com/abhishek225 Windows PowerShell Team Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. "Flowering Weeds" <floweringnoweedsno@hotmail.com> wrote in message news:OcNXtOogGHA.5104@TK2MSFTNGP04.phx.gbl... > > > http://www.iis.net/default.aspx > > Are there VBScript examples? Yes. > > Are there CSharp examples? Yes. > > Are there Cmd.exe examples? Yes. > > Are there PowerShell examples? No! > > How to Use Microsoft.Web.Administration > http://www.iis.net/default.aspx?tabi...tabid=25&i=952 > > Also what about PowerShell's usage both with IIS7 > and without IIS7's usage of Vista's four protocol > listeners: HTTP.sys, NET.TCP, NET.PIPE, and > NET.MSMQ? > > > > > > > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: What no IIS7 PowerShell Examples (yet)? i haven't actually played around with this yet, but looking at the code provided in the link, the following (or facsimile) comes to mind: # # Mind you, I'm totally making this up # $serverManager = new-object Microsoft.Web.Administration.ServerManager $serverManager.Sites.Add("Racing Cars Site", "http", ":8080:", "d:\\inetpub\\wwwroot\\racing") # # I'm totally making up the next line, I would have to really # install to be sure. I'm guessing at a method called Item # as it's a common COM method for designating a specific, um, item # $serverManager.Sites.Item("Racing Cars Site").ServerAutoStart = $true $serverManager.Update() :^) - looks a bunch like C# jim -- James W. Truher [MSFT] Windows PowerShell Program Management Microsoft Corporation This posting is provided "AS IS" with no warranties, and confers no rights. "Flowering Weeds" <floweringnoweedsno@hotmail.com> wrote in message news:OcNXtOogGHA.5104@TK2MSFTNGP04.phx.gbl... > > > http://www.iis.net/default.aspx > > Are there VBScript examples? Yes. > > Are there CSharp examples? Yes. > > Are there Cmd.exe examples? Yes. > > Are there PowerShell examples? No! > > How to Use Microsoft.Web.Administration > http://www.iis.net/default.aspx?tabi...tabid=25&i=952 > > Also what about PowerShell's usage both with IIS7 > and without IIS7's usage of Vista's four protocol > listeners: HTTP.sys, NET.TCP, NET.PIPE, and > NET.MSMQ? > > > > > > > |
My System Specs![]() |
| | #4 (permalink) |
| XP/Vista/Server2008 | Re: What no IIS7 PowerShell Examples (yet)? Try this link is a good start and he has posted other blogs as well Accessing Microsoft.Web.Administration through PowerShell (Part I) - Tobin Titus Blog |
My System Specs![]() |
| | #5 (permalink) |
| | Re: What no IIS7 PowerShell Examples (yet)? see http://richardsiddaway.spaces.live.c...3E96!995.entry http://richardsiddaway.spaces.live.c...3E96!983.entry http://richardsiddaway.spaces.live.c...3E96!982.entry http://richardsiddaway.spaces.live.c...3E96!976.entry http://richardsiddaway.spaces.live.c...3E96!973.entry -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty Blog: http://richardsiddaway.spaces.live.com/ PowerShell User Group: http://www.get-psuguk.org.uk "MattDuguid" wrote: Quote: > > Try this link is a good start and he has posted other blogs as well > 'Accessing Microsoft.Web.Administration through PowerShell (Part I) - > Tobin Titus Blog' > (http://blogs.iis.net/tobintitus/arch...istration.aspx) > > > -- > MattDuguid > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Help to get PowerShell to add/edit/delete IIS Manager Users IIS7/2 | PowerShell | |||
| Examples of PowerShell scripts | PowerShell | |||
| Creating an IIS7 application with PowerShell | PowerShell | |||
| powershell.exe -? examples are wrong, I think | PowerShell | |||