Deny new connections with script

Deny new connections with script

Post by Dave » Fri, 17 Jun 2005 05:27:16


Hi,
I am i need of a script that will set a publishing point to "Deny new
Connections".
I have a script that will start and stop and even change the source. but i
cannot figure out how to do it to deny connections..
I use this to stop and start:

Set SrvObj = createobject("WMSServer.server")
SrvObj.PublishingPoints("PubPointName").stop()
SrvObj.PublishingPoints("PubPointName").start()

Can i change the start/stop to something to deny connections?

Thanks
Dave
 
 
 

Deny new connections with script

Post by UmF2aSBSYW » Sat, 18 Jun 2005 06:13:04

Yes you can.
SrvObj.PublishingPoints("PubPointName").AllowClientsToConnect = false

The windows media services SDK documentation has more info on other such
methods available to set publishing point properties.

HTH,
Ravi

 
 
 

Deny new connections with script

Post by Dave » Wed, 22 Jun 2005 03:26:04

Perfect! Thanks..