Windows
Connect-ExchangeOnline -UserPrincipalName -ShowProgress $true -LogLevel All -------O365------- Import-Module -Name ExchangeOnlineManagement Install-Module -Name ExchangeOnlineManagement Connect-ExchangeOnline Install-Module MSOnline Import-Module MSOnline Install-Module AzureAD Import-Module AzureAD Connect-AzureAD ######################################################### #verify I am connected to Office 365. Get-MsolCompanyInformation Get-Module -ListAvailable Connect-MsolService Get-Module PowerShellGet -list | Select-Object Name,Version,Path Install-Module AzureRM login-azurermaccount -----List all users and date of last password change in Office 365----- Connect-MsolService Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp Get-MsolUser -All | select DisplayName, LastPasswordChangeTimeStamp | Export-CSV LastPasswordChange.csv -NoTypeInformation Coding : O365: Get-ADSyncScheduler http://www.psttooffice365.com/blogs/2018/12/21/most-useful-powershell-commands-for-office-365-exchange-online/ running scripts is disabled : Set-ExecutionPolicy RemoteSigned UEL for O365: https://admin.microsoft.com/Adminportal/ https://outlook.office365.com/ecp https://admin.exchange.microsoft.com/ https://admin.teams.microsoft.com https://admin.microsoft.com/sharepoint https://admin.onedrive.com https://security.microsoft.com https://aad.portal.azure.com https://endpoint.microsoft.com https://compliance.microsoft.com Some differences in terms of features, permissions, and data sources. Here is a brief comparison: eDiscovery is a more comprehensive and powerful tool that can create and manage cases, place content on hold, export search results, and analyze data using advanced features. However, it also requires a higher license level and more configuration steps. It can only search for data stored in Exchange, SharePoint, OneDrive, Groups, Yammer, and Teams1. Content Search is a simpler and faster tool that can perform basic search and export operations. It can search for data in other Office 365 applications, such as Skype for Business2. However, it has fewer options and capabilities than eDiscovery. To use either tool, you need to be assigned the appropriate roles in the Microsoft Purview compliance portal. For eDiscovery, you need the eDiscovery Manager or Compliance Search role. For Content Search, you need the Organization Management or Search And Purge role3. To delete an email using either tool, you need to connect to Security & Compliance PowerShell and use the New-ComplianceSearch and New-ComplianceSearchAction cmdlets. A maximum of 10 items per mailbox can be removed at one time. .