473,796 Members | 2,590 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2287
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*******@disc ussions.microso ft.comwrote in message
news:82******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.comwrote in message
news:82******** *************** ***********@mic rosoft.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 "userAccountCon trol" 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*******@disc ussions.microso ft.comwrote in message
news:8C******** *************** ***********@mic rosoft.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*******@disc ussions.microso ft.comwrote in message
news:82******** *************** ***********@mic rosoft.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
1852
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 WinNT provider. Any help would be appreciated. Thanks, Brent Grooms
22
2294
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 your test page." even after I launched my app and aspnet_wp.exe is running. Do you know what I need to do to fix it? I also found some old post, a person mentioned that I need to make sure I need to run my aspnet with system account instead. ...
0
1629
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. Below is code showing how I determine if CTRL+ALT+DEL is required to logon to the remote machine using the registry. If it is not required then I change the key to make it required. I was hoping I could do something similar for the guest account....
3
5369
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 2000 as a domain controller with IIS 5 (I know I shouldn't be doing this - just a test machine). I am using the default ASP.NET (v1.1) machine.config file..... <processModel..... userName="machine" password="AutoGenerate"..... />
0
855
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 inactive or disabled, it comes back with a false (Searcher is set to nothing). I can check to see if an account is disabled by the following code: Public Function IsAccountDisabled(ByVal strDomain As String, ByVal strAccount As String) As...
2
1954
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 (which i logged in now.), Now i diable this currently logged in account and change the account type to user then i log off. Now i have 1 user account which is diabled and 1 adminitrator account that is also disabled. Now how can i logging in the...
0
1407
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 disabled.
0
828
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
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10190
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10019
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9057
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7555
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5447
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4122
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.