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

Scripting Log On To Attribute in Active Directory

I pasted this script into a .vbs file and ran it our domain controller (with our username, ou, and domain info): Set objUser = GetObject _ ("LDAP://cn=Ken Myer,ou=Finance,dc=fabrikam,dc=com") objUser.Put "userWorkstations",…
blashmet
  • 13
  • 4
0
votes
1 answer

Starting application pools with WMI\ADSI (C#) hangs immediately after reboot

I have encountered a strange situation where starting an application pool from a windows service (written in C#, set to "Automatic" startup) using WMI or ADSI immediately after the server reboots hangs. I'll describe the issue: We are developing a…
Omri
  • 1
  • 2
0
votes
0 answers

Parameterized ADSI queries in Views via OpenQuery on SQL Server 2008

I have a view with one column containing domain\useraccount as an nvarchar(100). I need to convert the value in this column from domain\useraccount to Last, First Middle. I have successfully created a linked server (ADSI), and can resolve a…
AEberhard
  • 77
  • 4
0
votes
2 answers

Powershell - Store all Computers in AD into Array

So at the moment I have some code which can lock down to a specific OU via ADSI in Powershell, loop through, and store them into an Array. In turn I loop through this and run a Test-Connection. I have my reasons... Anyway, is it possible (using…
PnP
  • 3,133
  • 17
  • 62
  • 95
0
votes
2 answers

ADSI Library/Control for .NET

Is there an ADSI Library out there for .NET/C#? I have been able to find bits and pieces of code to do some tasks but nothing comprehensive. I'm looking for a library that I can just drop into my code and run without having to do too much…
Nasir
  • 10,935
  • 8
  • 31
  • 39
0
votes
2 answers

Delete/Remove group from AD

I am using this script to add/create a new group: $strCLass = "Group" $StrName = "CN=$naam" $intGroupType = $type $objADSI = [ADSI]"LDAP://ou=$OU,dc=myADserver,dc=local" $objGroup = $objADSI.create($strCLass,…
Axxess
  • 522
  • 2
  • 7
  • 19
0
votes
1 answer

VBScript error 424 Object Required when running script under SYSTEM account

I am trying to add a domain user account to a local group and everything works fine if I am logged into the computer but if I run the same script under the SYSTEM account it fails with the error: 424 Object Required". Here is the code: Dim domain …
Max
  • 1,289
  • 3
  • 26
  • 50
0
votes
2 answers

Using ADSI calls, how to get ms-TS-Allow-Logon attribute value?

I am trying to retrieve some attributes of a terminal service user(eg.ms-TS-Allow-Logon) through ADSI. I tried something like LPOLESTR pszPropertyList [] = {L"ms-TS-Allow-Logon"}; swprintf_s(pszSearchFilter, dwLength,…
S_R
  • 493
  • 1
  • 9
  • 22
0
votes
1 answer

Searching global catalog

If I do a query (I plan to use SDS.P) against the global catalog, what should the starting path be so I can search the entire GC? I want to enumerate all users in GC, for example. Let's say my gc has users for 3 domains (one parent, two…
Will I Am
  • 2,614
  • 3
  • 35
  • 61
0
votes
1 answer

Disable directory browsing in IIS 6 with Script

I'm trying to write a script to disable directory browsing on ALL directories /virtual directories and on an IIS website. I've tried using ADSI in PowerShell but am having a hard time understanding how to enumerate current directories and not sure…
slidmac07
  • 387
  • 1
  • 2
  • 14
0
votes
2 answers

.Invoke(“SetPassword”, …) results in “RPC server is unavailable” error

I have a page to create new users in our active directory using VB.NET I’m using the following code Dim rootEntry As New DirectoryEntry With rootEntry .Path = "LDAP://" & strServer & "/" & strLDAP .AuthenticationType =…
mac meureg
  • 1
  • 1
  • 3
0
votes
1 answer

Getting Netlogon information with an ADSI script

The following screenshot shows a snippet of network communication as sniffed by Wireshark. It is a part of the login process, where a domain-joined client tries to login to a Windows Server 2008 R2 (which is the domain controller). The protocol used…
Sadeq Dousti
  • 3,346
  • 6
  • 35
  • 53
0
votes
1 answer

How to remove IIS 6 web directory property using directoryentry in C#

I want to delete a particular property of IIS when directory from Metabase. Can anyone please help me? How can we do that with DirectoryEntry class in C#?
Kartik M
  • 67
  • 2
  • 9
0
votes
1 answer

How to set and get multiple values(array values) to Single attribute in Active Directory using C++ win32 API?

i am using C++ Win32 API. i have done to connect AD using ldap functions & create a attribute. i done to set & get single values to attributes from AD. Now,i want to set multiple values in myown attribute.the attribute name is "UsrAttrib". how to…
Arjun babu
  • 607
  • 2
  • 13
  • 42
0
votes
2 answers

How to check ADuser "Password never expires" properties check or not using C++ Win32API?

i am using C++ Win32 API... i want to know the user password policies properties value... that is "Password never expires" ,how to check this property is checked or not using C++ Win32 API?
Arjun babu
  • 607
  • 2
  • 13
  • 42
1 2 3
17
18