Share via

Leavers script

Martin Harrison 0 Reputation points
2023-06-02T11:06:38.8333333+00:00

Hello,

I'm looking for help with a Powershell script to do the following when a user leaves the organisation:

  • Convert their mailbox to a shared mailbox
  • Remove any licenses assigned to their account
  • Remove them from the GAL
  • Where applicable delegate other users to access the shared mailbox
  • add a generic out of office message
  • forward emails on the shared mailbox to another user

I'm a complete noob to Powershell and find undertaking the above tedious/time consuming.

Thanks in advance.

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. Rich Matheisen 48,116 Reputation points
    2023-06-02T18:44:10.1366667+00:00

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.