GCFR practice question 10 of 15

An analyst successfully authenticated to Microsoft 365 using the following command. What would cause the analyst to be unable to search UAL events for a specific time period? Ps> connect fxrhangeOnline userPrincipalName sysanalystatexanpteco.com

Full set: 82 questions
Answer options
A: The tmdlets to search the UAl were not Imported into the session Correct answer
B: The UAL cannot be searched when using Microsoft 365 PowerShell
C: The incorrect version of the FxhangeOnlineManagement module was installed
D: The ExchangeOnlineManagement module was not installed
Correct Answer:
A. The tmdlets to search the UAl were not Imported into the session
Explanation

The Connect-ExchangeOnline cmdlet establishes a remote PowerShell session exclusively with the Exchange Online service. This action imports cmdlets related to mailbox and organization management within Exchange. However, the cmdlets required to search the Unified Audit Log (UAL), such as Search-UnifiedAuditLog, are part of the Security & Compliance (now Microsoft Purview) service. To access and use these cmdlets, a separate connection to the Security & Compliance endpoint must be established using the Connect-IPPSSession cmdlet. Because the analyst only connected to Exchange Online, the necessary UAL search cmdlets were never imported into their session, preventing them from performing the search.

Why Incorrect

B. The UAL is designed to be searched using PowerShell; the Search-UnifiedAuditLog cmdlet is the primary tool for this task.
C. The issue is not the module version but connecting to the wrong service endpoint; the correct version would still not import UAL cmdlets.
D. The analyst successfully used Connect-ExchangeOnline, a command from this module, which confirms the module was installed and loaded.

References

1. Microsoft Corporation. (n.d.). Search-UnifiedAuditLog. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/powershell/module/exchange/search-unifiedauditlog.

Reference Detail: The documentation explicitly states, "To run this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions." It then links to the procedure for connecting to that specific service, demonstrating it is separate from a standard Exchange Online session.

2. Microsoft Corporation. (n.d.). Connect to Security & Compliance PowerShell. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/powershell/exchange/connect-to-scc-powershell.

Reference Detail: This document outlines the required steps for connecting to the Security & Compliance service. It specifies using the Connect-IPPSSession command, which is distinct from Connect-ExchangeOnline, to import the necessary cmdlets for compliance and audit tasks.

3. Microsoft Corporation. (n.d.). Connect-ExchangeOnline. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/powershell/module/exchange/connect-exchangeonline.

Reference Detail: The official documentation for this cmdlet describes its function as connecting to "Exchange Online PowerShell." The scope of the imported cmdlets is limited to Exchange management and does not include the broader Microsoft 365 compliance cmdlets.

Scroll to Top