Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - What no IIS7 PowerShell Examples (yet)?

Reply
 
Old 05-28-2006   #1 (permalink)
Flowering Weeds


 
 

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 SpecsSystem Spec
Old 05-29-2006   #2 (permalink)
Abhishek Agrawal [MSFT]


 
 

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 SpecsSystem Spec
Old 05-31-2006   #3 (permalink)
James Truher [MSFT]


 
 

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 SpecsSystem Spec
Old 01-08-2008   #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 SpecsSystem Spec
Old 01-08-2008   #5 (permalink)
RichS


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46