Active Directory IIS Object Windows 2000

G

George Hester

I have an ActiveX Visual Basic dll which I can use to create a virtual directory under the Default Server with the permissions I want. Here it is:

Sub createDirectory(ByVal name As String)
Dim iisAdminObj
Dim iisDirObj

'Access IIsWebServer object for Development
Set iisAdminObj = GetObject("IIS://localhost/W3SVC/1/ROOT")

'Create Virtual Directory
Set iisDirObj = iisAdminObj.Create("IISWebVirtualDir", name)
iisAdminObj.SetInfo

'Set Virtual Directoy's name an access
iisDirObj.Put "Path", "C:\Inetpub\" & name
iisDirObj.Put "AccessRead", True
iisDirObj.Put "AccessScript", True
iisDirObj.SetInfo

'Create inproc application
iisDirObj.AppCreate True
iisDirObj.SetInfo

'Set inproc's process isolation and name
iisDirObj.Put "AppIsolated", 1
iisDirObj.Put "AppFriendlyName", name
iisDirObj.Put "AuthAnonymous", False
iisDirObj.Put "AuthNTLM", True
iisDirObj.SetInfo
End Sub

The Basic is inherited so that is why it is not in here. I call this dll in a ASP located in the Administrtaor Web.

What I would like to do is include the code which will transform this virtual directory into a FrontPage 2000 Server Extened Virtual Directory. Any ideas how this can be accomplished here or a link to a place at Microsoft that adreeses this? Thanks.
 
M

Matjaz Ladava [MVP]

See http://www.microsoft.com/serviceproviders/whitepapers/fpse2002.asp there
is an example of using owsadm.exe to do this. You can call this command from
script shell.run....


--

Regards

Matjaz Ladava, MCSA, MCSE, MCT, MVP
Microsoft MVP Windows Server - Active Directory
(e-mail address removed), (e-mail address removed)



I have an ActiveX Visual Basic dll which I can use to create a virtual
directory under the Default Server with the permissions I want. Here it is:

Sub createDirectory(ByVal name As String)
Dim iisAdminObj
Dim iisDirObj

'Access IIsWebServer object for Development
Set iisAdminObj = GetObject("IIS://localhost/W3SVC/1/ROOT")

'Create Virtual Directory
Set iisDirObj = iisAdminObj.Create("IISWebVirtualDir", name)
iisAdminObj.SetInfo

'Set Virtual Directoy's name an access
iisDirObj.Put "Path", "C:\Inetpub\" & name
iisDirObj.Put "AccessRead", True
iisDirObj.Put "AccessScript", True
iisDirObj.SetInfo

'Create inproc application
iisDirObj.AppCreate True
iisDirObj.SetInfo

'Set inproc's process isolation and name
iisDirObj.Put "AppIsolated", 1
iisDirObj.Put "AppFriendlyName", name
iisDirObj.Put "AuthAnonymous", False
iisDirObj.Put "AuthNTLM", True
iisDirObj.SetInfo
End Sub

The Basic is inherited so that is why it is not in here. I call this dll in
a ASP located in the Administrtaor Web.

What I would like to do is include the code which will transform this
virtual directory into a FrontPage 2000 Server Extened Virtual Directory.
Any ideas how this can be accomplished here or a link to a place at
Microsoft that adreeses this? Thanks.
 
G

George Hester

Thanks. That does have some useful information. I want to do this with ASP since this will be done remotely at some point.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top