473,385 Members | 1,645 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,385 software developers and data experts.

lastLogon

I am trying to get an accurate lastLogon for a user. Is there a way to loop thru each domain controller in the domain without explicitly naming them? If so, does anyone have sample C# code they would like to share?

thanks

rick
From: rick giardini

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>xYoKXXkNJkaALwz+3mUj7w==</Id>
Jul 21 '05 #1
2 1528
Good explination and sample code but in VB Script.
http://www.microsoft.com/technet/scr...lastlogon.mspx

"rick giardini via .NET 247" wrote:
I am trying to get an accurate lastLogon for a user. Is there a way to loop thru each domain controller in the domain without explicitly naming them? If so, does anyone have sample C# code they would like to share?

thanks

rick
From: rick giardini

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>xYoKXXkNJkaALwz+3mUj7w==</Id>

Jul 21 '05 #2
Good explination and sample code but in VB Script.
http://www.microsoft.com/technet/scr...lastlogon.mspx

"rick giardini via .NET 247" wrote:
I am trying to get an accurate lastLogon for a user. Is there a way to loop thru each domain controller in the domain without explicitly naming them? If so, does anyone have sample C# code they would like to share?

thanks

rick
From: rick giardini

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>xYoKXXkNJkaALwz+3mUj7w==</Id>

Jul 21 '05 #3

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

Similar topics

4
by: Sargas Atum | last post by:
Hi all, I am trying to get the field "lastLogon" out of ActiveDirectory. It should be trivial I thought, but it is not, as I have experienced. private DataRow FillDataRow( DataRow dataRow, ...
5
by: Ram | last post by:
Hey, I'v managed to set the "User Must Change Password At Next Logon" flag on the LDAP protocol, Using the - "pwdLastSet" property - by setting it to - "0" (for on) or - "-1" (for off). The...
1
by: Susanne Christe | last post by:
Hi all, I have a Problem with this code, I am using Threads in the main form but to load all the users from one OU (there are about 700 of them, not realy very much) it needs about 10-20 sek (...
1
by: rick giardini via .NET 247 | last post by:
I am trying to get an accurate lastLogon for a user. Is there a way to loop thru each domain controller in the domain without explicitly naming them? If so, does anyone have sample C# code they...
6
by: Robert Vasquez | last post by:
I'm trying to convert the value of 'lastLogon' to a DateTime value by using the code listed below, but the code doesn't seem to be working for it throws an exception: 'The object's type must...
7
by: Kenneth H. Young | last post by:
I am trying to write a VB app in VS.net to find the lastLogonTimestamp and have found some example but the answer returned is always the same '12/31/1600 7:00:00 PM' for any user account. ...
4
by: JB | last post by:
I am trying to get a list of all the active computers running on my domain. I'm writing some remote management style software with WMI, which works fine when i know the computer name, but i just...
1
maxamis4
by: maxamis4 | last post by:
Hello folks, Here is the backgroup. I am creating an agent that can find a user in LDAP and return the last logon date. Now i am not sure if with active directory you can user the...
0
by: drizzt76 | last post by:
My work's intranet actually works with Windows 2003 (PDC) and some NT (BDC), so the active directory works only in 2003 interim mode. I must list the "LastLogonTimeStamp" value of all the users of...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.