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
0 answers

What are the flag by flag permissions required for userAccountControl ADSI property?

I have a situation where I'd like to use PowerShell in an environment without Get-ADUser to determine whether another account is expired. Someone else in the domain is able to read the userAccountControl property off of the object returned from an…
Code Jockey
  • 6,611
  • 6
  • 33
  • 45
0
votes
1 answer

VbScript to accept Inputs for a domain name

I have below vb script, which is working,I wanted to allow users to choose any of the below three domains. I have three domains ab.ac.xyd lud.local dul.net so if i Write for ab.ac.xyd it would be like below as a static In my script, which i wanted…
0
votes
1 answer

ADSI/System.DirectoryServices.DirectorySearcher result parsing

A trivial question, but hopefully really obvious for those who know. Search constructor: $Search = New-Object System.DirectoryServices.DirectorySearcher (([adsi]"LDAP://ou=Domain…
LeeM
  • 1,118
  • 8
  • 18
0
votes
1 answer

ADSI fails with error 8007203a after Hyper-V failover cluster live migration

I have a very weird problem. We have a Hyper-V failover cluster, where some guest VMs start to show specific problems after a live migration. In each case, the live migration mostly works, but after it has been migrated, we can't log into some…
Adrien
  • 1,061
  • 8
  • 11
0
votes
1 answer

Is there a better way to check for Virtual Directory and if not, Create it?

I have some vbscript code I use to set paths to virtual directories when a developer switches his/her environment to work on another project. Currently, we try to set the path, and if there's an error, we create it. It just smells funny. Is there a…
Hcabnettek
  • 12,678
  • 38
  • 124
  • 190
0
votes
1 answer

Change configuration in Active Directoy with code?

I have a very strange requirement and I want to know how feasible its. A customer wants a web application, but in it, they want the administrator to be able of: Create users in Active Directory 2. Be able to change users password or generate random…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
0
votes
1 answer

What is a good .Net library for Windows User Administration?

We have a company intranet with staff management functions. I would like to begin automating setup of new staff members, e.g. creating Windows accounts for them, creating their home folders, setting up shares, and the like. When a staff member…
Bork Blatt
  • 3,308
  • 2
  • 19
  • 17
0
votes
2 answers

Audit local accounts status, name, fullname, group membership & description

I need to export result into column-based Excel file or comma separated file (CSV) to be able to process the result in SQL Server 2008 R2. I am in need to get all local user account's names, full names, group membership and their description. I have…
Michael W
  • 43
  • 1
  • 6
0
votes
1 answer

Setting 'UserAccountControl' using Powershell and .NET

I'm writing a Powershell script to create a user account in Active Directory, and I want to use credentials to do it, so I am using .NET $objDirectoryEntry = New-Object System.DirectoryServices.DirectoryEntry…
beehaus
  • 415
  • 1
  • 4
  • 13
0
votes
1 answer

Querying an Active Directory object property from ASP.NET application returns old results

For quite a few days now I have been trying to get some custom Active Directory based authentication to work. It all works in theory but apparently my theory is wrong. Users who are logged on to a domain write a string token (e.g. PIN code) to their…
Dejan Janjušević
  • 3,181
  • 4
  • 41
  • 67
0
votes
1 answer

General access denied trying to update my own field in AD

I am trying to update a field pertaining to my own user object in Active Directory using ADSI and C++ app. The operating system is Windows Server 2012 Standard. I am able to read, I am able to call Put without problems, but when I call SetInfo, it…
Dejan Janjušević
  • 3,181
  • 4
  • 41
  • 67
0
votes
2 answers

.NET - What is the best library for inspecting and controling Windows Services?

I need to monitor and control a set of Windows Services that are running either on a local machine or remotely. I've heard of WMI and ADSI and the first one seems to do what I want. Before going deep into it, I just want to check if I'm going in the…
Amokrane Chentir
  • 29,907
  • 37
  • 114
  • 158
0
votes
2 answers

WinNT ADSI provider - cross domain user lookup

''I am using the WinNT ADSI provider in a bit of authentication code, which looks up the user from Active Directory and checks its group membership. We have run in to an issue getting this working for cross domain access. We followed the steps…
Sam Makin
  • 1,526
  • 8
  • 23
0
votes
3 answers

Active directory Query to narrow down results better than my attempt

My specific Question: How to I narrow down my search for active directory accounts that DO NOT have employeeNumber attribute set (is not null or empty)? My work around is to go over the results and check the employeeNumber and removing those…
hidden
  • 3,216
  • 8
  • 47
  • 69
0
votes
1 answer

Python active_directory module- no module named "adsi"

I'm trying to import the active_directory module to my python code, but having a problem where it's telling me there is no module called adsi. >>> import active_directory Traceback (most recent call last): File "", line 1, in
ryansin
  • 1,735
  • 2
  • 26
  • 49