Questions tagged [adsi]

Active Directory Services Interfaces

Microsoft's implementation of LDAP, ADSI is the protocol Windows computers use to maintain a domain relationship, including groups, Organizational Units (OU's), domain controllers, etc.

268 questions
2
votes
0 answers

Tracking open files using WMI Notification events

I've created an internal web page for my company that lists open files via ADSI objects and while it works well, it takes time to load and is difficult and time-consuming to filter, if the filter works at all. The core of this PHP script…
Aaron Mason
  • 310
  • 3
  • 11
2
votes
1 answer

ADSI Query against IIS does not agree with IIS Manager, on Vista

Using Vista... I have a script that uses ADSI to set ScriptMaps on an IIS Website. It's javascript, run within cscript.exe, and the code looks something like this: var web = GetObject("IIS://localhost/W3SVC/1"); var maps =…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
2
votes
1 answer

How do I programatically add a wildcard filter for IIS?

I'm going to use System.DirectoryServices to programatically add a wildcard filter for IIS (Version 5.0 and IIS 6.0). Anyone have some food for thought? Thanks in advance!
Roy
  • 2,313
  • 6
  • 37
  • 46
2
votes
2 answers

LDAP vs. ADSI in manipulation of Active Directory Users

I have been requested to expose a web service for managing Active Directory Users via an intranet. I have been advised that LDAP is viewed as a security vulnerability and is not to be used. Given this constraint, I have managed to connect via ADSI…
sympatric greg
  • 2,969
  • 2
  • 24
  • 29
2
votes
2 answers

Change AD Password using PHP/COM/ADSI/LDAP

I've been stumped on this for a couple days now. I've tried various solutions to no avail. Please help... Problem: We have two domain controller, which are not under our management. We are able to connect via LDAP on port 389, but are not able…
ChrisM
  • 65
  • 4
  • 11
2
votes
1 answer

querying for local groups

I'd like to retrieve all local groups on my machine (Vista in a W2k3 domain). If I run: using (DirectoryEntry de = new DirectoryEntry("WinNT://" + Environment.MachineName + ",group", null, null, AuthenticationTypes.Secure)) { } it throws an…
Will I Am
  • 2,614
  • 3
  • 35
  • 61
2
votes
2 answers

Anyone know all Method Name of DirectoryEntry.Invoke

Anyone know all Method Name of DirectoryEntry.Invoke
Kartik M
  • 67
  • 2
  • 9
2
votes
1 answer

How to enable/disable/get status for extended protection for authentication in IIS using WMI/ADSI and C#?

Can someone provide a code sample or resource which can help me programatically get status, enable and disable extended protection for authentication in IIS 7/IIS 7.5 using C#? C# with WMI/ADSI is preferred. i.e I am asked to use System.Management…
Steve Johnson
  • 3,054
  • 7
  • 46
  • 71
2
votes
1 answer

Add logon program for TSclients in environment tab user adsi in Powershell

Hi I'm tring to set a logon program parameter for remote clients that will be created using a powershell script. As shown below I managed to get a logon script to set in the profile tab using $objUser.PSBase.InvokeSet('LoginScript',…
Sam Stephenson
  • 5,200
  • 5
  • 27
  • 44
2
votes
1 answer

"A referral was returned from the server" error only while querying LDAP from outside the domain

I have 2 domains in the forest. 2nd one is the child domain of the first one. Like below... Domain1 = abc.com on machine machine1 Domain2 = child.abc.com on machine macnihe2 I have c# application which tries to create a DirectoryEntry on the child…
user1576882
  • 147
  • 2
  • 3
  • 13
2
votes
2 answers

Cannot set attributes using ADSI in powershell

I'm trying to create new users with powershell. We're not running active directory (not sure if that changes things or not). Here's what I'm trying to do: $machine = [ADSI]"WinNT://localhost,computer" $newUser = $machine.Create("User",…
Micah
  • 111,873
  • 86
  • 233
  • 325
1
vote
1 answer

Authenticate LDAP user via SQL Server 2008

Is it possible to authenticate a user from an Active Directory through SQL Server using LDAP? Assuming that I enter the Windows domain username and password in an ADSI SQL Select query.
Rick
  • 2,288
  • 18
  • 66
  • 98
1
vote
4 answers

How To Read Active Directory Group Membership From PHP/IIS using COM?

I have the following code: $bind = new COM("LDAP://CN=GroupName,OU=Groups,OU=Division,DC=company,DC=local"); When I execute it from a command-prompt, it runs fine. When it runs under IIS/PHP/ISAPI, it barfs. Fatal error: Uncaught exception…
Martin
  • 5,945
  • 7
  • 50
  • 77
1
vote
1 answer

How to use Powershell to make ADSI queries

I am currently trying to get a list of user object properties for a number of accounts in my environment. However, this requires querying some ADSI properties, and I am not entirely sure how to get this to work, even after doing some self-guided…
1
vote
1 answer

ChangePassword on a user object does not lock account if not successful

I have an ASP.Net application (on Win2K) that is using Windows authentication and impersonation. We are using the following code to change password: Dim objDE As DirectoryEntry '... objDE.Invoke("ChangePassword", txtOldPassword,…
Michael Larionov
  • 470
  • 1
  • 5
  • 16