PrepAway - Latest Free Exam Questions & Answers

How should you complete the relevant Windows PowerShell script?

DRAG DROP
You are the Office 365 administrator for your company.
You need to generate a list of all Session Initiation Protocol (SIP) addresses.
How should you complete the relevant Windows PowerShell script? To answer, drag the
appropriate command segments to the correct targets. Each segment may be used once,
more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

PrepAway - Latest Free Exam Questions & Answers

Answer:

Explanation:

5 Comments on “How should you complete the relevant Windows PowerShell script?

  1. Justin Thompson says:

    I tested it as well against my tenant and it works as advertised. If you were to execute just the first part of the command you would get the following output:

    Get-Mailbox -ResultSize Unlimited | Select-Object -ExpandProperty EmailAddreses

    SMTP:ConfRoom1@JThompson.onmicrosoft.com
    SMTP:ITSupport@JThompson.onmicrosoft.com
    SIP:Justin@JThompson.onmicrosoft.com
    SMTP:Justin@JThompson.onmicrosoft.com
    SMTP:Projector123@JThompson.onmicrosoft.com

    Now if you add the Where-Object filter only the SIP addresses will remain:

    Get-Mailbox -ResultSize Unlimited | Select-Object -ExpandProperty EmailAddresses | Where-Object {$_. -match “SIP
    “}

    SIP:Justin@JThompson.onmicrosoft.com




    0



    0

Leave a Reply