473,414 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

How to find account disabled in AD??

Hi,

I have been struggling to find if an account is disabled in AD.

I looked at a few examples, but didn't work for me.

I'm using .net 1.1 with AD on W2003 server.

Thanks.
Sep 17 '07 #1
3 2254
There's a status word and you have to check the account disabled bit in it.
I've done this, but I don't have access to my code at the moment. I'll see
if I can remember to get it tomorrow when I'm on my development system.
"DotNetDev" <Do*******@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
Hi,

I have been struggling to find if an account is disabled in AD.

I looked at a few examples, but didn't work for me.

I'm using .net 1.1 with AD on W2003 server.

Thanks.

Sep 18 '07 #2
Any one??

"David C. Barber" wrote:
There's a status word and you have to check the account disabled bit in it.
I've done this, but I don't have access to my code at the moment. I'll see
if I can remember to get it tomorrow when I'm on my development system.
"DotNetDev" <Do*******@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
Hi,

I have been struggling to find if an account is disabled in AD.

I looked at a few examples, but didn't work for me.

I'm using .net 1.1 with AD on W2003 server.

Thanks.


Sep 19 '07 #3
The way to check for a disabled user in ActiveDirectory is to retrieve the
field "userAccountControl" and test bit &H2. If that bit is set, then the
account has been disabled. Sorry to take so long to get this information to
you.

"DotNetDev" <Do*******@discussions.microsoft.comwrote in message
news:8C**********************************@microsof t.com...
Any one??

"David C. Barber" wrote:
There's a status word and you have to check the account disabled bit in
it.
I've done this, but I don't have access to my code at the moment. I'll
see
if I can remember to get it tomorrow when I'm on my development system.
"DotNetDev" <Do*******@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
Hi,
>
I have been struggling to find if an account is disabled in AD.
>
I looked at a few examples, but didn't work for me.
>
I'm using .net 1.1 with AD on W2003 server.
>
Thanks.

Oct 14 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brent Grooms | last post by:
Does anyone know how to tell if a local user account on a member server is disabled using the directoryservices dll and vb.net? I know since it is not an LDAP server that i will have to use the...
22
by: Zeng | last post by:
Hi, I'm running ClrProfiler for the first time to profile my web app, and it keeps getting stuck at this msg box: "Waiting for Asp.net to start common language runtime - this is the time to load...
0
by: Justin | last post by:
Does anyone know how to determine if the guest account is disabled on a remote computer on the server? I was thinking I could read a registry key to do it, but I do not know if such a key exists....
3
by: | last post by:
This question references to KB articles: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315158 http://support.microsoft.com/default.aspx?scid=kb;EN-US;317012 I'm running Advanced Server...
0
by: John Wright | last post by:
I want to get an account status in Active Directory (Active, Inactive, Disabled) using Active Directory. Using the code that follows, I can validate the account is active, but if the account is...
2
by: youknowwho | last post by:
Hi, I have two administrator accounts in my machine and the guest account is disaled. I logged in with one admin account and disable the other anmin account. So now i have only one admin account...
0
by: David C. Barber | last post by:
Answering an earlier post: The way to check for a disabled user in ActiveDirectory is to retrieve the field "userAccountControl" and test bit &H2. If that bit is set, then the account has been...
0
by: =?Utf-8?B?bG9iaXRv?= | last post by:
my administrator account has been disabled. though i can log in as administrator, all rights ghas been diabled. can anyone help
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.