Assistance with ADSUtil.VBS

Assistance with ADSUtil.VBS

am 24.01.2008 15:52:54 von John

Trying to create a virtual directory through bat files on my "default web
site" and using the adsutil.vbs utility. Cannot find a lot of examples
online and need assistance:
CScript ADSUtil.VBS CREATE W3SVC/1/ROOT/TestDir
CScript ADSUtil.VBS SET W3SVC/1/ROOT/TestDir C:\TestADS
Also need to set permissions READ,WRITE,BROWSING
Also need to only have "Integrated Windows Authentication" only under
"Authentication Methods"

Any help is appreciated, thanks

url:http://www.ureader.com/gp/1524-1.aspx

Re: Assistance with ADSUtil.VBS

am 25.01.2008 01:54:41 von David Wang

On Jan 24, 6:52=A0am, "John" wrote:
> Trying to create a virtual directory through bat files on my "default web
> site" and using the adsutil.vbs utility. Cannot find a lot of examples
> online and need assistance:
> CScript ADSUtil.VBS CREATE W3SVC/1/ROOT/TestDir
> CScript ADSUtil.VBS SET W3SVC/1/ROOT/TestDir C:\TestADS
> Also need to set permissions READ,WRITE,BROWSING
> Also need to only have "Integrated Windows Authentication" only under
> "Authentication Methods"
>
> Any help is appreciated, thanks
>
> url:http://www.ureader.com/gp/1524-1.aspx


Here's the information for you to help yourself. Don't worry, it's not
hard and you're not that far off. Just need to read and follow
instructions.

Here is the list of all the properties:
http://www.microsoft.com/technet/prodtechnol/WindowsServer20 03/Library/IIS/c=
de669f1-5714-4159-af95-f334251c8cbd.mspx?mfr=3Dtrue

You need to:
1. Create a virtual directory node with "KeyType" IIsWebVirtualDir
2. Set the virtual directory's "Path" property with the correct
filesystem path
3. Set the virtual directory's "AccessFlags" property with the right
bitflag for permissions
4. Set the virtual directory's "AuthFlags" property with the right
bitflag for authentication method

I have given you all the property names that you need to set and the
URL which gives you all their valid values.

Good luck.


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