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
3
votes
3 answers

Bulk disable local accounts found in text/csv file

I am in need to disable about 250 local user accounts based on input in a text file or CSV-file and then export the result into a CSV file. I have searched the net quiet a bit but I'm unable to find anything i can tailor togheter. Here is what I've…
Michael W
  • 43
  • 1
  • 6
3
votes
1 answer

ADSI can't open object using ADsOpenObject. Delphi

I have a program that allows to login by using the windows login information, and I am trying to get the windows groups members when the user enter his password, I wrote a small function similar to my code : procedure ShowADSPath(UserName, Password:…
ZORRO_BLANCO
  • 849
  • 13
  • 25
3
votes
1 answer

What is the difference between Microsoft.Web.Management and System.DirectoryServices in .Net 3.5?

I want to control, configure and manipulate IIS 6.0 and later versions via ASP.Net web application using WMI and .Net. Can i use a mix of Microsoft.Web.Management and System.DirectoryServices? Is there a difference between the two? Will…
Steve Johnson
  • 3,054
  • 7
  • 46
  • 71
3
votes
2 answers

Updating Active Directory user properties in Active Directory using Powershell

In a Windows Server 2003 R2 environment, using Powershell v2.0, how would one duplicate the functionality of Set-QADUser to update user properties in Active Directory, like their phone number and title? The trick here being, I would like to do this…
Nathan Hartley
  • 4,005
  • 2
  • 43
  • 46
3
votes
1 answer

Change active directory password in classic ASP

I have a classic ASP application where I authenticate users via active directory as follows: sDomain = "@domain_name.abc" sUserID = LCase(Request.Form("UserID")) sPassword = Request.Form("Password") On Error Resume Next Set adObject =…
Tom
  • 4,467
  • 17
  • 59
  • 91
3
votes
0 answers

Is it possible to access Active Directory via LDAP API?

I am a newbie and I found that I can access Active Directory via ADSI from http://msdn.microsoft.com/en-us/library/windows/desktop/aa746483(v=vs.85).aspx I also found there is another API called LDAP API to access service provided by LDAP from…
Anand Kumar
  • 161
  • 1
  • 3
  • 11
3
votes
2 answers

Available fields for ADSI Linked in SQL Server

We currently have a View that queries active directory info. I was wondering if there was a good reference as to what fields (field names) are available in AD for me to query against. I don't have access to Active Directory so I can't go playing…
Chris Klepeis
  • 9,783
  • 16
  • 83
  • 149
2
votes
3 answers

Finding a user's manager record in Active Directory

Using Active Directory, am trying to find the SamAccountName and email of the user’s manager. I find the logged on user in the AD by search where sAMAccountName = Domain\Account. I then retrieve the manager property, which looks like this, for…
Chad
  • 23,658
  • 51
  • 191
  • 321
2
votes
1 answer

Cannot run powershell command via command prompt

I'm attempting to check the RelayForAuth setting for my Windows SMTP Server using the below commands. Powershell appears to display the correct result 'False' but when running the same command via command prompt, it generates an error: Powershell…
BR_Support
  • 23
  • 3
2
votes
1 answer

Logon script to map a printer within VDI

What I have is that people want to use the iPad to access the VDI image. I have created a script some time ago that will map a user based on where they are inside AD. That doesnt work with the iPad since I cant pass the parm file from the iPad to…
user770022
  • 2,899
  • 19
  • 52
  • 79
2
votes
1 answer

List all stopped application pools in an IIS6 farm

I'd like to print only those IIS6 pools that are stopped or stopping (have an AppPoolState of 3 or 4). If everything else is fine (all started), just print out "OK". I'm not sure for a simple way to check all of them. I've tried to loop through app…
overbyte
  • 77
  • 2
  • 8
2
votes
2 answers

Permissions required to retrieve local group members with ADSI

Using ADSI I can query the members of the local Administrator group on a given computer by doing (for example in PowerShell) : ([ADSI]"WinNT://computer-name/Administrators,Group").Invoke("members") To do this, as far as I can tell, the user running…
Alice Heaton
  • 1,140
  • 11
  • 16
2
votes
1 answer

ADsDSOObject & .NET return different values (types) for objectSID

I have a user created stored procedure in a database server that queries active directory for user information and inserts the data into a table. We wish to remove the operation from the database server and perform the initial AD query and data…
m4rty
  • 23
  • 2
2
votes
1 answer

VBScript returning 0 rows when ADSIEdit returns correct number of rows

I've been banging my head against this for the last two days or so, and without much success - regardless what I try. When I run a query to retrieve share volumes which ends with a specific ending, I get it to work properly in ADSIEdit - but not in…
Exodus
  • 105
  • 8
2
votes
1 answer

Is it possible to query the Active Directory from Azure SQL

I am migrating from an older version of Microsoft SQL to Azure SQL. The existing SQL Server stored procedures use OPENQUERY and a linked ADSI server to retrieve user information directly from the Active Directory. Is this possible in Azure SQL?