Export Users Last Activity Time Report

Export Users Last Activity Time Report
This commit is contained in:
AdminDroid 2022-07-20 14:22:26 +05:30
parent a3bf689999
commit 35ad93ff6f
2 changed files with 514 additions and 397 deletions

View File

@ -1,123 +1,239 @@
AAD_BASIC= Azure Active Directory Basic
O365_BUSINESS_ESSENTIALS = Office 365 Business Essentials AAD_PREMIUM= Azure Active Directory Premium
O365_BUSINESS_PREMIUM = Office 365 Business Premium AAD_PREMIUM_P1= Azure Active Directory Premium P1
DESKLESSPACK = Office 365 (Plan K1) AAD_PREMIUM_P2= Azure Active Directory Premium P2
DESKLESSWOFFPACK = Office 365 (Plan K2) ADALLOM_O365= Office 365 Advanced Security Management
LITEPACK = Office 365 (Plan P1) ADALLOM_STANDALONE= Microsoft Cloud App Security
EXCHANGESTANDARD = Office 365 Exchange Online Only ADALLOM_S_O365= POWER BI STANDALONE
STANDARDPACK = Enterprise Plan E1 ADALLOM_S_STANDALONE= Microsoft Cloud App Security
STANDARDWOFFPACK = Office 365 (Plan E2) ATA= Azure Advanced Threat Protection for Users
ENTERPRISEPACK = Enterprise Plan E3 ATP_ENTERPRISE= Exchange Online Advanced Threat Protection
ENTERPRISEPACKLRG = Enterprise Plan E3 ATP_ENTERPRISE_FACULTY= Exchange Online Advanced Threat Protection
ENTERPRISEWITHSCAL = Enterprise Plan E4 BI_AZURE_P0= Power BI (free)
STANDARDPACK_STUDENT = Office 365 (Plan A1) for Students BI_AZURE_P1= Power BI Reporting and Analytics
STANDARDWOFFPACKPACK_STUDENT = Office 365 (Plan A2) for Students BI_AZURE_P2= Power BI Pro
ENTERPRISEPACK_STUDENT = Office 365 (Plan A3) for Students CCIBOTS_PRIVPREV_VIRAL= Dynamics 365 AI for Customer Service Virtual Agents Viral SKU
ENTERPRISEWITHSCAL_STUDENT = Office 365 (Plan A4) for Students CRMINSTANCE= Microsoft Dynamics CRM Online Additional Production Instance (Government Pricing)
STANDARDPACK_FACULTY = Office 365 (Plan A1) for Faculty CRMIUR= CRM for Partners
STANDARDWOFFPACKPACK_FACULTY = Office 365 (Plan A2) for Faculty CRMPLAN1= Microsoft Dynamics CRM Online Essential (Government Pricing)
ENTERPRISEPACK_FACULTY = Office 365 (Plan A3) for Faculty CRMPLAN2= Dynamics CRM Online Plan 2
ENTERPRISEWITHSCAL_FACULTY = Office 365 (Plan A4) for Faculty CRMSTANDARD= CRM Online
ENTERPRISEPACK_B_PILOT = Office 365 (Enterprise Preview) CRMSTORAGE= Microsoft Dynamics CRM Online Additional Storage
STANDARD_B_PILOT = Office 365 (Small Business Preview) CRMTESTINSTANCE= CRM Test Instance
VISIOCLIENT = Visio Pro Online DESKLESS= Microsoft StaffHub
POWER_BI_ADDON = Office 365 Power BI Addon DESKLESSPACK= Office 365 (Plan K1)
POWER_BI_INDIVIDUAL_USE = Power BI Individual User DESKLESSPACK_GOV= Microsoft Office 365 (Plan K1) for Government
POWER_BI_STANDALONE = Power BI Stand Alone DESKLESSPACK_YAMMER= Office 365 Enterprise K1 with Yammer
POWER_BI_STANDARD = Power-BI Standard DESKLESSWOFFPACK= Office 365 (Plan K2)
PROJECTESSENTIALS = Project Lite DESKLESSWOFFPACK_GOV= Microsoft Office 365 (Plan K2) for Government
PROJECTCLIENT = Project Professional DEVELOPERPACK= Office 365 Enterprise E3 Developer
PROJECTONLINE_PLAN_1 = Project Online DEVELOPERPACK_E5= Microsoft 365 E5 Developer(without Windows and Audio Conferencing)
PROJECTONLINE_PLAN_2 = Project Online and PRO DMENTERPRISE= Microsoft Dynamics Marketing Online Enterprise
ProjectPremium = Project Online Premium DYN365_ENTERPRISE_CUSTOMER_SERVICE= Dynamics 365 for Customer Service Enterprise Edition
ECAL_SERVICES = ECAL DYN365_ENTERPRISE_P1_IW= Dynamics 365 P1 Trial for Information Workers
EMS = Enterprise Mobility Suite DYN365_ENTERPRISE_PLAN1= Dynamics 365 Plan 1 Enterprise Edition
RIGHTSMANAGEMENT_ADHOC = Windows Azure Rights Management DYN365_ENTERPRISE_SALES= Dynamics 365 for Sales Enterprise Edition
MCOMEETADV = PSTN conferencing DYN365_ENTERPRISE_SALES_CUSTOMERSERVICE= Dynamics 365 for Sales and Customer Service Enterprise Edition
SHAREPOINTSTORAGE = SharePoint storage DYN365_ENTERPRISE_TEAM_MEMBERS= Dynamics 365 for Team Members Enterprise Edition
PLANNERSTANDALONE = Planner Standalone DYN365_FINANCIALS_BUSINESS_SKU= Dynamics 365 for Financials Business Edition
CRMIUR = CMRIUR DYN365_MARKETING_USER= Dynamics 365 for Marketing USL
BI_AZURE_P1 = Power BI Reporting and Analytics DYN365_MARKETING_APP= Dynamics 365 Marketing
INTUNE_A = Windows Intune Plan A DYN365_SALES_INSIGHTS= Dynamics 365 AI for Sales
PROJECTWORKMANAGEMENT = Office 365 Planner Preview D365_SALES_PRO= Dynamics 365 for Sales Professional
ATP_ENTERPRISE = Exchange Online Advanced Threat Protection Dynamics_365_for_Operations= Dynamics 365 Unf Ops Plan Ent Edition
EQUIVIO_ANALYTICS = Office 365 Advanced eDiscovery ECAL_SERVICES= ECAL
AAD_BASIC = Azure Active Directory Basic EMS= Enterprise Mobility + Security E3
RMS_S_ENTERPRISE = Azure Active Directory Rights Management EMSPREMIUM= Enterprise Mobility + Security E5
AAD_PREMIUM = Azure Active Directory Premium ENTERPRISEPACK= Office 365 Enterprise E3
MFA_PREMIUM = Azure Multi-Factor Authentication ENTERPRISEPACKLRG= Office 365 Enterprise E3 LRG
STANDARDPACK_GOV = Microsoft Office 365 (Plan G1) for Government ENTERPRISEPACKWITHOUTPROPLUS= Office 365 Enterprise E3 without ProPlus Add-on
STANDARDWOFFPACK_GOV = Microsoft Office 365 (Plan G2) for Government ENTERPRISEPACK_B_PILOT= Office 365 (Enterprise Preview)
ENTERPRISEPACK_GOV = Microsoft Office 365 (Plan G3) for Government ENTERPRISEPACK_FACULTY= Office 365 (Plan A3) for Faculty
ENTERPRISEWITHSCAL_GOV = Microsoft Office 365 (Plan G4) for Government ENTERPRISEPACK_GOV= Microsoft Office 365 (Plan G3) for Government
DESKLESSPACK_GOV = Microsoft Office 365 (Plan K1) for Government ENTERPRISEPACK_STUDENT= Office 365 (Plan A3) for Students
ESKLESSWOFFPACK_GOV = Microsoft Office 365 (Plan K2) for Government ENTERPRISEPREMIUM= Enterprise E5 (with Audio Conferencing)
EXCHANGESTANDARD_GOV = Microsoft Office 365 Exchange Online (Plan 1) only for Government ENTERPRISEPREMIUM_NOPSTNCONF= Enterprise E5 (without Audio Conferencing)
EXCHANGEENTERPRISE_GOV = Microsoft Office 365 Exchange Online (Plan 2) only for Government ENTERPRISEWITHSCAL= Office 365 Enterprise E4
SHAREPOINTDESKLESS_GOV = SharePoint Online Kiosk ENTERPRISEWITHSCAL_FACULTY= Office 365 (Plan A4) for Faculty
EXCHANGE_S_DESKLESS_GOV = Exchange Kiosk ENTERPRISEWITHSCAL_GOV= Microsoft Office 365 (Plan G4) for Government
RMS_S_ENTERPRISE_GOV = Windows Azure Active Directory Rights Management ENTERPRISEWITHSCAL_STUDENT= Office 365 (Plan A4) for Students
OFFICESUBSCRIPTION_GOV = Office ProPlus EOP_ENTERPRISE= Exchange Online Protection
MCOSTANDARD_GOV = Lync Plan 2G EOP_ENTERPRISE_FACULTY= Exchange Online Protection for Faculty
SHAREPOINTWAC_GOV = Office Online for Government EQUIVIO_ANALYTICS= Office 365 Advanced Compliance
SHAREPOINTENTERPRISE_GOV = SharePoint Plan 2G EQUIVIO_ANALYTICS_FACULTY= Office 365 Advanced Compliance for Faculty
EXCHANGE_S_ENTERPRISE_GOV = Exchange Plan 2G ESKLESSWOFFPACK_GOV= Microsoft Office 365 (Plan K2) for Government
EXCHANGE_S_ARCHIVE_ADDON_GOV = Exchange Online Archiving EXCHANGEARCHIVE= Exchange Online Archiving
EXCHANGE_S_DESKLESS = Exchange Online Kiosk EXCHANGEARCHIVE_ADDON= Exchange Online Archiving for Exchange Online
SHAREPOINTDESKLESS = SharePoint Online Kiosk EXCHANGEDESKLESS= Exchange Online Kiosk
SHAREPOINTWAC = Office Online EXCHANGEENTERPRISE= Exchange Online Plan 2
YAMMER_ENTERPRISE = Yammer for the Starship Enterprise EXCHANGEENTERPRISE_FACULTY= Exch Online Plan 2 for Faculty
EXCHANGE_L_STANDARD = Exchange Online (Plan 1) EXCHANGEENTERPRISE_GOV= Microsoft Office 365 Exchange Online (Plan 2) only for Government
MCOLITE = Lync Online (Plan 1) EXCHANGEESSENTIALS= Exchange Online Essentials
SHAREPOINTLITE = SharePoint Online (Plan 1) EXCHANGESTANDARD= Office 365 Exchange Online Only
OFFICE_PRO_PLUS_SUBSCRIPTION_SMBIZ = Office ProPlus EXCHANGESTANDARD_GOV= Microsoft Office 365 Exchange Online (Plan 1) only for Government
EXCHANGE_S_STANDARD_MIDMARKET = Exchange Online (Plan 1) EXCHANGESTANDARD_STUDENT= Exchange Online (Plan 1) for Students
MCOSTANDARD_MIDMARKET = Lync Online (Plan 1) EXCHANGETELCO= Exchange Online POP
SHAREPOINTENTERPRISE_MIDMARKET = SharePoint Online (Plan 1) EXCHANGE_ANALYTICS= Microsoft MyAnalytics
OFFICESUBSCRIPTION = Office ProPlus EXCHANGE_L_STANDARD= Exchange Online (Plan 1)
YAMMER_MIDSIZE = Yammer EXCHANGE_S_ARCHIVE_ADDON_GOV= Exchange Online Archiving
DYN365_ENTERPRISE_PLAN1 = Dynamics 365 Customer Engagement Plan Enterprise Edition EXCHANGE_S_DESKLESS= Exchange Online Kiosk
ENTERPRISEPREMIUM_NOPSTNCONF = Enterprise E5 (without Audio Conferencing) EXCHANGE_S_DESKLESS_GOV= Exchange Kiosk
ENTERPRISEPREMIUM = Enterprise E5 (with Audio Conferencing) EXCHANGE_S_ENTERPRISE= Exchange Online (Plan 2) Ent
MCOSTANDARD = Skype for Business Online Standalone Plan 2 EXCHANGE_S_ENTERPRISE_GOV= Exchange Plan 2G
PROJECT_MADEIRA_PREVIEW_IW_SKU = Dynamics 365 for Financials for IWs EXCHANGE_S_ESSENTIALS= Exchange Online Essentials
STANDARDWOFFPACK_IW_STUDENT = Office 365 Education for Students EXCHANGE_S_FOUNDATION= Exchange Foundation for certain SKUs
STANDARDWOFFPACK_IW_FACULTY = Office 365 Education for Faculty EXCHANGE_S_STANDARD= Exchange Online (Plan 2)
EOP_ENTERPRISE_FACULTY = Exchange Online Protection for Faculty EXCHANGE_S_STANDARD_MIDMARKET= Exchange Online (Plan 1)
EXCHANGESTANDARD_STUDENT = Exchange Online (Plan 1) for Students FLOW_FREE= Microsoft Flow (Free)
OFFICESUBSCRIPTION_STUDENT = Office ProPlus Student Benefit FLOW_O365_P2= Flow for Office 365
STANDARDWOFFPACK_FACULTY = Office 365 Education E1 for Faculty FLOW_O365_P3= Flow for Office 365
STANDARDWOFFPACK_STUDENT = Microsoft Office 365 (Plan A2) for Students FLOW_P1= Microsoft Flow Plan 1
DYN365_FINANCIALS_BUSINESS_SKU = Dynamics 365 for Financials Business Edition FLOW_P2= Microsoft Flow Plan 2
DYN365_FINANCIALS_TEAM_MEMBERS_SKU = Dynamics 365 for Team Members Business Edition FORMS_PLAN_E3= Microsoft Forms (Plan E3)
FLOW_FREE = Microsoft Flow Free FORMS_PLAN_E5= Microsoft Forms (Plan E5)
POWER_BI_PRO = Power BI Pro INFOPROTECTION_P2= Azure Information Protection Premium P2
O365_BUSINESS = Office 365 Business INTUNE_A= Windows Intune Plan A
DYN365_ENTERPRISE_SALES = Dynamics Office 365 Enterprise Sales INTUNE_A_VL= Intune (Volume License)
RIGHTSMANAGEMENT = Rights Management INTUNE_O365= Mobile Device Management for Office 365
PROJECTPROFESSIONAL = Project Professional INTUNE_STORAGE= Intune Extra Storage
VISIOONLINE_PLAN1 = Visio Online Plan 1 IT_ACADEMY_AD= Microsoft Imagine Academy
EXCHANGEENTERPRISE = Exchange Online Plan 2 LITEPACK= Office 365 (Plan P1)
DYN365_ENTERPRISE_P1_IW = Dynamics 365 P1 Trial for Information Workers LITEPACK_P2= Office 365 Small Business Premium
DYN365_ENTERPRISE_TEAM_MEMBERS = Dynamics 365 For Team Members Enterprise Edition LOCKBOX= Customer Lockbox
CRMSTANDARD = Microsoft Dynamics CRM Online Professional LOCKBOX_ENTERPRISE= Customer Lockbox
EXCHANGEARCHIVE_ADDON = Exchange Online Archiving For Exchange Online MCOCAP= Command Area Phone
EXCHANGEDESKLESS = Exchange Online Kiosk MCOEV= Skype for Business Cloud PBX
SPZA_IW = App Connect MCOIMP= Skype for Business Online (Plan 1)
WINDOWS_STORE = Windows Store for Business MCOLITE= Lync Online (Plan 1)
MCOEV = Microsoft Phone System MCOMEETADV= PSTN conferencing
VIDEO_INTEROP = Polycom Skype Meeting Video Interop for Skype for Business MCOPLUSCAL= Skype for Business Plus CAL
SPE_E5 = Microsoft 365 E5 MCOPSTN1= Skype for Business Pstn Domestic Calling
SPE_E3 = Microsoft 365 E3 MCOPSTN2= Skype for Business Pstn Domestic and International Calling
ATA = Advanced Threat Analytics MCOSTANDARD= Skype for Business Online Standalone Plan 2
MCOPSTN2 = Domestic and International Calling Plan MCOSTANDARD_GOV= Lync Plan 2G
FLOW_P1 = Microsoft Flow Plan 1 MCOSTANDARD_MIDMARKET= Lync Online (Plan 1)
FLOW_P2 = Microsoft Flow Plan 2 MCVOICECONF= Lync Online (Plan 3)
DeveloperPack = OFFICE 365 ENTERPRISE E3 DEVELOPER MDM_SALES_COLLABORATION= Microsoft Dynamics Marketing Sales Collaboration
EMSPremium = ENTERPRISE MOBILITY + SECURITY E5 MEE_FACULTY= Minecraft Education Edition Faculty
RightsManagemnt =AZURE INFORMATION PROTECTION PLAN 1 MEE_STUDENT= Minecraft Education Edition Student
DYN365_ENTERPRISE_CUSTOMER_SERVICE =DYNAMICS 365 FOR CUSTOMER SERVICE ENTERPRISE EDITION MEETING_ROOM= Meeting Room
POWERFLOW_P1 = Microsoft PowerApps Plan 1 MFA_PREMIUM= Azure Multi-Factor Authentication
POWERFLOW_P2 = Microsoft PowerApps Plan 2 MICROSOFT_BUSINESS_CENTER= Microsoft Business Center
AAD_PREMIUM_P1 = Azure Active Directory Premium P1 MICROSOFT_REMOTE_ASSIST= Dynamics 365 Remote Assist
AAD_PREMIUM_P2 = Azure Active Directory Premium P2 MIDSIZEPACK= Office 365 Midsize Business
MINECRAFT_EDUCATION_EDITION= Minecraft Education Edition Faculty
MS-AZR-0145P= Azure
MS_TEAMS_IW= Microsoft Teams
NBPOSTS= Microsoft Social Engagement Additional 10k Posts (minimum 100 licenses) (Government Pricing)
NBPROFESSIONALFORCRM= Microsoft Social Listening Professional
O365_BUSINESS= Microsoft 365 Apps for business
O365_BUSINESS_ESSENTIALS= Microsoft 365 Business Basic
O365_BUSINESS_PREMIUM= Microsoft 365 Business Standard
OFFICE365_MULTIGEO= Multi-Geo Capabilities in Office 365
OFFICESUBSCRIPTION= Microsoft 365 Apps for enterprise
OFFICESUBSCRIPTION_FACULTY= Office 365 ProPlus for Faculty
OFFICESUBSCRIPTION_GOV= Office ProPlus
OFFICESUBSCRIPTION_STUDENT= Office ProPlus Student Benefit
OFFICE_FORMS_PLAN_2= Microsoft Forms (Plan 2)
OFFICE_PRO_PLUS_SUBSCRIPTION_SMBIZ= Office ProPlus
ONEDRIVESTANDARD= OneDrive
PAM_ENTERPRISE = Exchange Primary Active Manager
PLANNERSTANDALONE= Planner Standalone
POWERAPPS_INDIVIDUAL_USER= Microsoft PowerApps and Logic flows
POWERAPPS_O365_P2= PowerApps
POWERAPPS_O365_P3= PowerApps for Office 365
POWERAPPS_VIRAL= PowerApps (Free)
POWERFLOW_P1= Microsoft PowerApps Plan 1
POWERFLOW_P2= Microsoft PowerApps Plan 2
POWER_BI_ADDON= Office 365 Power BI Addon
POWER_BI_INDIVIDUAL_USE= Power BI Individual User
POWER_BI_INDIVIDUAL_USER= Power BI for Office 365 Individual
POWER_BI_PRO= Power BI Pro
POWER_BI_STANDALONE= Power BI Standalone
POWER_BI_STANDARD= Power-BI Standard
PREMIUM_ADMINDROID= AdminDroid Office 365 Reporter
PROJECTCLIENT= Project Professional
PROJECTESSENTIALS= Project Lite
PROJECTONLINE_PLAN_1= Project Online (Plan 1)
PROJECTONLINE_PLAN_1_FACULTY= Project Online for Faculty Plan 1
PROJECTONLINE_PLAN_1_STUDENT= Project Online for Students Plan 1
PROJECTONLINE_PLAN_2= Project Online and PRO
PROJECTONLINE_PLAN_2_FACULTY= Project Online for Faculty Plan 2
PROJECTONLINE_PLAN_2_STUDENT= Project Online for Students Plan 2
PROJECTPREMIUM= Project Online Premium
PROJECTPROFESSIONAL= Project Online Pro
PROJECTWORKMANAGEMENT= Office 365 Planner Preview
PROJECT_CLIENT_SUBSCRIPTION= Project Pro for Office 365
PROJECT_ESSENTIALS= Project Lite
PROJECT_MADEIRA_PREVIEW_IW_SKU= Dynamics 365 for Financials for IWs
PROJECT_ONLINE_PRO= Project Online Plan 3
RIGHTSMANAGEMENT= Azure Rights Management Premium
RIGHTSMANAGEMENT_ADHOC= Windows Azure Rights Management
RIGHTSMANAGEMENT_STANDARD_FACULTY= Azure Rights Management for faculty
RIGHTSMANAGEMENT_STANDARD_STUDENT= Information Rights Management for Students
RMS_S_ENTERPRISE= Azure Active Directory Rights Management
RMS_S_ENTERPRISE_GOV= Windows Azure Active Directory Rights Management
RMS_S_PREMIUM= Azure Information Protection Plan 1
RMS_S_PREMIUM2= Azure Information Protection Premium P2
SCHOOL_DATA_SYNC_P1= School Data Sync (Plan 1)
SHAREPOINTDESKLESS= SharePoint Online Kiosk
SHAREPOINTDESKLESS_GOV= SharePoint Online Kiosk
SHAREPOINTENTERPRISE= SharePoint Online (Plan 2)
SHAREPOINTENTERPRISE_EDU= SharePoint Plan 2 for EDU
SHAREPOINTENTERPRISE_GOV= SharePoint Plan 2G
SHAREPOINTENTERPRISE_MIDMARKET= SharePoint Online (Plan 1)
SHAREPOINTLITE= SharePoint Online (Plan 1)
SHAREPOINTPARTNER= SharePoint Online Partner Access
SHAREPOINTSTANDARD= SharePoint Online Plan 1
SHAREPOINTSTANDARD_EDU= SharePoint Plan 1 for EDU
SHAREPOINTSTORAGE= SharePoint Online Storage
SHAREPOINTWAC= Office Online
SHAREPOINTWAC_EDU= Office Online for Education
SHAREPOINTWAC_GOV= Office Online for Government
SHAREPOINT_PROJECT= SharePoint Online (Plan 2) Project
SHAREPOINT_PROJECT_EDU= Project Online Service for Education
SMB_APPS= Business Apps (free)
SMB_BUSINESS= Office 365 Business
SMB_BUSINESS_ESSENTIALS= Office 365 Business Essentials
SMB_BUSINESS_PREMIUM= Office 365 Business Premium
SPZA IW= Microsoft PowerApps Plan 2 Trial
SPB= Microsoft 365 Business
SPE_E3= Secure Productive Enterprise E3
SQL_IS_SSIM= Power BI Information Services
STANDARDPACK= Office 365 (Plan E1)
STANDARDPACK_FACULTY= Office 365 (Plan A1) for Faculty
STANDARDPACK_GOV= Microsoft Office 365 (Plan G1) for Government
STANDARDPACK_STUDENT= Office 365 (Plan A1) for Students
STANDARDWOFFPACK= Office 365 (Plan E2)
STANDARDWOFFPACKPACK_FACULTY= Office 365 (Plan A2) for Faculty
STANDARDWOFFPACKPACK_STUDENT= Office 365 (Plan A2) for Students
STANDARDWOFFPACK_FACULTY= Office 365 Education E1 for Faculty
STANDARDWOFFPACK_GOV= Microsoft Office 365 (Plan G2) for Government
STANDARDWOFFPACK_IW_FACULTY= Office 365 Education for Faculty
STANDARDWOFFPACK_IW_STUDENT= Office 365 Education for Students
STANDARDWOFFPACK_STUDENT= Microsoft Office 365 (Plan A2) for Students
STANDARD_B_PILOT= Office 365 (Small Business Preview)
STREAM= Microsoft Stream
STREAM_O365_E3= Microsoft Stream for O365 E3 SKU
STREAM_O365_E5= Microsoft Stream for O365 E5 SKU
SWAY= Sway
TEAMS1= Microsoft Teams
TEAMS_COMMERCIAL_TRIAL= Microsoft Teams Commercial Cloud Trial
THREAT_INTELLIGENCE= Office 365 Threat Intelligence
VIDEO_INTEROP = Skype Meeting Video Interop for Skype for Business
VISIOCLIENT= Visio Online Plan 2
VISIOONLINE_PLAN1= Visio Online Plan 1
VISIO_CLIENT_SUBSCRIPTION= Visio Pro for Office 365
WACONEDRIVEENTERPRISE= OneDrive for Business (Plan 2)
WACONEDRIVESTANDARD= OneDrive for Business with Office Online
WACSHAREPOINTSTD= Office Online STD
WHITEBOARD_PLAN3= White Board (Plan 3)
WIN_DEF_ATP= Windows Defender Advanced Threat Protection
WIN10_PRO_ENT_SUB= Windows 10 Enterprise E3
WIN10_VDA_E3= Windows E3
WIN10_VDA_E5= Windows E5
WINDOWS_STORE= Windows Store
YAMMER_EDU= Yammer for Academic
YAMMER_ENTERPRISE= Yammer for the Starship Enterprise
YAMMER_ENTERPRISE_STANDALONE= Yammer Enterprise
YAMMER_MIDSIZE= Yammer

View File

@ -1,283 +1,284 @@
#Accept input parameter <#
Param =============================================================================================
( Name: Export Office 365 users real last activity time report
[Parameter(Mandatory = $false)] Version: 3.0
[string]$MBNamesFile, Website: o365reports.com
[int]$InactiveDays, Script by: O365Reports Team
[switch]$UserMailboxOnly, For detailed script execution: https://o365reports.com/2019/06/18/export-office-365-users-real-last-logon-time-report-csv/#
[switch]$LicensedUserOnly, ============================================================================================
[switch]$ReturnNeverLoggedInMBOnly, #>
[string]$UserName,
[string]$Password, #Accept input parameter
[switch]$FriendlyTime, Param
[switch]$MFA (
[Parameter(Mandatory = $false)]
) [string]$MBNamesFile,
[int]$InactiveDays,
Function Get_LastLogonTime [switch]$UserMailboxOnly,
{ [switch]$LicensedUserOnly,
$MailboxStatistics=Get-MailboxStatistics -Identity $upn [switch]$ReturnNeverLoggedInMBOnly,
$LastActionTime=$MailboxStatistics.LastUserActionTime [string]$UserName,
$LastActionTimeUpdatedOn=$MailboxStatistics.LastUserActionUpdateTime [string]$Password,
$RolesAssigned="" [switch]$FriendlyTime,
Write-Progress -Activity "`n Processed mailbox count: $MBUserCount "`n" Currently Processing: $DisplayName" [switch]$NoMFA
#Retrieve lastlogon time and then calculate Inactive days )
if($LastActionTime -eq $null)
{ Function Get_LastLogonTime
$LastActionTime ="Never Logged In" {
$InactiveDaysOfUser="-" $MailboxStatistics=Get-MailboxStatistics -Identity $upn
} $LastActionTime=$MailboxStatistics.LastUserActionTime
else $LastActionTimeUpdatedOn=$MailboxStatistics.LastUserActionUpdateTime
{ $RolesAssigned=""
$InactiveDaysOfUser= (New-TimeSpan -Start $LastActionTime).Days Write-Progress -Activity "`n Processed mailbox count: $MBUserCount "`n" Currently Processing: $DisplayName"
#Convert Last Action Time to Friendly Time
if($friendlyTime.IsPresent) #Retrieve lastlogon time and then calculate Inactive days
{ if($LastActionTime -eq $null)
$FriendlyLastActionTime=ConvertTo-HumanDate ($LastActionTime) {
$friendlyLastActionTime="("+$FriendlyLastActionTime+")" $LastActionTime ="Never Logged In"
$LastActionTime="$LastActionTime $FriendlyLastActionTime" $InactiveDaysOfUser="-"
} }
} else
{
#Convert Last Action Time Update On to Friendly Time $InactiveDaysOfUser= (New-TimeSpan -Start $LastActionTime).Days
if(($friendlyTime.IsPresent) -and ($LastActionTimeUpdatedOn -ne $null)) #Convert Last Action Time to Friendly Time
{ if($friendlyTime.IsPresent)
$FriendlyLastActionTimeUpdatedOn= ConvertTo-HumanDate ($LastActionTimeUpdatedOn) {
$FriendlyLastActionTimeUpdatedOn="("+$FriendlyLastActionTimeUpdatedOn+")" $FriendlyLastActionTime=ConvertTo-HumanDate ($LastActionTime)
$LastActionTimeUpdatedOn="$LastActionTimeUpdatedOn $FriendlyLastActionTimeUpdatedOn" $friendlyLastActionTime="("+$FriendlyLastActionTime+")"
} $LastActionTime="$LastActionTime $FriendlyLastActionTime"
elseif($LastActionTimeUpdatedOn -eq $null) }
{ }
$LastActionTimeUpdatedOn="-" #Convert Last Action Time Update On to Friendly Time
} if(($friendlyTime.IsPresent) -and ($LastActionTimeUpdatedOn -ne $null))
{
#Get licenses assigned to mailboxes $FriendlyLastActionTimeUpdatedOn= ConvertTo-HumanDate ($LastActionTimeUpdatedOn)
$User=(Get-MsolUser -UserPrincipalName $upn) $FriendlyLastActionTimeUpdatedOn="("+$FriendlyLastActionTimeUpdatedOn+")"
$Licenses=$User.Licenses.AccountSkuId $LastActionTimeUpdatedOn="$LastActionTimeUpdatedOn $FriendlyLastActionTimeUpdatedOn"
$AssignedLicense="" }
$Count=0 elseif($LastActionTimeUpdatedOn -eq $null)
{
#Convert license plan to friendly name $LastActionTimeUpdatedOn="-"
foreach($License in $Licenses) }
{
$Count++ #Get licenses assigned to mailboxes
$LicenseItem= $License -Split ":" | Select-Object -Last 1 $User=(Get-MsolUser -UserPrincipalName $upn)
$EasyName=$FriendlyNameHash[$LicenseItem] $Licenses=$User.Licenses.AccountSkuId
if(!($EasyName)) $AssignedLicense=""
{$NamePrint=$LicenseItem} $Count=0
else
{$NamePrint=$EasyName}
$AssignedLicense=$AssignedLicense+$NamePrint if($Licenses.count -eq 0)
if($count -lt $licenses.count) {
{ $AssignedLicense="No License Assigned"
$AssignedLicense=$AssignedLicense+"," }
} #Convert license plan to friendly name
} else
if($Licenses.count -eq 0) {
{ foreach($License in $Licenses)
$AssignedLicense="No License Assigned" {
} $Count++
$LicenseItem= $License -Split ":" | Select-Object -Last 1
#Inactive days based filter $EasyName=$FriendlyNameHash[$LicenseItem]
if($InactiveDaysOfUser -ne "-"){ if(!($EasyName))
if(($InactiveDays -ne "") -and ([int]$InactiveDays -gt $InactiveDaysOfUser)) {$NamePrint=$LicenseItem}
{ else
return {$NamePrint=$EasyName}
}} $AssignedLicense=$AssignedLicense+$NamePrint
if($count -lt $licenses.count)
#Filter result based on user mailbox {
if(($UserMailboxOnly.IsPresent) -and ($MBType -ne "UserMailbox")) $AssignedLicense=$AssignedLicense+","
{ }
return }
} }
#Never Logged In user #Inactive days based filter
if(($ReturnNeverLoggedInMBOnly.IsPresent) -and ($LastActionTime -ne "Never Logged In")) if($InactiveDaysOfUser -ne "-"){
{ if(($InactiveDays -ne "") -and ([int]$InactiveDays -gt $InactiveDaysOfUser))
return {
} return
}}
#Filter result based on license status
if(($LicensedUserOnly.IsPresent) -and ($AssignedLicense -eq "No License Assigned")) #Filter result based on user mailbox
{ if(($UserMailboxOnly.IsPresent) -and ($MBType -ne "UserMailbox"))
return {
} return
}
#Get roles assigned to user
$Roles=(Get-MsolUserRole -UserPrincipalName $upn).Name #Never Logged In user
if($Roles.count -eq 0) if(($ReturnNeverLoggedInMBOnly.IsPresent) -and ($LastActionTime -ne "Never Logged In"))
{ {
$RolesAssigned="No roles" return
} }
else
{ #Filter result based on license status
foreach($Role in $Roles) if(($LicensedUserOnly.IsPresent) -and ($AssignedLicense -eq "No License Assigned"))
{ {
$RolesAssigned=$RolesAssigned+$Role return
if($Roles.indexof($role) -lt (($Roles.count)-1)) }
{
$RolesAssigned=$RolesAssigned+"," #Get roles assigned to user
} $Roles=(Get-MsolUserRole -UserPrincipalName $upn).Name
} if($Roles.count -eq 0)
} {
$RolesAssigned="No roles"
#Export result to CSV file }
$Result=@{'UserPrincipalName'=$upn;'DisplayName'=$DisplayName;'LastUserActionTime'=$LastActionTime;'LastActionTimeUpdatedOn'=$LastActionTimeUpdatedOn;'CreationTime'=$CreationTime;'InactiveDays'=$InactiveDaysOfUser;'MailboxType'=$MBType; 'AssignedLicenses'=$AssignedLicense;'Roles'=$RolesAssigned} else
$Output= New-Object PSObject -Property $Result {
$Output | Select-Object UserPrincipalName,DisplayName,LastUserActionTime,LastActionTimeUpdatedOn,InactiveDays,CreationTime,MailboxType,AssignedLicenses,Roles | Export-Csv -Path $ExportCSV -Notype -Append foreach($Role in $Roles)
} {
$RolesAssigned=$RolesAssigned+$Role
if($Roles.indexof($role) -lt (($Roles.count)-1))
Function main() {
{ $RolesAssigned=$RolesAssigned+","
#Check for MSOnline module }
$Modules=Get-Module -Name MSOnline -ListAvailable }
if($Modules.count -eq 0) }
{
Write-Host Please install MSOnline module using below command: `nInstall-Module MSOnline -ForegroundColor yellow #Export result to CSV file
Exit $Result=@{'UserPrincipalName'=$upn;'DisplayName'=$DisplayName;'LastUserActionTime'=$LastActionTime;'LastActionTimeUpdatedOn'=$LastActionTimeUpdatedOn;'CreationTime'=$CreationTime;'InactiveDays'=$InactiveDaysOfUser;'MailboxType'=$MBType; 'AssignedLicenses'=$AssignedLicense;'Roles'=$RolesAssigned}
} $Output= New-Object PSObject -Property $Result
#Connect AzureAD and Exchange Online from PowerShell $Output | Select-Object UserPrincipalName,DisplayName,LastUserActionTime,LastActionTimeUpdatedOn,InactiveDays,CreationTime,MailboxType,AssignedLicenses,Roles | Export-Csv -Path $ExportCSV -Notype -Append
Get-PSSession | Remove-PSSession }
#Get friendly name of license plan from external file
$FriendlyNameHash=Get-Content -Raw -Path .\LicenseFriendlyName.txt -ErrorAction Stop | ConvertFrom-StringData Function main()
{
#Check for EXO v2 module inatallation
#Set output file $Module = Get-Module ExchangeOnlineManagement -ListAvailable
$ExportCSV=".\LastAccessTimeReport_$((Get-Date -format yyyy-MMM-dd-ddd` hh-mm` tt).ToString()).csv" if($Module.count -eq 0)
{
#Authentication using MFA Write-Host Exchange Online PowerShell V2 module is not available -ForegroundColor yellow
if($MFA.IsPresent) $Confirm= Read-Host Are you sure you want to install module? [Y] Yes [N] No
{ if($Confirm -match "[yY]")
$MFAExchangeModule = ((Get-ChildItem -Path $($env:LOCALAPPDATA+"\Apps\2.0\") -Filter CreateExoPSSession.ps1 -Recurse ).FullName | Select-Object -Last 1) {
If ($MFAExchangeModule -eq $null) Write-host "Installing Exchange Online PowerShell module"
{ Install-Module ExchangeOnlineManagement -Repository PSGallery -AllowClobber -Force
Write-Host `nPlease install Exchange Online MFA Module. -ForegroundColor yellow Import-Module ExchangeOnlineManagement
}
Write-Host You can install module using below blog : `nLink `nOR you can install module directly by entering "Y"`n else
$Confirm= Read-Host Are you sure you want to install module directly? [Y] Yes [N] No {
if($Confirm -match "[yY]") Write-Host EXO V2 module is required to connect Exchange Online.Please install module using Install-Module ExchangeOnlineManagement cmdlet.
{ Exit
Write-Host Yes }
Start-Process "iexplore.exe" "https://cmdletpswmodule.blob.core.windows.net/exopsmodule/Microsoft.Online.CSE.PSModule.Client.application" }
} #Check for Azure AD module
else $Module = Get-Module MsOnline -ListAvailable
{ if($Module.count -eq 0)
Start-Process 'https://o365reports.com/2019/03/23/export-dynamic-distribution-group-members-to-csv/' {
Exit Write-Host MSOnline module is not available -ForegroundColor yellow
} $Confirm= Read-Host Are you sure you want to install the module? [Y] Yes [N] No
$Confirmation= Read-Host Have you installed Exchange Online MFA Module? [Y] Yes [N] No if($Confirm -match "[yY]")
if($Confirmation -match "[yY]") {
{ Write-host "Installing MSOnline PowerShell module"
$MFAExchangeModule = ((Get-ChildItem -Path $($env:LOCALAPPDATA+"\Apps\2.0\") -Filter CreateExoPSSession.ps1 -Recurse ).FullName | Select-Object -Last 1) Install-Module MSOnline -Repository PSGallery -AllowClobber -Force
If ($MFAExchangeModule -eq $null) Import-Module MSOnline
{ }
Write-Host Exchange Online MFA module is not available -ForegroundColor red else
Exit {
} Write-Host MSOnline module is required to generate the report.Please install module using Install-Module MSOnline cmdlet.
} Exit
else }
{ }
Write-Host Exchange Online PowerShell Module is required
Start-Process 'https://o365reports.com/2019/03/23/export-dynamic-distribution-group-members-to-csv/' #Authentication using non-MFA
Exit if($NoMFA.IsPresent)
} {
}
#Importing Exchange MFA Module
. "$MFAExchangeModule"
Write-Host Enter credential in prompt to connect to Exchange Online
Connect-EXOPSSession -WarningAction SilentlyContinue
Write-Host Connected to Exchange Online
Write-Host `nEnter credential in prompt to connect to MSOnline
#Importing MSOnline Module
Connect-MsolService | Out-Null
Write-Host Connected to MSOnline `n`nReport generation in progress...
}
#Authentication using non-MFA
else
{
#Storing credential in script for scheduling purpose/ Passing credential as parameter #Storing credential in script for scheduling purpose/ Passing credential as parameter
if(($UserName -ne "") -and ($Password -ne "")) if(($UserName -ne "") -and ($Password -ne ""))
{ {
$SecuredPassword = ConvertTo-SecureString -AsPlainText $Password -Force $SecuredPassword = ConvertTo-SecureString -AsPlainText $Password -Force
$Credential = New-Object System.Management.Automation.PSCredential $UserName,$SecuredPassword $Credential = New-Object System.Management.Automation.PSCredential $UserName,$SecuredPassword
} }
else else
{ {
$Credential=Get-Credential -Credential $null $Credential=Get-Credential -Credential $null
} }
Connect-MsolService -Credential $credential Write-Host "Connecting Azure AD..."
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $Credential -Authentication Basic -AllowRedirection Connect-MsolService -Credential $Credential | Out-Null
Import-PSSession $Session -CommandName Get-Mailbox,Get-MailboxStatistics -FormatTypeName * -AllowClobber | Out-Null Write-Host "Connecting Exchange Online PowerShell..."
} Connect-ExchangeOnline -Credential $Credential
}
#Friendly DateTime conversion #Connect to Exchange Online and AzureAD module using MFA
if($friendlyTime.IsPresent) else
{ {
If(((Get-Module -Name PowerShellHumanizer -ListAvailable).Count) -eq 0) Write-Host "Connecting Exchange Online PowerShell..."
{ Connect-ExchangeOnline
Write-Host Installing PowerShellHumanizer for Friendly DateTime conversion Write-Host "Connecting Azure AD..."
Install-Module -Name PowerShellHumanizer Connect-MsolService | Out-Null
} }
}
#Friendly DateTime conversion
$Result="" if($friendlyTime.IsPresent)
$Output=@() {
$MBUserCount=0 If(((Get-Module -Name PowerShellHumanizer -ListAvailable).Count) -eq 0)
{
#Check for input file Write-Host Installing PowerShellHumanizer for Friendly DateTime conversion
if([string]$MBNamesFile -ne "") Install-Module -Name PowerShellHumanizer
{ }
#We have an input file, read it into memory }
$Mailboxes=@()
$Mailboxes=Import-Csv -Header "MBIdentity" $MBNamesFile $Result=""
foreach($item in $Mailboxes) $Output=@()
{ $MBUserCount=0
$MBDetails=Get-Mailbox -Identity $item.MBIdentity
$upn=$MBDetails.UserPrincipalName #Get friendly name of license plan from external file
$CreationTime=$MBDetails.WhenCreated $FriendlyNameHash=Get-Content -Raw -Path .\LicenseFriendlyName.txt -ErrorAction Stop | ConvertFrom-StringData
$DisplayName=$MBDetails.DisplayName
$MBType=$MBDetails.RecipientTypeDetails
$MBUserCount++ #Set output file
Get_LastLogonTime $ExportCSV=".\LastAccessTimeReport_$((Get-Date -format yyyy-MMM-dd-ddd` hh-mm` tt).ToString()).csv"
}
} #Check for input file
if([string]$MBNamesFile -ne "")
#Get all mailboxes from Office 365 {
else #We have an input file, read it into memory
{ $Mailboxes=@()
Write-Progress -Activity "Getting Mailbox details from Office 365..." -Status "Please wait." $Mailboxes=Import-Csv -Header "MBIdentity" $MBNamesFile
Get-Mailbox -ResultSize Unlimited | Where{$_.DisplayName -notlike "Discovery Search Mailbox"} | ForEach-Object{ foreach($item in $Mailboxes)
$upn=$_.UserPrincipalName {
$CreationTime=$_.WhenCreated $MBDetails=Get-Mailbox -Identity $item.MBIdentity
$DisplayName=$_.DisplayName $upn=$MBDetails.UserPrincipalName
$MBType=$_.RecipientTypeDetails $CreationTime=$MBDetails.WhenCreated
$MBUserCount++ $DisplayName=$MBDetails.DisplayName
Get_LastLogonTime $MBType=$MBDetails.RecipientTypeDetails
} $MBUserCount++
} Get_LastLogonTime
}
#Open output file after execution }
Write-Host `nScript executed successfully
if((Test-Path -Path $ExportCSV) -eq "True") #Get all mailboxes from Office 365
{ else
Write-Host "Detailed report available in: $ExportCSV" {
$Prompt = New-Object -ComObject wscript.shell Write-Progress -Activity "Getting Mailbox details from Office 365..." -Status "Please wait."
$UserInput = $Prompt.popup("Do you want to open output file?",` Get-Mailbox -ResultSize Unlimited | Where{$_.DisplayName -notlike "Discovery Search Mailbox"} | ForEach {
0,"Open Output File",4) $upn=$_.UserPrincipalName
If ($UserInput -eq 6) $CreationTime=$_.WhenCreated
{ $DisplayName=$_.DisplayName
Invoke-Item "$ExportCSV" $MBType=$_.RecipientTypeDetails
} $MBUserCount++
} Get_LastLogonTime
Else }
{ }
Write-Host No mailbox found
} #Open output file after execution
#Clean up session Write-Host `nScript executed successfully
Get-PSSession | Remove-PSSession if((Test-Path -Path $ExportCSV) -eq "True")
} {
Write-Host "Detailed report available in: $ExportCSV"
$Prompt = New-Object -ComObject wscript.shell
$UserInput = $Prompt.popup("Do you want to open output file?",`
0,"Open Output File",4)
If ($UserInput -eq 6)
{
Invoke-Item "$ExportCSV"
}
}
Else
{
Write-Host No mailbox found
}
#Clean up session
Get-PSSession | Remove-PSSession
}
. main . main