Scripting to change the IP address a particular site is bound to.

Scripting to change the IP address a particular site is bound to.

am 09.07.2007 18:49:38 von Philip Wigg

Hi,

is it possible to have a script which changes which IP address a
particular site is bound to? For example, if I have a website called
'Phil', which is currently bound to (all unassigned), is there any way
of changing that to be bound to a particular IP address without using
the IIS admin console?

Kind regards,
Phil.

Re: Scripting to change the IP address a particular site is bound to.

am 10.07.2007 02:23:59 von Ken Schaefer

Yes - you can use IIS ADSI provider to do this. Alternatively there is a
built in script (adsutil.vbs) located in c:\inetpub\adminscripts that makes
this easy to do. You can get/set any property in the IIS metabase using this
tool. From memory you'd need to update the bindings and secureBindings
properties

Cheers
Ken


"Philip Wigg" wrote in message
news:1183999778.722098.307570@c77g2000hse.googlegroups.com.. .
> Hi,
>
> is it possible to have a script which changes which IP address a
> particular site is bound to? For example, if I have a website called
> 'Phil', which is currently bound to (all unassigned), is there any way
> of changing that to be bound to a particular IP address without using
> the IIS admin console?
>
> Kind regards,
> Phil.
>

Re: Scripting to change the IP address a particular site is bound to.

am 10.07.2007 04:23:41 von David Wang

On Jul 9, 5:23 pm, "Ken Schaefer"
wrote:
> Yes - you can use IIS ADSI provider to do this. Alternatively there is a
> built in script (adsutil.vbs) located in c:\inetpub\adminscripts that makes
> this easy to do. You can get/set any property in the IIS metabase using this
> tool. From memory you'd need to update the bindings and secureBindings
> properties
>
> Cheers
> Ken
>
> "Philip Wigg" wrote in message
>
> news:1183999778.722098.307570@c77g2000hse.googlegroups.com.. .
>
>
>
> > Hi,
>
> > is it possible to have a script which changes which IP address a
> > particular site is bound to? For example, if I have a website called
> > 'Phil', which is currently bound to (all unassigned), is there any way
> > of changing that to be bound to a particular IP address without using
> > the IIS admin console?
>
> > Kind regards,
> > Phil.- Hide quoted text -
>
> - Show quoted text -

And if you want to edit the Binding/SecureBinding properties instead
of re-assigning the entire list of possible site bindings, you want to
use a tool like:
http://blogs.msdn.com/david.wang/archive/2004/12/02/273681.a spx


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: Scripting to change the IP address a particular site is bound to.

am 10.07.2007 13:48:26 von Philip Wigg

> And if you want to edit the Binding/SecureBinding properties instead
> of re-assigning the entire list of possible site bindings, you want to
> use a tool like:http://blogs.msdn.com/david.wang/archive/2004/12/02/273 681.aspx

That's exactly the sort of thing I was looking for, thanks for your
response.

cheers,
Phil.