Where to obtain Workmail users last logon date?

0

We are doing some housekeeping for our organization Workmail user account. We need to delete those dormant email accounts which is no longer being used (some users are having more than 1 email accounts due to different job tasks).

Jannie
已提问 3 个月前135 查看次数
1 回答
0

We can retrieve the WorkMail user Last Logon Time from Active Directory. If your Workmail is associated with AD connector, Simple AD or AWS managed AD then you can follow the below steps to retrieve the last logon information of the WorkMail User.

a] Connect to Management Instance in case of Simple AD [1] or AWS managed AD [2]. If you are using AD connector with Self managed AD you can directly login to domain controller.

b] Launch Active Directory Users and Computers console (dsa.msc).

c] Click View and ensure Advanced features is turned on.

d] On the left pane, select the Organization Unit where user is present and then select Workmail user, right click the user account and click Properties.

e] In the list of attributes, look for lastLogon. This attribute shows the time the user was last logged in the domain

In case of AWS managed AD and Self Managed AD, you can retrieve the lastlogon information by running the below PowerShell command ;

Get-ADUser -Filter {Name -eq “username”} -Properties * | Select-Object Name, @{N='LastLogon'; E={[DateTime]::FromFileTime($_.LastLogon)}}

Here replace username with actual workmail username.

Kindly note that lastlogon attribute will get updated even if the user logs into any domain joined machine as well.

Reference

[1] Install the Active Directory Administration Tools for AWS Managed Microsoft AD https://docs.aws.amazon.com/directoryservice/latest/admin-guide/ms_ad_install_ad_tools.html

[2] Install the Active Directory Administration Tools for Simple AD https://docs.aws.amazon.com/directoryservice/latest/admin-guide/simple_ad_install_ad_tools.html

AWS
支持工程师
已回答 3 个月前
  • We don't use AD in AWS. User normally access Workmail from their web browser. Without AD, what are the next option to get the info?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则