Page 2 of 2 <12
Topic Options
#140325 - 05/05/26 08:33 PM Re: Active Directory Query Question
Chris S. Moderator Offline
MM club member
*****

Registered: 02/03/18
Posts: 2368
Loc: Earth
Again, Computer accounts do not logon so this property is unavailable for computers.
Top
#140326 - 05/05/26 08:44 PM Re: Active Directory Query Question
thepip3r Offline
Hey THIS is FUN
*****

Registered: 05/03/02
Posts: 350
Are you sure Chris because I wrote an AD query tool using PHP and I can query for cn=%computername% and it returns a lastlogontimestamp....

Query for a computer account:
Code:

[lastlogontimestamp] => Array
(
[count] => 1
[0] => 127608227380157206
)

[35] => lastlogontimestamp



Edited by thepip3r (05/05/26 08:45 PM)

Top
#140327 - 05/05/26 09:47 PM Re: Active Directory Query Question
Chris S. Moderator Offline
MM club member
*****

Registered: 02/03/18
Posts: 2368
Loc: Earth
I was able to return information using lastLogonTimestamp, however it returned 50% of the results that using pwdLastSet did.
Top
#140328 - 05/05/26 10:16 PM Re: Active Directory Query Question
thepip3r Offline
Hey THIS is FUN
*****

Registered: 05/03/02
Posts: 350
Ok... thanx again Chris.
Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Chris S., Glenn Barnas, ShaneEP, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (green78) and 144 anonymous users online.
Newest Members
Keris2112, Jorromans, qrstuv140696, Bloodboy, NIJAKIX
17451 Registered Users

Generated in 0.095 seconds in which 0.056 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org