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
6
votes
1 answer

(Rust question) C++ double pointer to void meaning

I'm trying to work with active directory from Rust by following the c++ examples Microsoft posts for the ADSI API and the Windows-RS crate. I'm not understanding quite what is going on…
Dragoon
  • 723
  • 6
  • 13
6
votes
3 answers

LDAP group membership (including Domain Users)

How can I get a list of users within an LDAP group, even if that group happens to be the primary group for some users? For example, suppose "Domain Users" is "Domain Leute" in German. I want all members of "CN=Domain Leute,DC=mycompany,DC=com". …
DougN
  • 4,407
  • 11
  • 56
  • 81
6
votes
2 answers

Create local user with PowerShell (Windows Vista)

I've installed PowerShell recently and one of the first things I started looking for was how to create a new user. After looking for some time I still haven't found this. I have a little experience in bash on linux and find it very effective.…
Valentin V
  • 24,971
  • 33
  • 103
  • 152
6
votes
1 answer

VBScript Error when calling GetObject("WinNT://JohnDoe,User")

I have code that hasn't been touched in over a year, but the DCs were upgraded from 2008 to 2008 R2. The AD folks claim it’s not the DC upgrade but the issue started promptly after that went in. Microsoft VBScript runtime error '800a0046' …
ryan
  • 195
  • 2
  • 4
  • 11
5
votes
2 answers

Using ADSI Edit on WIN-7

I am not able to find out the ADSI EDIT on WIN-7, any help in this regard. Any installing instruction ! PS. Install the ADSI Edit, error on launch:"MMC could not create the snap-in" Is RSAT still available for Win7? Thanks
NaV
  • 703
  • 4
  • 9
  • 19
5
votes
1 answer

How can I optimize my PowerShell - LDAP Query?

I have created a script that reads from a CSV (or other dataset, but not posting that side) and creates users in my AD environment. Basically, whatever dataset is passed into the script will be processed, and then a user will be created if they do…
buzzedword
  • 3,108
  • 3
  • 21
  • 26
5
votes
1 answer

SQL Linked Server Query for AD Returns Msg 7321

So I have a SQL query that pulls data from our Active Directory without any issues (slimmed way down for posting purposes): SELECT TOP 901 * FROM OpenQuery(ADSI, 'SELECT title, displayName, sAMAccountName, givenName, sn FROM…
Karl
  • 189
  • 2
  • 3
  • 16
5
votes
2 answers

Which is better for IIS administration in ASP.Net : WMI or ADSI or Managed API? and what's the difference?

I am working on Configuring and manipulating and controlling IIS 6.0 and later versions using ASP.Net based web application. I am considering WMI, ADSI, Managed API as my options. I have a target Windows System WIN2k3 or later versions. The choice…
Steve Johnson
  • 3,054
  • 7
  • 46
  • 71
5
votes
1 answer

How to determine ClientTimeout when using DirectorySearcher

When using the System.DirecoryServices.DirectorySearcher how can you determine if a ClientTimeOut has occurred or that the search naturally returned an empty SearchResultCollection? given the following snippet using (var searcher = new…
flalar
  • 1,181
  • 3
  • 12
  • 23
5
votes
1 answer

[ADSI]::Exists throws an exception instead of returning False

I'm trying to create a user using the ADSI object if it doesn't already exist. Here are the strange results I'm getting #Check a user that I know exists [ADSI]::Exists("WinNT://localhost/micah,user") #True #Check a group that I know…
Micah
  • 111,873
  • 86
  • 233
  • 325
5
votes
4 answers

Powershell Bulk Find ActiveDirectory Objects

I'm trying to develop a powershell script to help with AD Group Membership management. We have a handful of large groups (30k-60k+ objects) that we want to update with data from another system. The script loads the objects that should be in the…
klyd
  • 3,939
  • 3
  • 24
  • 34
4
votes
0 answers

"Network path not found" when using WinNT provider and Delphi to query ADSI

I am querying ADSI using the WINNT provider with code similar to this : var User : IADSUser; begin User := GetObject('WinNT://'+domainname+'/'+username + ', user') as IADSUser; ... ... where GetObject is defined as : function GetObject…
Steve
  • 6,382
  • 3
  • 41
  • 66
4
votes
0 answers

list all users in active directory using c++

I am working on active directory and I am new to this.Here I need to list all the users in the active directory using c++ and ADSI.It might be duplicate post,but i went through many posts and I got an idea to use ADSI.So give some idea to proceed…
Ganeshkumar SR
  • 101
  • 1
  • 2
  • 10
4
votes
2 answers

When do I need a Domain Name and a Domain Container to create a PrincipalContext?

I'm developing a C# .NET Framework library to access active directory. One of the things that I have to do is to get all AD users, and I see that: PrincipalContext principalContext = new PrincipalContext(ContextType.Domain, …
VansFannel
  • 45,055
  • 107
  • 359
  • 626
4
votes
4 answers

'working, please wait' screen with thread?

Perhaps, it is very easy for you, but I am hard working on a project (for educational purposes) that is querying adsi with TADSISearch component, for several days. I'm trying to show a 'Working, Please wait..' splash screen with a man worker…
Knn
  • 43
  • 1
  • 4
1
2
3
17 18