0 votes

Hello,

We have multiple Domain Controllers in single domain. let saya DC1.domain.com, DC2.domain.com, DC3.domain.com

When we want to get LastLogon value, how can we get the latest LastLogon value among the three DCs?

by (170 points)

1 Answer

0 votes
by (294k points)

Hello,

Unfortunately, there is no easy way to do that due to the peculiarities of the Last Logon property. The thing is that the property value does not replicate among domain controllers (DCs). It means that on each domain controller the value is different and to get the latest one you need to request it from each DC. It can only be done using a script. Unfortunately, we do not have any samples of such scripts.

For your information, Adaxes displays the value of the Last Logon property stored on the DC Adaxes is currently connected to.

0

I believe the value that fachmi is looking for is lastLogonTimestamp, yes?

0

Hello Mark,

The difference is that unlike LastLogon, the LastLogonTimeStamp property is replicated among all domain controllers (DCs). As such it is always set to the latest logon date not depending on the DC. If this is what you need, then retrieving the LastLogonTimeStamp property value should work just fine.

Related questions

0 votes
1 answer

We are planning to use Adaxes in our environment and before proceeding, we need to understand the firewall port requirements for Adaxes service to work. What are the firewall ports needed between Adaxes and AD domain controller?

asked Jan 24 by Renugopal (120 points)
0 votes
0 answers

Hi, Not worked with Adaxes before and just as I joined company we've had domain migration in place. After migration, whenever we want to access Exchange properties of a user ... works fine across domain..? Any ideas, however basic they may be?? regards Robert

asked Oct 16, 2019 by roberttryba (70 points)
0 votes
1 answer

Hi, We are a European branch of a US company, our Exchange server is in US and talks to the US DC. This leads to the situation that when our helpdesk resets a password, ... Even better would be if it could be scripted based on OU the user resides in. Thanks!

asked Dec 8, 2017 by digimortal (240 points)
0 votes
1 answer

Hello, is it possible to know which controller domain is connected to adxes ? and may be forced Adaxes has to connect to a domain controller in particular ? Thx.

asked Jun 23, 2014 by mmichard (360 points)
0 votes
1 answer

Is there an easy way to tell the system to use a specific Domain Controller? I'm trying to set up a custom command to add an email address to a large group of users (we're ... .#qU(#3c operation) at #Oc.#Nc.Execute() --- End of inner exception stack trace ---

asked May 8, 2013 by danftasc (440 points)
3,588 questions
3,277 answers
8,303 comments
548,097 users