get-O365InactiveUsers

3.3

This script will generate a HTML file to list all inactive users and the last logon of users based on the audit log.
Inactive users will normally be collected using the users mailbox but external and users without a license don't have a mailbox.
We will be using the audit log to find successful and failed logons for internal users and page viewes for external users.
I
This script will generate a HTML file to list all inactive users and the last logon of users based on the audit log.
Inactive users will normally be collected using the users mailbox but external and users without a license don't have a mailbox.
We will be using the audit log to find successful and failed logons for internal users and page viewes for external users.
It will take around 6-8 seconds per user as we are querying the log for each user.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name get-O365InactiveUsers -RequiredVersion 3.3

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Maarten Peeters - Cloud Securitea - https://www.cloudsecuritea.com

Tags

office365 inactive users audit AAD Azure Active Directory

Dependencies

This script has no dependencies.

Release Notes

Version 1.0: Original published version.
Version 2.0: Updated a few comment sections.
Version 3.0: Changed the example.
Version 3.1: Added AdminUPN parameter as Exchange Online otherwise closes the connection after 1 hour.
Version 3.2: Changed parameter name
Version 3.3: Updated a few comment sections.

FileList

Version History

Version Downloads Last updated
3.4 1,945 9/19/2019
3.3 (current version) 35 9/19/2019
3.2 23 9/19/2019
3.1 23 9/19/2019
3.0 21 9/18/2019
2.0 20 9/18/2019
1.0 23 9/18/2019
Show more