Re: IIS Attribute mit VB.Net auslesen
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
Hallo Patrick,
"Patrick" schrieb:
Dim w3svc As New DirectoryEntry("IIS://localhost/w3svc")
Dim de As DirectoryEntry
For Each de In w3svc.Children
If de.SchemaClassName = "IIsWebServer" Then
was mir da grade noch auffällt. Du müsstest auch hier nicht auf
den Webserver selbst, sondern auf das RootDirectory gehen. In
dem Fall also wohl:
IIS://localhost/w3svc/<SiteIndex>/ROOT/
Die Klasse wäre wohl auch IIsWebVirtualDirSetting. Mit ADSI hab
ich aber noch nicht viel gemacht, daher bin ich da nicht 100%ig
sicher.
--
Tschau, Stefan
Microsoft MVP - Visual Developer ASP/ASP.NET
http://www.asp-solutions.de/ - Consulting, Development
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
.
Relevant Pages
- Security issue with DirectoryServices
... Dim site As New DirectoryEntry(CType(objIIs.Invoke("Create", "IIsWebServer", ... intSiteID), DirectoryEntry)) ... works fine until the SetInfo is called. ... (microsoft.public.dotnet.framework.aspnet.security) - Re: ADSI script implement in C#
... My customer does not like to add the reference since it's .NET application. ... I'm not quite good at ADSI, however, based on my research, the problem here ... Microsoft MSDN Online Support Lead ... DirectoryEntry de = new DirectoryEntry; ... (microsoft.public.dotnet.languages.csharp) - Re: ADSI script implement in C#
... DirectoryEntry de = new DirectoryEntry; ... perform ADSI query on some domain computer's properties. ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ... (microsoft.public.dotnet.languages.csharp) - Re: ADSI script implement in C#
... I'm not quite good at ADSI, however, based on my research, the problem here ... MembersCollection = groupEntry.Invokeas ... Microsoft MSDN Online Support Lead ... DirectoryEntry de = new DirectoryEntry; ... (microsoft.public.dotnet.languages.csharp) - Re: How to use GetObject in CShaprt
... Are there any documents about DirectoryEntry and ... I want to use ADSI to manage the users in my domain. ... > The System.DirectoryServices namespace classes like DirectoryEntry and ... > DirectorySearcher are wrappers arround ADSI and should be used instead. ... (microsoft.public.dotnet.languages.csharp) |
|