Exchange Scripting for O365

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 3 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #40603
    Profile photo of Juli
    Juli
    Participant

    I have a script that I use for Archiving and Disabling mailboxes on prem. I would like to know what I would need to change so it can be used in O365 Exchange.

    #41055
    Profile photo of Don Jones
    Don Jones
    Keymaster

    Broadly speaking, you'd need to start by creating a session to O365, and then importing the Exchange cmdlets (Import-PSSession) from there. If you don't add a prefix to the imported cmdlets, and you don't have your local Exchange cmdlets imported into your shell, then your script should use the O365 cmdlets.

    From there, you'll need to figure out if your script is doing anything O365 doesn't allow. Its cmdlets are somewhat stripped down – missing certain parameters, and so on.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.